class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='RoleModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, unique=True)), ('role', models.CharField(max_length=128)), ('create', models.DateTimeField(auto_now_add=True)), ('admin', models.BooleanField(default=False)), ], options={ 'db_table': 'moas_role', 'ordering': ('-id', ), }, ), migrations.CreateModel( name='UserModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('username', models.CharField(error_messages={ 'unique': 'A user with that username already exists.' }, max_length=32, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ])), ('is_admin', models.BooleanField(default=False)), ('user_secret', models.UUIDField( default=uuid.UUID('bea9c929-77b6-4ef9-b7da-467c0eb298a7')) ), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('create', models.DateTimeField(auto_now_add=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('role', models.ManyToManyField(to='user.RoleModel')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'db_table': 'moas_user', 'ordering': ('-id', ), }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ('NTWebsite', '0001_initial'), ] operations = [ migrations.CreateModel( name='ArticleComment', fields=[ ('AC_ID', models.UUIDField(auto_created=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, verbose_name='评论ID')), ('AC_Comment', models.TextField(verbose_name='评论内容')), ('AC_Parent', models.UUIDField(blank=True, null=True, verbose_name='父评论')), ('AC_Likes', models.IntegerField(default='0', verbose_name='赞')), ('AC_Dislikes', models.IntegerField(default='0', verbose_name='怼')), ('AC_EditDate', models.DateTimeField(auto_now=True, verbose_name='编辑时间')), ('AC_Readstatus', models.CharField(choices=[('Y', '已阅'), ('N', '未读')], default='N', max_length=1, verbose_name='是否阅读')), ], options={ 'verbose_name_plural': '评论', }, ), migrations.CreateModel( name='ArticleReadsIP', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('AR_IP', models.CharField(blank=True, max_length=100, null=True, verbose_name='IP')), ('AR_EditDate', models.DateField(auto_now=True, verbose_name='时间')), ], options={ 'verbose_name_plural': '阅读IP统计', }, ), migrations.CreateModel( name='ArticleTags', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('AT_TAID', models.UUIDField(default=uuid.uuid4, editable=False, verbose_name='文章ID')), ('AT_ID', models.IntegerField(verbose_name='标签代码')), ('AT_Name', models.CharField(max_length=10, verbose_name='标签名称')), ], options={ 'verbose_name_plural': '标签', }, ), migrations.CreateModel( name='ArticleUserLikesOrDislikesTable', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ALD_StandPoint', models.IntegerField(verbose_name='立场代码')), ('ALD_EditDate', models.DateField(auto_now=True, verbose_name='时间')), ], options={ 'verbose_name_plural': '立场统计', }, ), migrations.CreateModel( name='CategoryInfo', fields=[ ('CI_Name', models.CharField(max_length=10, primary_key=True, serialize=False, verbose_name='品类名称')), ('CI_SVG', models.TextField(max_length=1000, verbose_name='图标SVG')), ], options={ 'verbose_name_plural': '品类', }, ), migrations.CreateModel( name='ConfigParams', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('CP_Name', models.CharField(max_length=20, unique=True, verbose_name='配置名称')), ('CP_ReadsThreshold', models.IntegerField(default=10, verbose_name='上榜阅读量')), ('CP_HotKeyWord', models.CharField(default='差评', max_length=20, verbose_name='热搜关键字')), ('CP_TopicsLimit', models.IntegerField(default=100, verbose_name='文章获取数量')), ('CP_CommentsLimit', models.IntegerField(default=100, verbose_name='文章评论获取数量')), ('CP_SecretKey', models.CharField(max_length=16, verbose_name='加密秘钥')), ('CP_SecretVI', models.CharField(max_length=16, verbose_name='加密偏移量')), ('CP_TopicsPageLimit', models.IntegerField(default=10, verbose_name='每页文章数量')), ('CP_CommentsPageLimit', models.IntegerField(default=10, verbose_name='每页评论数量')), ('CP_AvatarResolution', models.IntegerField(default=102, verbose_name='头像分辨率')), ], options={ 'verbose_name_plural': '配置参数', }, ), migrations.CreateModel( name='PreferredConfigName', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('PC_Name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NTWebsite.ConfigParams', to_field='CP_Name', verbose_name='首选配置名称')), ], options={ 'verbose_name_plural': '首选配置设置', }, ), migrations.CreateModel( name='TopicArticleStatistic', fields=[ ('TAS_ID', models.UUIDField(auto_created=True, default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='文章ID')), ('TAS_Title', models.CharField(max_length=35, unique=True, verbose_name='文章标题')), ('TAS_Description', models.TextField(max_length=140, verbose_name='文章描述')), ('TAS_EditDate', models.DateField(auto_now=True, verbose_name='编辑时间')), ('TAS_Theme', models.CharField(default='其他', max_length=100, verbose_name='文章主题')), ('TAS_Like', models.IntegerField(default=0, verbose_name='赞')), ('TAS_Dislike', models.IntegerField(default=0, verbose_name='怼')), ('TAS_Read', models.IntegerField(default=10, verbose_name='阅读量')), ('TAS_Comment', models.IntegerField(default=0, verbose_name='评论数')), ('TAS_Content', ckeditor_uploader.fields.RichTextUploadingField(blank=True, null=True, verbose_name='文章正文')), ], options={ 'verbose_name_plural': '文章信息', }, ), migrations.CreateModel( name='TopicArticleTheme', fields=[ ('TAT_ID', models.CharField(default='0', max_length=10, primary_key=True, serialize=False, verbose_name='主题代码')), ('TAT_Name', models.CharField(max_length=10, unique=True, verbose_name='主题名称')), ], options={ 'verbose_name_plural': '主题', }, ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('UT_Nick', models.CharField(max_length=20, verbose_name='昵称')), ('UT_Sex', models.CharField(blank=True, default='未公开', max_length=3, verbose_name='性别')), ('UT_Region', models.CharField(blank=True, default='城市', max_length=10, null=True, verbose_name='地区')), ('UT_Description', models.TextField(blank=True, default='简介', max_length=50, null=True, verbose_name='简介')), ('UT_Avatar', models.TextField(blank=True, default='/static/media/DefaultLogo.jpg', max_length=1000, verbose_name='头像URL')), ('UT_Constellation', models.CharField(blank=True, default='天蝎座', max_length=10, null=True, verbose_name='星座')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name_plural': 'users', 'abstract': False, 'verbose_name': 'user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AddField( model_name='topicarticlestatistic', name='TAS_Author', field=models.ForeignKey(default='flysafely', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, to_field='username', verbose_name='用户名'), ), migrations.AddField( model_name='topicarticlestatistic', name='TAS_Type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NTWebsite.CategoryInfo', verbose_name='文章类别'), ), migrations.AddField( model_name='articleuserlikesordislikestable', name='ALD_ArticleID', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NTWebsite.TopicArticleStatistic', to_field='TAS_Title', verbose_name='文章ID'), ), migrations.AddField( model_name='articleuserlikesordislikestable', name='ALD_UserNickName', field=models.ForeignKey(default='flysafely', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, to_field='username', verbose_name='用户名'), ), migrations.AddField( model_name='articlereadsip', name='AR_ArticleID', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NTWebsite.TopicArticleStatistic', to_field='TAS_Title', verbose_name='文章ID'), ), migrations.AddField( model_name='articlecomment', name='AC_ArticleID', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='NTWebsite.TopicArticleStatistic', to_field='TAS_Title', verbose_name='文章ID'), ), migrations.AddField( model_name='articlecomment', name='AC_UserNickName', field=models.ForeignKey(default='flysafely', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, to_field='username', verbose_name='用户名'), ), ]
class Migration(migrations.Migration): replaces = [('kubeportal', '0001_initial'), ('kubeportal', '0002_auto_20190301_1359'), ('kubeportal', '0003_user_state'), ('kubeportal', '0004_user_approval_id'), ('kubeportal', '0005_auto_20190813_0617'), ('kubeportal', '0006_auto_20190813_0743'), ('kubeportal', '0007_auto_20190917_0605'), ('kubeportal', '0008_user_comments'), ('kubeportal', '0009_auto_20200218_1434')] initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='KubernetesNamespace', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= "Lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc').", max_length=100)), ('uid', models.CharField(editable=False, max_length=50, null=True)), ('visible', models.BooleanField( default=True, help_text= 'Visibility in admin interface. Can only be configured by a superuser.' )), ], ), migrations.CreateModel( name='KubernetesServiceAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= "Lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc').", max_length=100)), ('uid', models.CharField(editable=False, max_length=50, null=True)), ('namespace', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='kubeportal.KubernetesNamespace')), ], ), migrations.CreateModel( name='Link', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= "You can use the placeholders '{{namespace}}' and '{{serviceaccount}}' in the title.", max_length=100)), ('url', models.URLField( help_text= "You can use the placeholders '{{namespace}}' and '{{serviceaccount}}' in the URL." )), ], ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('service_account', models.ForeignKey( blank=True, help_text= 'Kubernetes namespace + service account of this user.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='kubeportal.KubernetesServiceAccount', verbose_name='Kubernetes account')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ('state', django_fsm.FSMField( choices=[('not requested', 'not requested'), ('requested', 'requested'), ('rejected', 'rejected'), ('approved', 'approved')], default='not requested', help_text= 'The state of the cluster access approval workflow.', max_length=50, verbose_name='Cluster access')), ('approval_id', models.UUIDField(default=uuid.uuid4, editable=False, null=True)), ('answered_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Approved by')), ('comments', models.CharField( blank=True, default='', help_text= 'Description on why this user needs cluster access. (150 characters)', max_length=150, null=True)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('bio', models.TextField(blank=True, max_length=500)), ('image', models.ImageField(blank=True, null=True, upload_to='images/users')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='VisibilityMixin', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('visibility', models.CharField(choices=[('pr', 'Private'), ('li', 'Access with link'), ('pu', 'Public')], default='pr', max_length=2)), ], ), migrations.CreateModel( name='Collection', fields=[ ('visibilitymixin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='editor.VisibilityMixin')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('title', models.CharField(max_length=200)), ('description', models.TextField(blank=True)), ('image', models.ImageField(blank=True, null=True, upload_to='images/collections')), ], options={ 'abstract': False, }, bases=('editor.visibilitymixin', models.Model), ), migrations.CreateModel( name='Document', fields=[ ('visibilitymixin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='editor.VisibilityMixin')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('title', models.CharField(max_length=200)), ('content', models.TextField(blank=True)), ('forked_from', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='editor.Document')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=('editor.visibilitymixin', models.Model), ), migrations.CreateModel( name='DocumentStar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='editor.Document')), ], ), migrations.AddField( model_name='document', name='stars', field=models.ManyToManyField(related_name='starred_documents', through='editor.DocumentStar', to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='CollectionStar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='editor.Collection')), ], ), migrations.AddField( model_name='collection', name='documents', field=models.ManyToManyField(blank=True, to='editor.Document'), ), migrations.AddField( model_name='collection', name='owner', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='collection', name='stars', field=models.ManyToManyField(related_name='starred_collections', through='editor.CollectionStar', to=settings.AUTH_USER_MODEL), ), migrations.AddConstraint( model_name='documentstar', constraint=models.UniqueConstraint(fields=('user', 'document'), name='document_unique_key'), ), migrations.AddConstraint( model_name='collectionstar', constraint=models.UniqueConstraint(fields=('user', 'collection'), name='collection_unique_key'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('status', models.CharField(choices=[('s', 's'), ('i', 'i')], default='s', max_length=5)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Assignment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject', models.CharField(max_length=64, null=True)), ('dueDate', models.DateField()), ('score', models.FloatField()), ('instructor', models.CharField(max_length=64, null=True)), ('describtion', models.TextField(null=True)), ('simulator', models.CharField(choices=[ ('Cruise Control', 'Cruise Control'), ('Adaptive Cruise control', 'Adaptive Cruise control'), ('Servo Motor', 'Servo Motor') ], max_length=64, null=True)), ], ), migrations.CreateModel( name='Course', fields=[ ('name', models.CharField(max_length=50)), ('code', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('assignments', models.ManyToManyField(to='main.Assignment')), ('instructor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='courses', to=settings.AUTH_USER_MODEL)), ('students', models.ManyToManyField(blank=True, related_name='students', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('major', models.CharField(default='Not mentioned', max_length=64)), ('courses', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.course')), ('credentials', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Submission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('score', models.FloatField()), ('dateSubmitted', models.DateField()), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.assignment')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.student')), ], ), migrations.CreateModel( name='Instructor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('major', models.CharField(default='Not mentioned', max_length=64)), ('assignments', models.ManyToManyField(related_name='asisgnments', to='main.Assignment')), ('credentials', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0011_update_proxy_permissions"), ("cart", "0001_initial"), ] operations = [ migrations.CreateModel( name="User", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("password", models.CharField(max_length=128, verbose_name="password")), ( "last_login", models.DateTimeField(blank=True, null=True, verbose_name="last login"), ), ( "is_superuser", models.BooleanField( default=False, help_text= "Designates that this user has all permissions without explicitly assigning them.", verbose_name="superuser status", ), ), ( "username", models.CharField( error_messages={ "unique": "A user with that username already exists." }, help_text= "Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.", max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name="username", ), ), ( "first_name", models.CharField(blank=True, max_length=30, verbose_name="first name"), ), ( "last_name", models.CharField(blank=True, max_length=150, verbose_name="last name"), ), ( "email", models.EmailField(blank=True, max_length=254, verbose_name="email address"), ), ( "is_staff", models.BooleanField( default=False, help_text= "Designates whether the user can log into this admin site.", verbose_name="staff status", ), ), ( "is_active", models.BooleanField( default=True, help_text= "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.", verbose_name="active", ), ), ( "date_joined", models.DateTimeField(default=django.utils.timezone.now, verbose_name="date joined"), ), ("linkID", models.UUIDField(default=uuid.uuid4)), ("activated", models.BooleanField(default=False)), ("resetTime", models.DateTimeField(default=django.utils.timezone.now)), ( "groups", models.ManyToManyField( blank=True, help_text= "The groups this user belongs to. A user will get all permissions granted to each of their groups.", related_name="user_set", related_query_name="user", to="auth.Group", verbose_name="groups", ), ), ("record", models.ManyToManyField(to="cart.Transaction")), ( "user_permissions", models.ManyToManyField( blank=True, help_text="Specific permissions for this user.", related_name="user_set", related_query_name="user", to="auth.Permission", verbose_name="user permissions", ), ), ], options={ "verbose_name": "user", "verbose_name_plural": "users", "abstract": False, }, managers=[ ("objects", django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Property', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address', models.CharField(max_length=255, unique=True)), ('hashId', models.UUIDField(default=uuid.uuid4, editable=False)), ('rent', models.IntegerField()), ('size', models.IntegerField()), ('buildDate', models.DateTimeField(auto_now_add=True)), ('livingNumber', models.IntegerField()), ('nearestStation', models.TextField()), ], ), migrations.CreateModel( name='ReviewProduct', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=234)), ('year', models.CharField(max_length=4)), ('charge_id', models.CharField(max_length=234)), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('consent', models.BooleanField(default=True, help_text='Are you happy for us to anonymously upload your review to our property review site? Your review will be anonymised')), ('livingConfirmation', models.BooleanField(default=True, help_text='Do you confirm that you live or lived at the property in question?')), ('firstName', models.CharField(max_length=255)), ('contactPermisssion', models.BooleanField(default=True, help_text='Do you want us to contact you when we upload your review?')), ('reviewDate', models.DateField(auto_now_add=True)), ('moveIn', models.DateField()), ('moveOut', models.DateField()), ('occupation', models.CharField(choices=[('Student', 'Student'), ('Non student', 'Non student')], default='Student', max_length=255)), ('bedroomNumber', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10)], default=3, help_text='How many bedrooms was the house? ')), ('overallRating', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the property out of 5? [conditon, responsiveness of landlord/property management company/value for money/neighbourhood]')), ('overallMaintainance', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='What was the condition of the property and how well was it maintained? ')), ('buildingQuality', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='What was the quality of the building [considering pests, rodents, cleanliness and any damp or mould]?')), ('furnishings', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='What was the quality of the furnishings? ')), ('water', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the water, heating and insulation of the property?')), ('whiteGoods', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the quality of the white goods (dishwasher, washing machine, electrical appliances)')), ('maintainanceComment', models.CharField(blank=True, help_text='Any other comment?', max_length=255, null=True)), ('overallLandlord', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the landlord/property management company?')), ('responsiveness', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How responsive was the landlord/property management company to an issues that were raised? ')), ('repairQuality', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the quality of any repairs to any issues raised?')), ('movingInExperiance', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the moving in process and experience? [Moving in dates, state of property etc] ')), ('movingOutExperiance', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How would you rate the moving out process and experience? [Deposit, cleanling fees, fairness] ')), ('landlordComment', models.CharField(blank=True, help_text='Any other comment?', max_length=255, null=True)), ('rent', models.PositiveIntegerField(default=500, help_text='What was your monthly rent?')), ('valueForMoney', models.BooleanField(default=True, help_text='Was the property worth the money?')), ('areaSafety', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How safe did you feel in the area?')), ('areaEnjoyment', models.IntegerField(choices=[(1, 1), (2, 2), (3, 2), (4, 4), (5, 5)], default=3, help_text='How much did you enjoy living in the area? ')), ('areaEnjoymentReason', models.CharField(blank=True, help_text='why? [amenities, closeness to transport, noise]', max_length=255, null=True)), ('recomendation', models.BooleanField(default=True, help_text='Would you reccomend this property to others? ')), ('property', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='beta.property')), ], ), migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('send_daily_emails', models.BooleanField(default=True)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tracking_uuid', models.UUIDField(default=uuid.uuid4, unique=True)), ('handle', models.CharField(max_length=255, unique=True)), ('archived', models.BooleanField(default=False)), ('domicile', django_countries.fields.CountryField(max_length=2)), ], ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('trade_name', models.CharField(max_length=255)), ('verified', models.BooleanField(default=False)), ('domicile', django_countries.fields.CountryField(max_length=2)), ], ), migrations.CreateModel( name='Revenue', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('feature', models.CharField(choices=[('card', 'card'), ('business_account', 'business_account'), ('online_payment', 'online_payment'), ('subscription', 'subscription')], max_length=20)), ('timestamp_paid', models.DateTimeField()), ('amount', models.DecimalField(decimal_places=2, max_digits=12)), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Account')), ], ), migrations.CreateModel( name='User', fields=[ ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('tracking_uuid', models.UUIDField(default=uuid.uuid4, unique=True)), ('mobile_verified', models.BooleanField(default=False)), ('email_verified', models.BooleanField(default=False)), ('identity_verified', models.BooleanField(default=False)), ('invited', models.BooleanField(default=False)), ('country', django_countries.fields.CountryField(max_length=2)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user',), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AddField( model_name='company', name='creator', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.User'), ), migrations.AddField( model_name='account', name='company', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Company'), ), migrations.AddField( model_name='account', name='creator', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.User'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'verbose_name': 'bruger', 'verbose_name_plural': 'brugere', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='ActivityDetails', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='Navn')), ('activity_id', models.CharField(max_length=128, unique=True, verbose_name='aktivitets ID')), ('max_tolerance_in_percent', models.PositiveSmallIntegerField(verbose_name='max tolerance i procent')), ('max_tolerance_in_dkk', models.PositiveIntegerField(verbose_name='max tolerance i DKK')), ('main_activities', models.ManyToManyField(blank=True, related_name='supplementary_activities', to='core.ActivityDetails', verbose_name='tilladte hovedaktiviteter')), ], options={ 'verbose_name': 'aktivitetsdetalje', 'verbose_name_plural': 'aktivitetsdetaljer', }, ), migrations.CreateModel( name='ApprovalLevel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='navn')), ], options={ 'verbose_name': 'bevillingsniveau', 'verbose_name_plural': 'bevillingsniveauer', }, ), migrations.CreateModel( name='Case', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('revision', models.CharField(blank=True, editable=False, help_text='System field. Git repository tag:branch:commit.', max_length=75, null=True, verbose_name='Revision')), ('created', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('modified', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('user_created', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user created')), ('user_modified', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user modified')), ('hostname_created', models.CharField(blank=True, default=_socket.gethostname, help_text='System field. (modified on create only)', max_length=60)), ('hostname_modified', models.CharField(blank=True, help_text='System field. (modified on every save)', max_length=50)), ('device_created', models.CharField(blank=True, max_length=10)), ('device_modified', models.CharField(blank=True, max_length=10)), ('sbsys_id', models.CharField(max_length=128, unique=True, verbose_name='SBSYS-ID')), ('cpr_number', models.CharField(max_length=10, verbose_name='cpr-nummer')), ('name', models.CharField(max_length=128, verbose_name='navn')), ('target_group', models.CharField(choices=[('FAMILY_DEPT', 'familieafdelingen'), ('DISABILITY_DEPT', 'handicapafdelingen')], max_length=128, verbose_name='målgruppe')), ('effort_step', models.PositiveSmallIntegerField(choices=[(1, 'Trin 1: Tidlig indsats i almenområdet'), (2, 'Trin 2: Forebyggelse'), (3, 'Trin 3: Hjemmebaserede indsatser'), (4, 'Trin 4: Anbringelse i slægt eller netværk'), (5, 'Trin 5: Anbringelse i forskellige typer af plejefamilier'), (6, 'Trin 6: Anbringelse i institutionstilbud')], verbose_name='indsatstrappe')), ('scaling_step', models.PositiveSmallIntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10)], verbose_name='skaleringstrappe')), ('assessment_comment', models.TextField(blank=True, verbose_name='supplerende oplysninger til vurdering')), ('refugee_integration', models.BooleanField(default=False, verbose_name='integrationsindsatsen')), ('cross_department_measure', models.BooleanField(default=False, verbose_name='tværgående ungeindsats')), ('note', models.TextField(blank=True, verbose_name='note')), ], options={ 'verbose_name': 'sag', 'verbose_name_plural': 'sager', }, ), migrations.CreateModel( name='Municipality', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='navn')), ], options={ 'verbose_name': 'kommune', 'verbose_name_plural': 'kommuner', }, ), migrations.CreateModel( name='PaymentMethodDetails', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tax_card', models.CharField(choices=[('MAIN_CARD', 'Hovedkort'), ('SECONDARY_CARD', 'Bikort')], max_length=128, verbose_name='skattekort')), ], options={ 'verbose_name': 'betalingsmåde detalje', 'verbose_name_plural': 'betalingsmåde detaljer', }, ), migrations.CreateModel( name='SchoolDistrict', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='navn')), ], options={ 'verbose_name': 'distrikt', 'verbose_name_plural': 'distrikter', }, ), migrations.CreateModel( name='Section', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('paragraph', models.CharField(max_length=128, verbose_name='paragraf')), ('text', models.TextField(verbose_name='forklarende tekst')), ('allowed_for_family_target_group', models.BooleanField(default=False, verbose_name='tilladt for familieafdelingen')), ('allowed_for_disability_target_group', models.BooleanField(default=False, verbose_name='tilladt for handicapafdelingen')), ('allowed_for_steps', django.contrib.postgres.fields.ArrayField(base_field=models.PositiveSmallIntegerField(choices=[(1, 'Trin 1: Tidlig indsats i almenområdet'), (2, 'Trin 2: Forebyggelse'), (3, 'Trin 3: Hjemmebaserede indsatser'), (4, 'Trin 4: Anbringelse i slægt eller netværk'), (5, 'Trin 5: Anbringelse i forskellige typer af plejefamilier'), (6, 'Trin 6: Anbringelse i institutionstilbud')]), size=6, verbose_name='tilladt for trin i indsatstrappen')), ('law_text_name', models.CharField(max_length=128, verbose_name='lov tekst navn')), ], options={ 'verbose_name': 'paragraf', 'verbose_name_plural': 'paragraffer', }, ), migrations.CreateModel( name='ServiceProvider', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cvr_number', models.CharField(blank=True, max_length=8, verbose_name='cvr-nummer')), ('name', models.CharField(max_length=128, verbose_name='navn')), ('vat_factor', models.DecimalField(decimal_places=2, default=100.0, max_digits=5, validators=[django.core.validators.MinValueValidator(Decimal('0.01'))], verbose_name='momsfaktor')), ], options={ 'verbose_name': 'leverandør', 'verbose_name_plural': 'leverandører', }, ), migrations.CreateModel( name='Team', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='navn')), ('leader', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='managed_teams', to=settings.AUTH_USER_MODEL, verbose_name='leder')), ], ), migrations.CreateModel( name='SectionInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('kle_number', models.CharField(blank=True, max_length=128, verbose_name='KLE-nummer')), ('sbsys_template_id', models.CharField(blank=True, max_length=128, verbose_name='SBSYS skabelon-id')), ('activity_details', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ActivityDetails')), ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Section')), ], options={ 'verbose_name': 'paragraf-info', 'verbose_name_plural': 'paragraf-info', }, ), migrations.CreateModel( name='RelatedPerson', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('relation_type', models.CharField(max_length=128, verbose_name='relation')), ('cpr_number', models.CharField(blank=True, max_length=10, verbose_name='cpr-nummer')), ('name', models.CharField(max_length=128, verbose_name='navn')), ('related_case', models.CharField(blank=True, max_length=128, verbose_name='SBSYS-sag')), ('main_case', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_persons', to='core.Case', verbose_name='hovedsag')), ], options={ 'verbose_name': 'relateret person', 'verbose_name_plural': 'relaterede personer', }, ), migrations.CreateModel( name='PaymentSchedule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('recipient_type', models.CharField(choices=[('INTERNAL', 'Intern'), ('PERSON', 'Person'), ('COMPANY', 'Firma')], max_length=128, verbose_name='betalingsmodtager')), ('recipient_id', models.CharField(max_length=128, verbose_name='ID')), ('recipient_name', models.CharField(max_length=128, verbose_name='navn')), ('payment_method', models.CharField(choices=[('CASH', 'Udbetaling'), ('SD', 'SD-LØN'), ('INVOICE', 'Faktura'), ('INTERNAL', 'Intern afregning')], max_length=128, verbose_name='betalingsmåde')), ('payment_frequency', models.CharField(blank=True, choices=[('DAILY', 'Dagligt'), ('WEEKLY', 'Ugentligt'), ('BIWEEKLY', 'Hver 2. uge'), ('MONTHLY', 'Månedligt')], max_length=128, null=True, verbose_name='betalingsfrekvens')), ('payment_day_of_month', models.IntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(31)], verbose_name='betales d.')), ('payment_type', models.CharField(choices=[('ONE_TIME_PAYMENT', 'Engangsudgift'), ('RUNNING_PAYMENT', 'Fast beløb, løbende'), ('PER_HOUR_PAYMENT', 'Takst pr. time'), ('PER_DAY_PAYMENT', 'Takst pr. døgn'), ('PER_KM_PAYMENT', 'Takst pr. kilometer')], max_length=128, verbose_name='betalingstype')), ('payment_units', models.DecimalField(blank=True, decimal_places=2, max_digits=14, null=True, validators=[django.core.validators.MinValueValidator(Decimal('0.00'))], verbose_name='betalingsenheder')), ('payment_amount', models.DecimalField(decimal_places=2, max_digits=14, validators=[django.core.validators.MinValueValidator(Decimal('0.01'))], verbose_name='beløb')), ('payment_id', models.UUIDField(default=uuid.uuid4, editable=False)), ('payment_method_details', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.PaymentMethodDetails', verbose_name='betalingsmåde detalje')), ], options={ 'verbose_name': 'betalingsplan', 'verbose_name_plural': 'betalingsplaner', }, ), migrations.CreateModel( name='Payment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(verbose_name='betalingsdato')), ('recipient_type', models.CharField(choices=[('INTERNAL', 'Intern'), ('PERSON', 'Person'), ('COMPANY', 'Firma')], max_length=128, verbose_name='betalingsmodtager')), ('recipient_id', models.CharField(max_length=128, verbose_name='ID')), ('recipient_name', models.CharField(max_length=128, verbose_name='Navn')), ('payment_method', models.CharField(choices=[('CASH', 'Udbetaling'), ('SD', 'SD-LØN'), ('INVOICE', 'Faktura'), ('INTERNAL', 'Intern afregning')], max_length=128, verbose_name='betalingsmåde')), ('amount', models.DecimalField(decimal_places=2, max_digits=14, validators=[django.core.validators.MinValueValidator(Decimal('0.01'))], verbose_name='beløb')), ('paid', models.BooleanField(default=False, verbose_name='betalt')), ('payment_schedule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='payments', to='core.PaymentSchedule', verbose_name='betalingsplan')), ], options={ 'verbose_name': 'betaling', 'verbose_name_plural': 'betalinger', }, ), migrations.CreateModel( name='HistoricalCase', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('revision', models.CharField(blank=True, editable=False, help_text='System field. Git repository tag:branch:commit.', max_length=75, null=True, verbose_name='Revision')), ('created', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('modified', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('user_created', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user created')), ('user_modified', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user modified')), ('hostname_created', models.CharField(blank=True, default=_socket.gethostname, help_text='System field. (modified on create only)', max_length=60)), ('hostname_modified', models.CharField(blank=True, help_text='System field. (modified on every save)', max_length=50)), ('device_created', models.CharField(blank=True, max_length=10)), ('device_modified', models.CharField(blank=True, max_length=10)), ('effort_step', models.PositiveSmallIntegerField(choices=[(1, 'Trin 1: Tidlig indsats i almenområdet'), (2, 'Trin 2: Forebyggelse'), (3, 'Trin 3: Hjemmebaserede indsatser'), (4, 'Trin 4: Anbringelse i slægt eller netværk'), (5, 'Trin 5: Anbringelse i forskellige typer af plejefamilier'), (6, 'Trin 6: Anbringelse i institutionstilbud')], verbose_name='indsatstrappe')), ('scaling_step', models.PositiveSmallIntegerField(choices=[(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10)], verbose_name='skaleringstrappe')), ('assessment_comment', models.TextField(blank=True, verbose_name='supplerende oplysninger til vurdering')), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('case_worker', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL, verbose_name='sagsbehandler')), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('team', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='core.Team', verbose_name='team')), ], options={ 'verbose_name': 'historical sag', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.AddField( model_name='case', name='acting_municipality', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='acts_on', to='core.Municipality', verbose_name='handlekommune'), ), migrations.AddField( model_name='case', name='case_worker', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='cases', to=settings.AUTH_USER_MODEL, verbose_name='sagsbehandler'), ), migrations.AddField( model_name='case', name='district', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='cases', to='core.SchoolDistrict', verbose_name='skoledistrikt'), ), migrations.AddField( model_name='case', name='paying_municipality', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='pays_for', to='core.Municipality', verbose_name='betalingskommune'), ), migrations.AddField( model_name='case', name='residence_municipality', field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='resident_clients', to='core.Municipality', verbose_name='bopælskommune'), ), migrations.AddField( model_name='case', name='team', field=models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, related_name='cases', to='core.Team', verbose_name='team'), ), migrations.CreateModel( name='Appropriation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('revision', models.CharField(blank=True, editable=False, help_text='System field. Git repository tag:branch:commit.', max_length=75, null=True, verbose_name='Revision')), ('created', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('modified', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('user_created', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user created')), ('user_modified', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user modified')), ('hostname_created', models.CharField(blank=True, default=_socket.gethostname, help_text='System field. (modified on create only)', max_length=60)), ('hostname_modified', models.CharField(blank=True, help_text='System field. (modified on every save)', max_length=50)), ('device_created', models.CharField(blank=True, max_length=10)), ('device_modified', models.CharField(blank=True, max_length=10)), ('sbsys_id', models.CharField(max_length=128, unique=True, verbose_name='SBSYS-ID')), ('note', models.TextField(blank=True, verbose_name='supplerende oplysninger')), ('case', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='appropriations', to='core.Case', verbose_name='sag')), ('section', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='appropriations', to='core.Section', verbose_name='paragraf')), ], options={ 'verbose_name': 'bevilling', 'verbose_name_plural': 'bevillinger', }, ), migrations.AddField( model_name='activitydetails', name='main_activity_for', field=models.ManyToManyField(blank=True, related_name='main_activities', through='core.SectionInfo', to='core.Section', verbose_name='hovedaktivitet for paragraffer'), ), migrations.AddField( model_name='activitydetails', name='service_providers', field=models.ManyToManyField(blank=True, related_name='supplied_activities', to='core.ServiceProvider', verbose_name='leverandører'), ), migrations.AddField( model_name='activitydetails', name='supplementary_activity_for', field=models.ManyToManyField(blank=True, related_name='supplementary_activities', to='core.Section', verbose_name='følgeudgift for paragraffer'), ), migrations.CreateModel( name='Activity', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('revision', models.CharField(blank=True, editable=False, help_text='System field. Git repository tag:branch:commit.', max_length=75, null=True, verbose_name='Revision')), ('created', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('modified', models.DateTimeField(blank=True, default=django.utils.timezone.now)), ('user_created', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user created')), ('user_modified', models.CharField(blank=True, help_text='Updated by admin.save_model', max_length=50, verbose_name='user modified')), ('hostname_created', models.CharField(blank=True, default=_socket.gethostname, help_text='System field. (modified on create only)', max_length=60)), ('hostname_modified', models.CharField(blank=True, help_text='System field. (modified on every save)', max_length=50)), ('device_created', models.CharField(blank=True, max_length=10)), ('device_modified', models.CharField(blank=True, max_length=10)), ('status', models.CharField(choices=[('DRAFT', 'kladde'), ('EXPECTED', 'forventet'), ('GRANTED', 'bevilget')], max_length=128, verbose_name='status')), ('approval_note', models.TextField(blank=True, verbose_name='evt. bemærkning')), ('appropriation_date', models.DateField(blank=True, null=True, verbose_name='bevillingsdato')), ('start_date', models.DateField(verbose_name='startdato')), ('end_date', models.DateField(blank=True, null=True, verbose_name='slutdato')), ('activity_type', models.CharField(choices=[('MAIN_ACTIVITY', 'hovedaktivitet'), ('SUPPL_ACTIVITY', 'følgeaktivitet')], max_length=128, verbose_name='type')), ('note', models.TextField(blank=True, max_length=1000, null=True)), ('appropriation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='activities', to='core.Appropriation', verbose_name='bevilling')), ('approval_level', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='approved_activities', to='core.ApprovalLevel', verbose_name='bevillingsniveau')), ('approval_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='approved_activities', to=settings.AUTH_USER_MODEL, verbose_name='bevilget af bruger')), ('details', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.ActivityDetails', verbose_name='aktivitetsdetalje')), ('modifies', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='modified_by', to='core.Activity')), ('payment_plan', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.PaymentSchedule', verbose_name='betalingsplan')), ('service_provider', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='activities', to='core.ServiceProvider', verbose_name='leverandør')), ], options={ 'verbose_name': 'aktivitet', 'verbose_name_plural': 'aktiviteter', }, ), migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=128, verbose_name='konteringsnummer')), ('main_activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='main_accounts', to='core.ActivityDetails', verbose_name='hovedaktivitet')), ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='accounts', to='core.Section', verbose_name='paragraf')), ('supplementary_activity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='supplementary_accounts', to='core.ActivityDetails', verbose_name='følgeudgift')), ], options={ 'verbose_name': 'konto', 'verbose_name_plural': 'konti', }, ), migrations.AddField( model_name='user', name='team', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='users', to='core.Team'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), migrations.AddConstraint( model_name='activity', constraint=models.CheckConstraint(check=models.Q(start_date__lte=django.db.models.expressions.F('end_date')), name='end_date_after_start_date'), ), migrations.AddConstraint( model_name='activity', constraint=models.UniqueConstraint(condition=models.Q(('activity_type', 'MAIN_ACTIVITY'), ('modifies__isnull', True)), fields=('appropriation',), name='unique_main_activity'), ), migrations.AddConstraint( model_name='account', constraint=models.UniqueConstraint(fields=('main_activity', 'supplementary_activity', 'section'), name='unique_account_number'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.CreateModel( name='TroposphereUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('end_date', models.DateTimeField(blank=True, null=True)), ('username', models.CharField( error_messages={ b'unique': 'A user with that username already exists.' }, help_text= 'Required. 256 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=256, unique=True, validators=[ django.core.validators.RegexValidator( b'^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.' ) ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=64, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=256, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'db_table': 'troposphere_user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.RunPython(migrate_accounts, None), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('is_director', models.BooleanField(default=False)), ('is_queueoperator', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Name', models.CharField(max_length=120)), ('ContactFirstName', models.CharField(max_length=50)), ('ContactLastName', models.CharField(max_length=50)), ('EmailAddress', models.EmailField(max_length=250)), ('PhoneNumber', models.CharField(max_length=50)), ('CreatedAt', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Queue', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Name', models.CharField(max_length=50)), ('CreatedAt', models.DateTimeField(auto_now=True)), ('Active', models.BooleanField()), ], ), migrations.CreateModel( name='Director', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='customer.user')), ('CreatedAt', models.DateTimeField(auto_now=True)), ('director_uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('QRcode', models.ImageField(blank=True, null=True, upload_to='QRcodes/')), ('Customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customer.customer')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Name', models.CharField(max_length=50)), ('CreatedAt', models.DateTimeField(auto_now=True)), ('Queue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customer.queue')), ], ), migrations.CreateModel( name='Queueoperator', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='customer.user')), ('CreatedAt', models.DateTimeField(auto_now=True)), ('Customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customer.customer')), ('Director', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='customer.director')), ('Queue', models.ManyToManyField(to='customer.Queue')), ], ), migrations.AddField( model_name='queue', name='Director', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='customer.director'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0012_alter_user_first_name_max_length"), ] operations = [ migrations.CreateModel( name="GpGroup", fields=[], options={ "verbose_name": "Grupo", "verbose_name_plural": "Grupos", "proxy": True, "indexes": [], "constraints": [], }, bases=("auth.group", ), managers=[ ("objects", django.contrib.auth.models.GroupManager()), ], ), migrations.CreateModel( name="GpPermission", fields=[], options={ "verbose_name": "Permissão", "verbose_name_plural": "Permissões", "proxy": True, "indexes": [], "constraints": [], }, bases=("auth.permission", ), managers=[ ("objects", django.contrib.auth.models.PermissionManager()), ], ), migrations.CreateModel( name="Customer", fields=[ ("password", models.CharField(max_length=128, verbose_name="password")), ( "last_login", models.DateTimeField(blank=True, null=True, verbose_name="last login"), ), ( "is_superuser", models.BooleanField( default=False, help_text= "Designates that this user has all permissions without explicitly assigning them.", verbose_name="superuser status", ), ), ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ( "email", models.EmailField( error_messages={"unique": "Esse email já existe."}, help_text= "O email será usado para acessar o sistema e enviar informações", max_length=254, unique=True, validators=[django.core.validators.EmailValidator()], verbose_name="Email", ), ), ( "name", models.CharField( help_text="Digite o nome completo do usuário.", max_length=200, verbose_name="Nome", ), ), ( "is_active", models.BooleanField( default=True, help_text= "Apenas usuários ativos podem acessar o sistema.", verbose_name="Ativo?", ), ), ( "is_staff", models.BooleanField( default=False, help_text= "Determina se o usuário tem acesso ao painel do sistema.", verbose_name="Faz parte da equipe?", ), ), ( "date_joined", models.DateTimeField( default=django.utils.timezone.now, verbose_name="Data de registro", ), ), ( "groups", models.ManyToManyField( blank=True, help_text= "Os grupos que este usuário pertence. Um usuário terá todas as permissões concedidas a cada um dos seus grupos.", related_name="user_set", related_query_name="user", to="auth.Group", verbose_name="grupos", ), ), ( "user_permissions", models.ManyToManyField( blank=True, help_text="Permissões específicas para este usuário.", related_name="user_set", related_query_name="user", to="auth.Permission", verbose_name="permissões do usuário", ), ), ], options={ "verbose_name": "Usuário", "verbose_name_plural": "Usuários", }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('avatar', models.ImageField(blank=True, null=True, upload_to='user/%Y/%m/%d')), ('cedula', models.CharField(max_length=10, unique=True)), ('celular', models.CharField(blank=True, max_length=10, null=True, unique=True)), ('telefono', models.CharField(blank=True, max_length=9, null=True, unique=True)), ('direccion', models.CharField(blank=True, max_length=500, null=True)), ('sexo', models.IntegerField(choices=[(1, 'Masculino'), (0, 'Femenino')], default=1)), ('estado', models.IntegerField(choices=[(1, 'ACTIVO'), (0, 'INACTIVO')], default=1)), ('tipo', models.IntegerField(choices=[(1, 'USER'), (0, 'CLIENTE')], default=1)), ('token', models.UUIDField(blank=True, editable=False, null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'usuario', 'verbose_name_plural': 'usuarios', 'db_table': 'usuario', 'ordering': ['-first_name', '-last_name', '-cedula'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='MyCustomUser', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('user_name', models.CharField(max_length=15, unique=True)), ('first_name', models.CharField(blank=True, max_length=30)), ('last_name', models.CharField(blank=True, max_length=30)), ('email_address', models.EmailField(max_length=255, unique=True)), ('created_time', models.DateTimeField(auto_now_add=True)), ('updated_time', models.DateTimeField(auto_now=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('uuid', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('username', models.CharField(max_length=100, unique=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Account', fields=[ ('uuid', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('balance', models.DecimalField( decimal_places=2, max_digits=6, validators=[ django.core.validators.MinValueValidator( Decimal('0.00')) ])), ], ), migrations.CreateModel( name='Currency', fields=[ ('currency', models.CharField(choices=[('USD', 'US Dollar'), ('EUR', 'Euro'), ('CNY', 'Chinese Yuan')], max_length=3, primary_key=True, serialize=False)), ], options={ 'verbose_name_plural': 'Currencies', }, ), migrations.CreateModel( name='TransactionType', fields=[ ('transaction_type', models.CharField(choices=[('SELF', 'Funds Transfer to Self'), ('OTHER', 'Funds Transfer to Other') ], max_length=5, primary_key=True, serialize=False)), ('commission_rate', models.FloatField()), ], ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('transaction_date', models.DateTimeField(default=datetime.datetime.now)), ('sent_amount', models.DecimalField( decimal_places=2, max_digits=6, validators=[ django.core.validators.MinValueValidator( Decimal('0.01')) ])), ('received_amount', models.DecimalField( decimal_places=2, max_digits=6, validators=[ django.core.validators.MinValueValidator( Decimal('0.01')) ])), ('commission', models.DecimalField( decimal_places=2, max_digits=6, validators=[ django.core.validators.MinValueValidator( Decimal('0.00')) ])), ('sender_currency', models.CharField(max_length=3)), ('receiver_currency', models.CharField(max_length=3)), ('commission_rate', models.FloatField(validators=[ django.core.validators.MinValueValidator(0.0) ])), ('conversion_rate', models.FloatField(validators=[ django.core.validators.MinValueValidator(0.0) ])), ('receiver_account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='funds_receiver', to='core.Account')), ('sender_account', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='funds_sender', to='core.Account')), ('transaction_type', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.TransactionType')), ], ), migrations.CreateModel( name='CurrencyConversionRate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('conversion_rate', models.FloatField(validators=[ django.core.validators.MinValueValidator(0.0) ])), ('from_currency', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_currency', to='core.Currency')), ('to_currency', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_currency', to='core.Currency')), ], ), migrations.AddField( model_name='account', name='currency', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Currency'), ), migrations.AddField( model_name='account', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='account', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='transactions', field=models.ManyToManyField(to='core.Transaction'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Users', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Products', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(default=None, max_length=100, null=True)), ('price', models.FloatField(default=None)), ('file', models.ImageField(upload_to=e_app.models.uploadFile)), ('active', models.BooleanField(default=True)), ('created_at', models.DateField(auto_now_add=True)), ('updated_at', models.DateField(blank=True, default=None, null=True)), ('deleted_at', models.DateField(blank=True, default=None, null=True)), ], ), migrations.CreateModel( name='Bought', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('payments_id', models.CharField(max_length=100)), ('total_paid', models.FloatField(default=None)), ('total_tax', models.FloatField(default=None, null=True)), ('total_discount', models.FloatField(default=None, null=True)), ('paid_at', models.DateTimeField(auto_now_add=True)), ('active', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField()), ('deleted_at', models.DateTimeField()), ('customer_id', models.ForeignKey(on_delete='models.CASCADE', to=settings.AUTH_USER_MODEL)), ('product_id', models.ForeignKey(on_delete='models.CASCADE', to='e_app.Products')), ], ), migrations.CreateModel( name='AddCard', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('product_name', models.CharField(default=None, max_length=100)), ('product_price', models.FloatField(default=None)), ('number_of_items', models.IntegerField(default=None)), ('active', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField()), ('deleted_at', models.DateTimeField()), ('customer_id', models.ForeignKey(on_delete='models.CASCADE', to=settings.AUTH_USER_MODEL)), ('product_id', models.ForeignKey(on_delete='models.CASCADE', to='e_app.Products')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('bio', models.CharField(blank=True, max_length=1000, null=True)), ], managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Event', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(blank=True, max_length=50, null=True)), ('short_desc', models.CharField(blank=True, max_length=250, null=True)), ('desc', models.CharField(blank=True, max_length=2500, null=True)), ('start_date', models.DateTimeField(blank=True, null=True)), ('end_date', models.DateTimeField(blank=True, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TitleChannel', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(blank=True, max_length=50, null=True)), ('description', models.CharField(blank=True, max_length=100, null=True)), ('is_main', models.BooleanField(default=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='UserTrophy', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(blank=True, max_length=100, null=True)), ('description', models.CharField(blank=True, max_length=2000, null=True)), ], options={ 'verbose_name_plural': 'User Trophies', }, ), migrations.CreateModel( name='Title', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('text', models.CharField(max_length=50, null=True, unique=True)), ('channels', models.ManyToManyField(related_name='titles', to='sour_and_perky.TitleChannel')), ('creator', models.ForeignKey( default=apps.sour_and_perky.models.common.first_user_id, on_delete=django.db.models.deletion.SET_DEFAULT, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='HistoricalUserTrophy', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('name', models.CharField(blank=True, max_length=100, null=True)), ('description', models.CharField(blank=True, max_length=2000, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical user trophy', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalUser', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( db_index=True, error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('bio', models.CharField(blank=True, max_length=1000, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical user', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalTitleChannel', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('name', models.CharField(blank=True, max_length=50, null=True)), ('description', models.CharField(blank=True, max_length=100, null=True)), ('is_main', models.BooleanField(default=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical title channel', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalTitle', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('text', models.CharField(db_index=True, max_length=50, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('creator', models.ForeignKey( blank=True, db_constraint=False, default=apps.sour_and_perky.models.common.first_user_id, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical title', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalEvent', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('name', models.CharField(blank=True, max_length=50, null=True)), ('short_desc', models.CharField(blank=True, max_length=250, null=True)), ('desc', models.CharField(blank=True, max_length=2500, null=True)), ('start_date', models.DateTimeField(blank=True, null=True)), ('end_date', models.DateTimeField(blank=True, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical event', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalEntry', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False)), ('text', models.CharField(blank=True, max_length=2500, null=True)), ('readability', models.BooleanField(default=True)), ('date', models.DateTimeField(blank=True, editable=False, null=True)), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('author', models.ForeignKey( blank=True, db_constraint=False, default=apps.sour_and_perky.models.common.first_user_id, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('title', models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='sour_and_perky.Title')), ], options={ 'verbose_name': 'historical entry', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='Entry', fields=[ ('timestamp', models.DateTimeField(db_index=True, default=django.utils.timezone.now)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('text', models.CharField(blank=True, max_length=2500, null=True)), ('readability', models.BooleanField(default=True)), ('date', models.DateTimeField(auto_now_add=True, null=True)), ('author', models.ForeignKey( blank=True, default=apps.sour_and_perky.models.common.first_user_id, null=True, on_delete=django.db.models.deletion.SET_DEFAULT, related_name='entries', to=settings.AUTH_USER_MODEL)), ('title', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='sour_and_perky.Title')), ], options={ 'verbose_name_plural': 'Entries', }, ), migrations.AddField( model_name='user', name='dislikes', field=models.ManyToManyField(blank=True, related_name='dislikers', to='sour_and_perky.Entry'), ), migrations.AddField( model_name='user', name='favs', field=models.ManyToManyField(blank=True, related_name='favers', to='sour_and_perky.Entry'), ), migrations.AddField( model_name='user', name='followed_titles', field=models.ManyToManyField(blank=True, related_name='followers', to='sour_and_perky.Title'), ), migrations.AddField( model_name='user', name='followed_users', field=models.ManyToManyField(blank=True, related_name='followers', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='likes', field=models.ManyToManyField(blank=True, related_name='likers', to='sour_and_perky.Entry'), ), migrations.AddField( model_name='user', name='reported', field=models.ManyToManyField(blank=True, related_name='reported_by', to='sour_and_perky.Entry'), ), migrations.AddField( model_name='user', name='trophies', field=models.ManyToManyField(blank=True, related_name='owners', to='sour_and_perky.UserTrophy'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('bio', models.TextField(blank=True, max_length=500)), ('is_student', models.BooleanField(default=False)), ('is_teacher', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Board', fields=[ ('board_id', models.UUIDField(primary_key=True, serialize=False)), ('board_name', models.TextField()), ('public', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Course', fields=[ ('course_id', models.UUIDField(primary_key=True, serialize=False)), ('course_name', models.TextField()), ], ), migrations.CreateModel( name='Ticket', fields=[ ('ticket_id', models.UUIDField(primary_key=True, serialize=False)), ('title', models.TextField()), ('description', models.TextField()), ('due_date', models.DateField()), ('status', models.CharField(choices=[('TD', 'To Do'), ('IP', 'In Progress'), ('DN', 'Done'), ('SB', 'Submitted'), ('RT', 'Returned')], default='TD', max_length=2)), ('board', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Board')), ], ), migrations.CreateModel( name='TeacherProfile', fields=[ ('teacher_profile_id', models.UUIDField(primary_key=True, serialize=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='StudentProfile', fields=[ ('student_profile_id', models.UUIDField(primary_key=True, serialize=False)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='board', name='board_class', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Course'), ), migrations.AddField( model_name='board', name='owner', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.StudentProfile'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('slug', models.SlugField(default='', editable=False, max_length=100, unique=True)), ('email', models.CharField(max_length=256)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='AccessToken', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='PushPool', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(max_length=256)), ], ), migrations.CreateModel( name='Subscription', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(max_length=256)), ('pushpool', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='mail.PushPool')), ('tokens', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='mail.AccessToken')), ], ), migrations.CreateModel( name='Mail', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('mail_from', models.EmailField(max_length=256)), ('mail_to', models.EmailField(max_length=256)), ('mail_bcc', models.EmailField(max_length=256)), ('mail_subject', models.CharField(max_length=256)), ('mail_html', models.TextField(blank=True, default=None, null=True)), ('mail_text', models.TextField(blank=True, default=None, null=True)), ('autogen_text_version', models.BooleanField(default=True)), ('enable_dkim', models.BooleanField(default=False)), ('sent', models.BooleanField(default=False)), ('bounced', models.BooleanField(default=False)), ('subscription', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mails', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='user', name='subscriptions', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='mail.Subscription'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='UUIDUser', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('groups', models.ManyToManyField(blank=True, related_name='uuiduser_set', related_query_name='user', to='auth.Group')), ('user_permissions', models.ManyToManyField(blank=True, related_name='uuiduser_set', related_query_name='user', to='auth.Permission')), ], options={ 'verbose_name': 'usuario', 'verbose_name_plural': 'usuarios', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(verbose_name='comentário')), ], options={ 'verbose_name': 'comentário', 'verbose_name_plural': 'comentários', }, ), migrations.CreateModel( name='Proposal', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='criado em')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='atualizado em')), ('name', models.CharField(max_length=150, verbose_name='nome')), ('description', models.TextField(verbose_name='descrição')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='UUIDUser', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'proposta', 'verbose_name_plural': 'propostas', }, ), migrations.CreateModel( name='Vote', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('kind', models.IntegerField(verbose_name='tipo')), ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='proposta', to='voting.Proposal')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='UUIDUser2', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'voto', 'verbose_name_plural': 'votos', }, ), migrations.AddField( model_name='comment', name='proposal', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='proposta2', to='voting.Proposal'), ), migrations.AddField( model_name='comment', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='UUIDUser3', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('username', models.CharField(error_messages={ 'unique': 'A user with that username already exists.' }, max_length=255, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='Username')), ('first_name', models.CharField(max_length=255, verbose_name='First name')), ('last_name', models.CharField(max_length=255, verbose_name='Last name')), ('extra_data', django.contrib.postgres.fields.jsonb.JSONField( blank=True, null=True, verbose_name='Exta data')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Email', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.CharField(max_length=255, verbose_name='Phone number')), ('default', models.BooleanField(default=False, verbose_name='Default')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User')), ], ), migrations.CreateModel( name='Phone', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(max_length=30, verbose_name='Phone number')), ('default', models.BooleanField(default=False, verbose_name='Default')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ('projects', '0001_initial'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=40, unique=True)), ('first_name', models.CharField(blank=True, max_length=30, null=True)), ('last_name', models.CharField(blank=True, max_length=30, null=True)), ('mobile', models.CharField(blank=True, max_length=30, null=True)), ('id_number', models.CharField(blank=True, max_length=40, null=True)), ('dob', models.DateTimeField(blank=True, null=True)), ('gender', models.CharField(blank=True, choices=[('Male', 'Male'), ('Female', 'Female'), ('Other', 'Other')], max_length=20, null=True)), ('nationality', models.CharField(blank=True, max_length=254, null=True)), ('position', models.CharField(blank=True, max_length=30, null=True)), ('is_admin', models.BooleanField(default=False)), ('active', models.BooleanField(default=True)), ('deleted', models.BooleanField(default=False)), ('created_at', models.DateTimeField(default=django.utils.timezone.now)), ('updated_at', models.DateTimeField(default=django.utils.timezone.now)), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserGroup', fields=[ ('group_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='auth.Group')), ('active', models.BooleanField(default=True)), ('deleted', models.BooleanField( default=False, help_text='Deletes should deactivate not do actual deletes' )), ('created_at', models.DateTimeField(default=django.utils.timezone.now)), ('updated_at', models.DateTimeField(default=django.utils.timezone.now)), ('notes', models.TextField(blank=True)), ('default', models.BooleanField(default=False)), ('created_by', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='projects.Project')), ], options={ 'ordering': ['name'], }, bases=('auth.group', models.Model), managers=[ ('objects', django.contrib.auth.models.GroupManager()), ], ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField(blank=True, related_name='users', to='users.UserGroup'), ), migrations.AddField( model_name='user', name='project', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='users', to='projects.Project'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='LibUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('card_No', models.CharField(max_length=20)), ('phone', models.CharField(max_length=20)), ('photo', models.ImageField(blank=True, null=True, upload_to='photo')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('date_of_birth', models.DateField(blank=True, null=True)), ('date_of_death', models.DateField(blank=True, null=True, verbose_name='Died')), ], options={ 'ordering': ('last_name', ), }, ), migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('title', models.CharField(max_length=200)), ('summary', models.TextField( help_text='Enter a brief description of the book', max_length=1000)), ('isbn', models.CharField( help_text= '13 Character <a href="https://www.isbn-international.org/content/what-isbn">ISBN number</a>', max_length=13, verbose_name='ISBN')), ('cover', models.ImageField(blank=True, null=True, upload_to='images')), ('language', models.CharField(choices=[('en', 'English'), ('zh', 'Chinese'), ('fr', 'French'), ('de', 'German'), ('es', 'Spanish'), ('ja', 'Japanese'), ('ko', 'Korean')], default='en', help_text='Enter the language of the book', max_length=2)), ('author', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Author')), ], options={ 'ordering': ['title'], }, ), migrations.CreateModel( name='Genre', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('name', models.CharField( help_text= 'Enter a book genre (e.g. Science Fiction, French Poetry etc.)', max_length=200)), ], options={ 'ordering': ['name'], }, ), migrations.CreateModel( name='BookInstance', fields=[ ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('id', models.UUIDField( default=uuid.uuid4, help_text= 'Unique ID for this particular book across whole library', primary_key=True, serialize=False)), ('imprint', models.CharField(max_length=200)), ('due_back', models.DateField(blank=True, null=True)), ('status', models.CharField(blank=True, choices=[('m', 'Maintenance'), ('o', 'On loan'), ('a', 'Available'), ('r', 'Reserved')], default='m', help_text='Book availability', max_length=1)), ('book', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='catalog.Book')), ('borrower', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['due_back'], 'permissions': (('can_mark_returned', 'Set book as returned'), ('can_renew', 'Renew a bookinstance')), }, ), migrations.AddField( model_name='book', name='genre', field=models.ManyToManyField( help_text='Select a genre for this book', to='catalog.Genre'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Users', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(max_length=255)), ('age', models.PositiveIntegerField()), ('email', models.EmailField(max_length=255, unique=True)), ('is_active', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('picture', models.FileField(null=True, upload_to='picture/')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'db_table': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='UserActivateTokens', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.UUIDField(db_index=True)), ('expired_at', models.DateTimeField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'user_activate_tokens', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('username', models.CharField(max_length=128, unique=True)), ('name', models.CharField(max_length=128)), ('email', models.EmailField(max_length=128, unique=True)), ('phone', models.CharField(blank=True, max_length=20, null=True)), ('wechat', models.CharField(blank=True, max_length=20, null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'ordering': ['username'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('active', models.BooleanField(default=True)), ('system', models.BooleanField(default=False)), ('langCode', models.CharField(max_length=10, null=True)), ('imageURL', models.CharField(max_length=200, null=True)), ('fromAD', models.BooleanField(default=False)), ('deleted', models.BooleanField(default=False)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'permissions': (('list_sessions', 'Can list sessions'), ('list_company_sessions', 'Can get company sessions'), ('kill_sessions', 'Can kill sessions'), ('do_sanity_check', 'Can do sanity check'), ('change_profile', 'Can change profile'), ('get_user_stats', 'Can get user stats'), ('get_licence_info', 'Can get licence info'), ('add_folder', 'Can add folders'), ('copy_file_or_folder', 'Can copy file or folder'), ('delete_files', 'Can delete files or folders'), ('list_folders', 'Can list folders'), ('view_model_path_root', 'Can view model path root'), ('view_company_root', 'Can view company root'), ('change_default_company_model', 'Can change default company model'), ('add_file_public', 'Can create file in public folder'), ('change_file_name_public', 'Can rename file in public folder'), ('delete_file_public', 'Can delete file in public folder'), ('copy_model_to_my_workspace', 'Can copy model to my workspace'), ('download_files', 'Can download files'), ('upload_file_public', 'Can upload file in Public folder'), ('view_influence_diagram', 'Can view influence diagram'), ('change_influence_diagram', 'Can edit influence diagram'), ('change_group_permissions', 'Can change group permissions'), ('change_model', 'Can change model'), ('change_public_model', 'Can change model in public folder'), ('list_model_functions', 'Can list model functions'), ('list_last_models', 'Can list last models'), ('change_data_snapshots', 'Can change data snapshots'), ('list_users', 'Can list user'), ('impersonate_user', 'Login as other user'), ('view_form', 'Can view form'), ('add_form', 'Create add form'), ('list_forms', 'Can list forms'), ('change_form', 'Can change form'), ('delete_form', 'Can delete form'), ('add_form_entity', 'Can add form entity'), ('delete_form_entity', 'Can drop form entity'), ('view_entity_data', 'Can view entity data'), ('add_entity_data', 'Can add entity data'), ('change_entity_data', 'Can change entity data'), ('delete_entity_data', 'Can delete entity data'), ('view_system_functions', 'Can view system functions')), }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(db_index=True, max_length=50, unique=True)), ('name', models.CharField(max_length=255)), ('system', models.BooleanField(default=False)), ('active', models.BooleanField(default=True)), ('licence', models.CharField(max_length=4000, null=True)), ], options={ 'verbose_name_plural': 'companies', 'permissions': (('list_companies', 'List companies'),), }, ), migrations.CreateModel( name='Dashboard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('model', models.CharField(max_length=255)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('is_fav', models.BooleanField(default=False)), ('is_public', models.BooleanField(default=False)), ('definition', jsonfield.fields.JSONField(null=True)), ('node', models.CharField(blank=True, max_length=255, null=True)), ('order', models.IntegerField(default=0)), ], options={ 'permissions': (('share_dashboard', 'Can share a dashboard'), ('export_dashboard', 'Can export a dashboard'), ('import_dashboard', 'Can import a dashboard'), ('generate_external_link', 'Can generate external link to a dashboard'), ('manage_external_link', 'Can manage external link to a dashboard'), ('list_dashboards', 'Can list dashboards')), }, ), migrations.CreateModel( name='Department', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=50)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('engine_definitions', jsonfield.fields.JSONField(blank=True, null=True)), ('login_action', jsonfield.fields.JSONField(blank=True, null=True)), ('denied_items', jsonfield.fields.JSONField(blank=True, help_text='{ "folders": ["folder_a"], "modules": [{ "model_id": "model_a", "modules_ids": ["id_of_module"] }] }', null=True)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pyplan.Company')), ], ), migrations.CreateModel( name='ExternalLink', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('model_path', models.CharField(max_length=255)), ('is_active', models.BooleanField(default=True)), ('common_instance', models.BooleanField(default=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ], options={ 'ordering': ['created_at'], }, ), migrations.CreateModel( name='Preference', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=50)), ('description', models.CharField(blank=True, max_length=255, null=True)), ('definition', jsonfield.fields.JSONField(null=True)), ], ), migrations.CreateModel( name='PreferenceModule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=50)), ('description', models.CharField(blank=True, max_length=255, null=True)), ], ), migrations.CreateModel( name='UserCompany', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('active', models.BooleanField(default=True)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.Company')), ('departments', models.ManyToManyField(related_name='usercompanies', to='pyplan.Department')), ], ), migrations.CreateModel( name='NodeExternalLink', fields=[ ('external_link', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='node_external_link', serialize=False, to='pyplan.ExternalLink')), ('node_id', models.CharField(max_length=255)), ], bases=('pyplan.externallink',), ), migrations.CreateModel( name='UserCompanyPreference', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('definition', jsonfield.fields.JSONField(null=True)), ('preference', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.Preference')), ('user_company', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.UserCompany')), ], ), migrations.AddField( model_name='usercompany', name='preferences', field=models.ManyToManyField(through='pyplan.UserCompanyPreference', to='pyplan.Preference'), ), migrations.AddField( model_name='usercompany', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='usercompanies', to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='Report', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('model', models.CharField(max_length=255)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('is_fav', models.BooleanField(default=False)), ('is_public', models.BooleanField(default=False)), ('order', models.IntegerField(default=0)), ('departments', models.ManyToManyField(blank=True, related_name='shared_reports', to='pyplan.Department')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='reports', to='pyplan.UserCompany')), ('parent', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reports', to='pyplan.Report')), ('usercompanies', models.ManyToManyField(blank=True, related_name='shared_reports', to='pyplan.UserCompany')), ], options={ 'permissions': (('get_my_reports', 'Can get my reports'), ('organize_reports', 'Can organize reports')), }, ), migrations.AddField( model_name='preference', name='module', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pyplan.PreferenceModule'), ), migrations.CreateModel( name='InputTemplate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=50, unique=True)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('filepath', models.CharField(blank=True, max_length=255, null=True)), ('definition', jsonfield.fields.JSONField(blank=True, null=True)), ('departments', models.ManyToManyField(blank=True, to='pyplan.Department')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.UserCompany')), ], options={ 'permissions': (('view_my_input_templates', 'View my input templates'), ('view_all_input_templates', 'View all input templates'), ('manage_input_templates', 'Manage templates')), }, ), migrations.AddField( model_name='externallink', name='owner', field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='external_links', to='pyplan.UserCompany'), ), migrations.CreateModel( name='EmailQueue', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('subject', models.TextField()), ('created_at', models.DateTimeField(auto_now=True)), ('email_from', models.EmailField(max_length=254)), ('name_from', models.TextField()), ('email_to', models.EmailField(max_length=254)), ('name_to', models.TextField()), ('date_sent', models.DateTimeField(null=True)), ('retries', models.IntegerField(default=0)), ('email_type', models.IntegerField()), ('context', models.TextField(null=True)), ('usercompany', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.UserCompany')), ], ), migrations.CreateModel( name='DiagramShortcut', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('model', models.CharField(max_length=255)), ('node_id', models.CharField(max_length=255)), ('name', models.CharField(blank=True, max_length=255, null=True)), ('usercompany', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diagram_shortcuts', to='pyplan.UserCompany')), ], ), migrations.CreateModel( name='DashboardStyle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=500)), ('definition', jsonfield.fields.JSONField(null=True)), ('style_type', models.IntegerField(choices=[(-1, 'All'), (0, 'Range map color'), (1, 'Range indicator'), (2, 'Range gauge'), (3, 'Color series'), (4, 'Icons')], default=-1)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.UserCompany')), ], ), migrations.CreateModel( name='DashboardComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField()), ('extra_data', models.TextField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('dashboard', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='pyplan.Dashboard')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.UserCompany')), ], options={ 'permissions': (('list_dashboardcomments', 'Can list dashboard comments'),), }, ), migrations.AddField( model_name='dashboard', name='departments', field=models.ManyToManyField(blank=True, related_name='shared_dashboards', to='pyplan.Department'), ), migrations.AddField( model_name='dashboard', name='owner', field=models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='dashboards', to='pyplan.UserCompany'), ), migrations.AddField( model_name='dashboard', name='report', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dashboards', to='pyplan.Report'), ), migrations.AddField( model_name='dashboard', name='styles', field=models.ManyToManyField(blank=True, related_name='dashboards', to='pyplan.DashboardStyle'), ), migrations.AddField( model_name='dashboard', name='usercompanies', field=models.ManyToManyField(blank=True, related_name='shared_dashboards', to='pyplan.UserCompany'), ), migrations.CreateModel( name='CompanyPreference', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('definition', jsonfield.fields.JSONField(null=True)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.Company')), ('preference', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='pyplan.Preference')), ], ), migrations.AddField( model_name='company', name='preferences', field=models.ManyToManyField(through='pyplan.CompanyPreference', to='pyplan.Preference'), ), migrations.AddField( model_name='company', name='users', field=models.ManyToManyField(through='pyplan.UserCompany', to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='AppPool', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('model', models.CharField(max_length=255)), ('modelinfo', jsonfield.fields.JSONField(blank=True, null=True)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='app_pool', to='pyplan.Company')), ('usercompany', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='app_pool', to='pyplan.UserCompany')), ], ), migrations.CreateModel( name='Activity', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('updated_at', models.DateTimeField(auto_now=True)), ('type', models.CharField(choices=[(pyplan.pyplan.activity.models.ActivityType('model'), 'model'), (pyplan.pyplan.activity.models.ActivityType('dashboard'), 'dashboard')], max_length=50)), ('model_path', models.CharField(max_length=500)), ('model_name', models.CharField(max_length=254)), ('info', jsonfield.fields.JSONField(null=True)), ('usercompany', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='activities', to='pyplan.UserCompany')), ], options={ 'ordering': ['-updated_at'], }, ), migrations.AddField( model_name='user', name='companies', field=models.ManyToManyField(through='pyplan.UserCompany', to='pyplan.Company'), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), migrations.CreateModel( name='ReportExternalLink', fields=[ ('external_link', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='report_external_link', serialize=False, to='pyplan.ExternalLink')), ('report', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='external_links', to='pyplan.Report')), ], bases=('pyplan.externallink',), ), migrations.CreateModel( name='DashboardExternalLink', fields=[ ('external_link', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='dashboard_external_link', serialize=False, to='pyplan.ExternalLink')), ('dashboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='external_links', to='pyplan.Dashboard')), ], bases=('pyplan.externallink',), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Club', fields=[ ('clubId', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('clubName', models.CharField(blank=True, default='', max_length=50, verbose_name='Name')), ('zone', models.CharField(blank=True, max_length=2, null=True, verbose_name='Zone')), ('clubLogo', models.ImageField(upload_to='clubLogos', verbose_name='Club Logo')), ('charterDate', models.DateTimeField(blank=True, default=None, null=True, verbose_name='Charter Date')), ('meetingPlace', models.CharField(blank=True, default=None, max_length=100, null=True, verbose_name='Meeting Place')), ('rotaryId', models.CharField(blank=True, default='23', max_length=7, null=True, verbose_name='Rotary Id')), ], options={ 'verbose_name': 'Club', 'verbose_name_plural': 'Clubs', }, ), migrations.CreateModel( name='ClubRole', fields=[ ('clubRoleId', models.AutoField(primary_key=True, serialize=False)), ('clubRoleName', models.CharField(max_length=15, verbose_name='Club Role Name')), ], options={ 'verbose_name': 'Club Role', 'verbose_name_plural': 'Club Roles', }, ), migrations.CreateModel( name='District', fields=[ ('distId', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('distName', models.CharField(blank=True, max_length=5, null=True, verbose_name='District Id')), ('distLogo', models.ImageField(upload_to='distLogos', verbose_name='District Logo')), ], options={ 'verbose_name': 'District', 'verbose_name_plural': 'Districts', }, ), migrations.CreateModel( name='DistrictRole', fields=[ ('distRoleId', models.AutoField(primary_key=True, serialize=False)), ('distRoleName', models.CharField(max_length=15, verbose_name='District Role Name')), ], options={ 'verbose_name': 'District Role', 'verbose_name_plural': 'District Roles', }, ), migrations.CreateModel( name='Account', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('loginId', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('loginType', models.CharField(choices=[('0', 'Rotaractor'), ('1', 'Admin')], default='0', max_length=2)), ('email', models.EmailField(max_length=254)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'Username', 'verbose_name_plural': 'Usernames', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Member', fields=[ ('memberId', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('firstName', models.CharField(blank=True, default='', max_length=15, verbose_name='First Name')), ('lastName', models.CharField(blank=True, default='', max_length=15, null=True, verbose_name='Last Name')), ('gender', models.CharField(blank=True, choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Others')], default=None, max_length=1, null=True)), ('rotaryId', models.IntegerField(blank=True, null=True, verbose_name='Rotary Id')), ('contact', models.CharField(blank=True, default='', max_length=10, null=True, verbose_name='Contact Number')), ('birthDate', models.DateTimeField(blank=True, default=None, null=True, verbose_name='Birth Date')), ('bloodGroup', models.CharField(blank=True, default=None, max_length=3, null=True, verbose_name='Blood Group')), ('photo', models.ImageField(null=True, upload_to='profilePics', verbose_name='Photo')), ('joiningDate', models.DateTimeField(blank=True, default=None, null=True, verbose_name='Joining Date')), ('login', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Rotaractor', 'verbose_name_plural': 'Rotaractors', }, ), migrations.CreateModel( name='DistrictCouncil', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tenureStarts', models.DateTimeField(verbose_name='Tenure starts on')), ('tenureEnds', models.DateTimeField(blank=True, verbose_name='Tenure ends on')), ('status', models.BooleanField(default=True, verbose_name='District Council Status')), ('accountId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('distId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Auth.District')), ('districtRole', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Auth.DistrictRole')), ], options={ 'verbose_name': 'District Council Member', 'verbose_name_plural': 'District Council Members', }, ), migrations.CreateModel( name='ClubCouncil', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tenureStarts', models.DateTimeField(verbose_name='Tenure starts on')), ('tenureEnds', models.DateTimeField(blank=True, verbose_name='Tenure ends on')), ('status', models.BooleanField(default=True, verbose_name='Club Council Status')), ('accountId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('clubId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Auth.Club')), ('clubRole', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Auth.ClubRole')), ], options={ 'verbose_name': 'BOD Member', 'verbose_name_plural': 'BOD Members', }, ), migrations.AddField( model_name='club', name='distId', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='Auth.District'), ), migrations.AddField( model_name='club', name='login', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ('classes', '0001_initial'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True, verbose_name='고유 번호')), ('gender', models.CharField(blank=True, choices=[('GENDER_MALE', '남성'), ('GENDER_FEMALE', '여성'), ('GENDER_OTHER', 'Other')], max_length=20, null=True, verbose_name='성별')), ('birth_date', models.DateField(blank=True, null=True, verbose_name='생년월일')), ('address', models.CharField(blank=True, max_length=2000, null=True, verbose_name='주소')), ('job', models.CharField(blank=True, max_length=500, null=True, verbose_name='직업')), ('phone_number', models.CharField(blank=True, max_length=500, null=True, verbose_name='폰번호')), ('approach', multiselectfield.db.fields.MultiSelectField( blank=True, choices=[('APPROACH_A', '지인 소개'), ('APPROACH_B', '카페, 블로그, 홈페이지'), ('APPROACH_C', '페이스북, 인스타그램'), ('APPROACH_D', '유튜브'), ('APPROACH_E', '책<치유본능> 혹은 <짠맛의 힘>'), ('APPROACH_F', '외부강연'), ('APPROACH_G', '제품구입')], max_length=76, null=True, verbose_name='경로')), ('approach_etc', models.CharField(blank=True, max_length=2000, null=True, verbose_name='경로 기타')), ('has_married', models.BooleanField(default=False, verbose_name='결혼')), ('has_married_etc', models.CharField(blank=True, max_length=2000, null=True, verbose_name='결혼 기타')), ('has_childbirth', models.BooleanField(default=False, verbose_name='출산')), ('has_childbirth_etc', models.CharField(blank=True, max_length=2000, null=True, verbose_name='출산 기타')), ('has_submitted_previous_check_list', models.BooleanField(default=False, verbose_name='체크 1')), ('has_submitted_later_check_list', models.BooleanField(default=False, verbose_name='체크 2')), ('has_submitted_habit_check_list', models.BooleanField(default=False, verbose_name='습관')), ('has_submitted_application', models.BooleanField(default=False, verbose_name='신청서')), ('has_submitted_survey', models.BooleanField(default=False, verbose_name='설문지')), ('has_paid', models.BooleanField(default=False, verbose_name='💳결제')), ('has_apple_account', models.BooleanField(default=False, verbose_name='애플 로긴')), ('apple_id', models.CharField(blank=True, max_length=100, null=True, verbose_name='애플 아뒤')), ('push_token', models.CharField(blank=True, max_length=200, null=True, verbose_name='푸쉬 토큰')), ('class_order', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='class_order', to='classes.classorder', verbose_name='기수')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': '회원', 'verbose_name_plural': '회원', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Accommodation', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('title', models.CharField(max_length=512)), ('description', models.CharField(max_length=512)), ('occupant_count', models.IntegerField(blank=False, null=False)), ('images', ArrayField(models.CharField(max_length=500, blank=False))), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], options={ 'db_table': 'Accommodation', }, ), migrations.CreateModel( name='Location', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('address', models.CharField(max_length=100)), ], options={ 'db_table': 'Location', }, ), migrations.CreateModel( name='Rating', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('rating', models.IntegerField(blank=True, null=True)), ('title', models.CharField(max_length=512)), ('text', models.TextField(null=True)), ('accommodation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Orders.accommodation')), ], options={ 'db_table': 'Rating', }, ), migrations.CreateModel( name='UserProfile', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'db_table': 'UserProfile', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='RatingReply', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('text', models.TextField(null=True)), ('rating_parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Orders.rating')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'RatingReply', }, ), migrations.AddField( model_name='rating', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='Order', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('occupant_count', models.IntegerField(default=0, null=True)), ('state', models.CharField(choices=[('Created', 'Created'), ('Paid', 'Paid')], default='Created', max_length=10)), ('acc_booked', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Orders.accommodation')), ('booked_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'Order', }, ), migrations.AddField( model_name='accommodation', name='location', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='Orders.location'), ), ]