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')), ('identity', models.CharField(choices=[('1', '毕业生'), ('2', '在校生'), ('3', '企业账号'), ('4', '管理员')], default='1', max_length=128, 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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='User_Profile_Graduate', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('identity', models.CharField(choices=[('1', '毕业生'), ('2', '在校生'), ('3', '企业账号'), ('4', '管理员')], default='1', max_length=128, verbose_name='用户身份')), ('imgurl', models.CharField(max_length=1000, null=True, verbose_name='头像url')), ('phonenum', models.CharField(max_length=128, null=True, verbose_name='电话号码')), ('name', models.CharField(max_length=128, null=True, verbose_name='姓名')), ('gender', models.SmallIntegerField(null=True, verbose_name='性别')), ('major', models.CharField(max_length=128, null=True, verbose_name='专业')), ('email', models.EmailField(max_length=128, null=True, verbose_name='邮件')), ('birth_date', models.DateField(null=True, verbose_name='出生日期')), ('admission_date', models.DateField(null=True, verbose_name='入校时间')), ('graduate_date', models.DateField(null=True, verbose_name='毕业时间')), ('stunum', models.CharField(max_length=15, null=True, verbose_name='学号')), ('institute', models.CharField(max_length=20, null=True, verbose_name='学院')), ('gpa', models.FloatField(null=True, verbose_name='gpa总评')), ('coin', models.IntegerField(null=True, verbose_name='硬币')), ], options={ 'verbose_name': '毕业生信息', 'verbose_name_plural': '毕业生信息', }, ), migrations.CreateModel( name='User_Profile_Stu', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('education_background', models.CharField(blank=True, choices=[('U', '本科生'), ('M', '硕士'), ('P', '博士')], max_length=128, null=True, verbose_name='学历')), ('university', models.CharField(max_length=128, null=True, verbose_name='所在学校')), ('imgurl', models.CharField(max_length=1000, null=True, verbose_name='头像url')), ('living_province', models.CharField(max_length=128, null=True, verbose_name='居住省份')), ('living_city', models.CharField(max_length=128, null=True, verbose_name='居住城市')), ('phonenumber', models.CharField(max_length=128, null=True, verbose_name='电话号码')), ('name', models.CharField(max_length=128, null=True, verbose_name='姓名')), ('gender', models.CharField(choices=[('M', '男'), ('F', '女')], max_length=128, null=True, verbose_name='性别')), ('age', models.CharField(max_length=128, null=True, verbose_name='年龄')), ('major', models.CharField(max_length=128, null=True, verbose_name='专业')), ('email', models.EmailField(max_length=128, null=True, verbose_name='邮件')), ('birth_data', models.DateField(null=True, verbose_name='出生日期')), ('institution', models.CharField(max_length=128, null=True, verbose_name='学院')), ('self_sign', models.CharField(max_length=128, null=True, verbose_name='个性签名')), ('self_judgement', models.TextField(null=True, verbose_name='自我评价')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='mystuprofile', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '在校生个人信息', 'verbose_name_plural': '在校生个人信息', }, ), migrations.CreateModel( name='User_Profile_Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('imgurl', models.CharField(max_length=1000, null=True, verbose_name='头像url')), ('identity', models.CharField(choices=[('1', '毕业生'), ('2', '在校生'), ('3', '企业账号'), ('4', '管理员')], default='3', max_length=128, verbose_name='用户身份')), ('phonenumber', models.CharField(max_length=128, null=True, verbose_name='电话号码')), ('name', models.CharField(max_length=128, null=True, verbose_name='公司名')), ('email', models.EmailField(max_length=128, null=True, verbose_name='邮件')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '企业信息', 'verbose_name_plural': '企业信息', }, ), migrations.CreateModel( name='User_Admin', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('emial', models.EmailField(max_length=128, null=True, verbose_name='邮件')), ('name', models.CharField(max_length=128, null=True, verbose_name='管理员名称')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=200, verbose_name='文本内容')), ('headline', models.CharField(max_length=200, verbose_name='文本内容')), ('msgfrom', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='mysendmsg', to=settings.AUTH_USER_MODEL, verbose_name='发信人')), ('msgto', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='myreceivemsg', to=settings.AUTH_USER_MODEL, verbose_name='收信人')), ], options={ 'verbose_name': '消息表', 'verbose_name_plural': '消息表', }, ), migrations.CreateModel( name='JobExperience', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('job_place', models.CharField(max_length=128, null=True, verbose_name='工作单位')), ('job', models.CharField(max_length=128, null=True, verbose_name='职业')), ('job_period_start', models.DateField(null=True, verbose_name='就职时间')), ('job_period_end', models.DateField(null=True, verbose_name='离职时间')), ('job_city', models.CharField(max_length=128, null=True, verbose_name='工作城市')), ('job_salary', models.CharField(max_length=128, null=True, verbose_name='年薪')), ('job_province', models.CharField(max_length=128, null=True, verbose_name='省份')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='myjobexp', to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name': '工作经历', 'verbose_name_plural': '工作经历', }, ), migrations.CreateModel( name='Graduate_Resume', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(max_length=200, verbose_name='简历所在的路径')), ('name', models.CharField(max_length=50, verbose_name='简历的名字')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='myresume', to=settings.AUTH_USER_MODEL, verbose_name='毕业生的简历')), ], options={ 'verbose_name': '毕业生简历表', 'verbose_name_plural': '毕业生简历表', }, ), migrations.CreateModel( name='Friends', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('followedby', models.ManyToManyField(null=True, related_name='myfollows', to=settings.AUTH_USER_MODEL, verbose_name='谁的朋友')), ('user', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='fid', to=settings.AUTH_USER_MODEL, verbose_name='朋友的id')), ], options={ 'verbose_name': '关注对象表', 'verbose_name_plural': '关注对象表', }, ), migrations.CreateModel( name='EducationExperience', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('startime', models.DateField(null=True, verbose_name='教育开始时间')), ('endtime', models.DateField(null=True, verbose_name='教育结束时间')), ('school', models.CharField(max_length=128, null=True, verbose_name='学校')), ('major', models.CharField(max_length=128, null=True, verbose_name='专业')), ('educationbackground', models.CharField(max_length=128, null=True, verbose_name='教育背景')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='myeducationexp', to=settings.AUTH_USER_MODEL, verbose_name='用户教育经历')), ], options={ 'verbose_name': '教育经历', 'verbose_name_plural': '教育经历', }, ), migrations.CreateModel( name='Company_Resume', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(max_length=200, verbose_name='简历所在的路径')), ('name', models.CharField(max_length=50, verbose_name='简历的名字')), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resumeto', to=settings.AUTH_USER_MODEL, verbose_name='投递到的公司')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='resumefrom', to=settings.AUTH_USER_MODEL, verbose_name='毕业生的简历')), ], options={ 'verbose_name': '企业用户简历表', 'verbose_name_plural': '企业用户简历表', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='AdvUser', 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_activated', models.BooleanField(db_index=True, default=True, verbose_name='Прошел активацию?')), ('send_messages', models.BooleanField( default=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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Rubric', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=20, unique=True, verbose_name='Название')), ('order', models.SmallIntegerField(db_index=True, default=0, verbose_name='Порядок')), ], ), migrations.CreateModel( name='AK', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=40, verbose_name='Товар')), ('content', models.TextField(verbose_name='Описание')), ('price', models.FloatField(default=0, verbose_name='Цена')), ('contacts', models.TextField(verbose_name='Контакты')), ('image', models.ImageField(blank=True, upload_to=main.utilities.get_timestamp_path, verbose_name='Изображение')), ('is_active', models.BooleanField(db_index=True, default=True, verbose_name='Выводить в списке?')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Опубликовано')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Автор объявления')), ], options={ 'verbose_name': 'Объявление', 'verbose_name_plural': 'Объявления', 'ordering': ['-created_at'], }, ), migrations.CreateModel( name='AdditionalImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=main.utilities.get_timestamp_path, verbose_name='Изображение')), ('ak', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.ak', verbose_name='Объявление')), ], options={ 'verbose_name': 'Дополнительная иллюстрация', 'verbose_name_plural': 'Дополнительные иллюстрации', }, ), migrations.CreateModel( name='SubRubric', fields=[], options={ 'verbose_name': 'Подрубрика', 'verbose_name_plural': 'Подрубрики', 'ordering': ('super_rubric__order', 'super_rubric__name', 'order', 'name'), 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('main.rubric', ), managers=[ ('object', django.db.models.manager.Manager()), ], ), migrations.CreateModel( name='SuperRubric', fields=[], options={ 'verbose_name': 'Надрубрика', 'verbose_name_plural': 'Надрубрики', 'ordering': ('order', 'name'), 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('main.rubric', ), managers=[ ('object', django.db.models.manager.Manager()), ], ), migrations.AddField( model_name='rubric', name='super_rubric', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='main.superrubric', verbose_name='Надрубрика'), ), migrations.AddField( model_name='ak', name='rubric', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='main.subrubric', verbose_name='Рубрика'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='MyUser', 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')), ('avatar', models.ImageField(blank=True, upload_to='users_avatars')), ('age', models.SmallIntegerField(blank=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', '0009_alter_user_last_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, verbose_name='superuser status', help_text= 'Designates that this user has all permissions without explicitly assigning them.' )), ('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, verbose_name='username', validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ])), ('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, verbose_name='staff status', help_text= 'Designates whether the user can log into this admin site.' )), ('is_active', models.BooleanField( default=True, verbose_name='active', help_text= 'Designates whether this user should be treated as active. ' 'Unselect this instead of deleting accounts.')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('accuracy', models.SmallIntegerField( default=2, verbose_name='The number of significant figures', help_text= 'This setting is used just for the human-readable data format' )), ('data_format', models.CharField( choices=[('raw', 'Raw'), ('hum', 'Human-readable')], default='hum', help_text='Most of dates are not updated automatically, so ' 'human-readable dates could become outdated until you reload page by hand', max_length=3, verbose_name='Data format')), ('language', models.CharField(choices=[('en', 'English'), ('ru', 'Русский')], default='en', max_length=2, verbose_name='Language')), ('role', models.CharField(choices=[('0', 'No access'), ('1', 'Producer'), ('2', 'Manager'), ('3', 'Expert'), ('4', 'Service user')], default='0', max_length=1, verbose_name='Role')), ('timezone', models.CharField(default='Europe/Moscow', max_length=255, verbose_name='Time zone')), ('assumptions', models.BooleanField( default=False, verbose_name='Error trace assumptions', help_text= 'This setting turns on visualization of error trace assumptions. ' 'This can take very much time for big error traces.', )), ('triangles', models.BooleanField( default=False, verbose_name='Error trace closing triangles', help_text= 'This setting turns on visualization of error trace ' 'closing triangles at the end of each thread.')), ('coverage_data', models.BooleanField( default=False, verbose_name='Coverage data', help_text= 'This setting turns on visualization of coverage data and its statistic.' )), ('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')), ('default_threshold', models.FloatField( default=0, verbose_name='Default unsafe marks threshold', help_text= 'This setting sets default unsafe marks threshold on its creation' )), ('declarations_number', models.PositiveIntegerField( default=3, verbose_name='Number of declarations in error trace', help_text= 'Error trace declarations number threshold that should be opened by default' )), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'db_table': 'users', 'abstract': False, 'swappable': 'AUTH_USER_MODEL', }, managers=[('objects', django.contrib.auth.models.UserManager())]), migrations.CreateModel( name='DataView', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', models.CharField(choices=[('0', 'component attributes'), ('1', 'jobTree'), ('2', 'DecisionResults'), ('3', 'reportChildren'), ('4', 'SafesAndUnsafesList'), ('5', 'SafesAndUnsafesList'), ('6', 'UnknownsList'), ('7', 'marksList'), ('8', 'marksList'), ('9', 'marksList'), ('10', 'UnsafeAssMarks'), ('11', 'SafeAssMarks'), ('12', 'UnknownAssMarks'), ('13', 'UnsafeAssReports'), ('14', 'SafeAndUnknownAssReports'), ('15', 'SafeAndUnknownAssReports'), ('16', 'AssociationChanges'), ('17', 'AssociationChanges'), ('18', 'AssociationChanges')], max_length=2)), ('shared', models.BooleanField(default=False)), ('name', models.CharField(max_length=255)), ('view', django.contrib.postgres.fields.jsonb.JSONField()), ('author', models.ForeignKey(on_delete=models.deletion.CASCADE, related_name='views', to=settings.AUTH_USER_MODEL)), ], options={'db_table': 'data_view'}), migrations.CreateModel( name='PreferableView', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.ForeignKey(on_delete=models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('view', models.ForeignKey(on_delete=models.deletion.CASCADE, related_name='+', to='users.DataView')), ], options={'db_table': 'user_preferable_view'}), migrations.CreateModel( name='SchedulerUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('login', models.CharField(max_length=128, verbose_name='Username')), ('password', models.CharField(max_length=128)), ('user', models.OneToOneField(on_delete=models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={'db_table': 'scheduler_user'}), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='MyUser', 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')), ], options={ 'verbose_name_plural': '用户', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Apply', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.CharField(max_length=20, verbose_name='邮箱')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('text', models.TextField(max_length=1000, verbose_name='内容')), ('time', models.DateField(verbose_name='申请时间')), ('statu', models.SmallIntegerField(choices=[(1, '通过'), (-1, '未通过'), (0, '未处理'), (2, '已归还')], default=0, verbose_name='状态')), ('name', models.CharField(default='无', max_length=10, verbose_name='申请人姓名')), ('openId', models.CharField(default='None', max_length=32, verbose_name='用户微信的openId')), ('formId', models.CharField(default='无', max_length=50, verbose_name='表单id')), ], options={ 'verbose_name': '申请', 'verbose_name_plural': '申请', 'permissions': (('view_task', '查看权限'), ('change_task', '修改权限')), }, ), migrations.CreateModel( name='ApplyInstrumentList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Apply_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.Apply', verbose_name='申请')), ], options={ 'verbose_name': '申请对应仪器表', 'verbose_name_plural': '申请对应仪器表', }, ), migrations.CreateModel( name='Code2OpenID', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('jscode', models.CharField(max_length=50, verbose_name='jscode')), ('openId', models.CharField(max_length=50, verbose_name='openId')), ], options={ 'verbose_name': 'code转openid', 'verbose_name_plural': 'code转openid', }, ), migrations.CreateModel( name='Department', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='学院名称')), ], options={ 'verbose_name': '学院', 'verbose_name_plural': '学院', }, ), migrations.CreateModel( name='Instrument', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(default='', max_length=100, verbose_name='编号')), ('name', models.CharField(default='', max_length=500, verbose_name='仪器名称')), ('model_number', models.CharField(default='', max_length=500, verbose_name='仪器编号')), ('model_type', models.CharField(default='', max_length=200, verbose_name='仪器型号')), ('maker', models.CharField(default='', max_length=500, verbose_name='厂家')), ('type', models.CharField(default='', max_length=500, verbose_name='类别')), ('is_lend', models.BooleanField(default=False, verbose_name='是否出借')), ('describe', models.CharField(default='', max_length=500, verbose_name='仪器描述')), ], options={ 'verbose_name': '实验仪器', 'verbose_name_plural': '实验仪器', 'get_latest_by': 'number', }, ), migrations.CreateModel( name='Lab', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=500, verbose_name='实验室名称')), ('department_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.Department', verbose_name='关联学院')), ], options={ 'verbose_name': '实验室', 'verbose_name_plural': '实验室', }, ), migrations.AddField( model_name='instrument', name='lab_id', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='user.Lab', verbose_name='所属实验室'), ), migrations.AddField( model_name='applyinstrumentlist', name='Instrument_id', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='user.Instrument', verbose_name='仪器'), ), migrations.AddField( model_name='myuser', name='belong_lab', field=models.ManyToManyField(blank=True, null=True, related_name='belongLab', to='user.Lab', verbose_name='所属实验室'), ), migrations.AddField( model_name='myuser', 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='myuser', 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='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')), ('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': 'użytkownik', 'verbose_name_plural': 'użytkownicy', 'ordering': ['username'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Appartment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('app_name', models.CharField(max_length=128, verbose_name='Nazwa apartamentu')), ('description', models.TextField(verbose_name='Opis apartamentu')), ('address_code', models.CharField(help_text='00-000', max_length=6, verbose_name='kod')), ('address_str', models.CharField(max_length=128, verbose_name='Ulica i nr')), ('address_no', models.CharField(max_length=16, null=True, verbose_name='nr lokalu')), ('area', models.SmallIntegerField(verbose_name='powierzchnia')), ('floor', models.SmallIntegerField(verbose_name='piętro')), ('no_of_rooms', models.SmallIntegerField(verbose_name='liczba pokoi')), ('no_of_guests', models.SmallIntegerField(verbose_name='liczba osób')), ('no_of_beds', models.SmallIntegerField(verbose_name='liczba łóżek')), ('own_parking', models.BooleanField(default=False, verbose_name='miejsce parkingowe')), ('facilities', models.SmallIntegerField( choices=[(1, 'wifi'), (2, 'TV kablowa'), (3, 'TV'), (4, 'winda'), (4, 'wyposażona kuchnia'), (5, 'zestaw do parzenia kawy'), (6, 'żelazko'), (7, 'suszarka'), (8, 'pralka'), (9, 'taras/balkon'), (10, 'klimatyzacja'), (11, 'prysznic'), (12, 'wanna'), (13, 'piekarnik'), (14, 'mikrofalówka'), (15, 'kominek')], verbose_name='Udogodnienia/Wyposażenie')), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('deposit', models.SmallIntegerField(choices=[(1, '100'), (2, '200'), (3, '300'), (4, '400'), (5, '500'), (6, '600')], verbose_name='zwrotna kaucja')), ], options={ 'ordering': ['address_city', 'price'], }, ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60, verbose_name='Nazwa artykułu')), ('article_text', models.TextField(blank=True, null=True)), ], ), migrations.CreateModel( name='Booking', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('checkin_date', models.DateTimeField(verbose_name='Rezerwacja od dnia')), ('checkout_date', models.DateTimeField(verbose_name='Rezerwacja do dnia')), ('appartment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='apprtrent.Appartment')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('city_name', models.CharField(max_length=60, verbose_name='miasto')), ], ), migrations.CreateModel( name='Fee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, verbose_name='dodatkowa opłata')), ('fee_value', models.DecimalField(decimal_places=2, max_digits=6)), ], ), migrations.CreateModel( name='Owner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=30, null=True, verbose_name='Imię')), ('last_name', models.CharField(max_length=64, null=True, verbose_name='Nazwisko')), ('company_name', models.CharField(max_length=128, null=True, verbose_name='Nazwa firmy')), ('if_vat', models.BooleanField(default=True, help_text='Czy jest płatnikiem VAT', verbose_name='płatnik VAT')), ('vat_number', models.CharField(max_length=10, null=True, verbose_name='NIP')), ('address_city', models.CharField(max_length=128, verbose_name='Miasto')), ('address_code', models.CharField(help_text='00-000', max_length=6, verbose_name='kod')), ('address_str', models.CharField(max_length=128, verbose_name='Ulica i nr')), ('address_no', models.CharField(max_length=16, null=True, verbose_name='nr lokalu')), ('tel_no', models.CharField(max_length=32, null=True, verbose_name='Nr telefonu')), ('e_mail', models.EmailField(max_length=254, null=True, verbose_name='Email')), ('comment', models.TextField(blank=True, null=True, verbose_name='Dodatkowe informacje')), ], options={ 'verbose_name': 'Właścicel', 'verbose_name_plural': 'Właściciele', }, ), migrations.AddField( model_name='appartment', name='address_city', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='apprtrent.City'), ), migrations.AddField( model_name='appartment', name='fees', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='apprtrent.Fee'), ), migrations.AddField( model_name='appartment', name='owner', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='apprtrent.Owner'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='UserInfo', 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')), ('identity', models.SmallIntegerField(choices=[(0, '代理商'), (1, '技术'), (2, '销售'), (3, '管理'), (4, '其他')], default='其他', verbose_name='用户分组')), ('nick_name', models.CharField(default='', max_length=50, verbose_name='昵称')), ('birth_day', models.DateTimeField(blank=True, null=True, verbose_name='生日')), ('gender', models.CharField(choices=[('male', '男'), ('female', '女')], default='男', max_length=10, verbose_name='性别')), ('address', models.CharField(max_length=100, verbose_name='地址')), ('mobile', models.IntegerField(verbose_name='手机号')), ('work_id', models.SmallIntegerField(blank=True, unique=True, verbose_name='工号')), ('join_time', models.DateTimeField(auto_now_add=True, verbose_name='加入时间')), ('image', models.ImageField(default='/images/default.png', upload_to='images/%Y/%m', 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': '用户信息', 'ordering': ['-join_time'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.CreateModel( name='UserInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField(max_length=64, unique=True, verbose_name='用户名')), ('email', models.EmailField(blank=True, max_length=255, null=True, unique=True, verbose_name='email address')), ('uid', models.CharField(max_length=64, unique=True)), ('mobile', models.BigIntegerField(help_text='用于手机验证码登录', null=True, unique=True, verbose_name='手机')), ('qq', models.CharField(blank=True, db_index=True, max_length=64, null=True, verbose_name='QQ')), ('weixin', models.CharField(blank=True, db_index=True, max_length=128, null=True, verbose_name='微信')), ('signature', models.CharField(blank=True, max_length=255, null=True, verbose_name='个人签名')), ('brief', models.TextField(blank=True, null=True, verbose_name='个人介绍')), ('openid', models.CharField(blank=True, max_length=128, null=True)), ('alipay_card', models.CharField(blank=True, max_length=128, null=True, verbose_name='支付宝账户')), ('gender', models.SmallIntegerField(choices=[(0, '保密'), (1, '男'), (2, '女')], default=0, verbose_name='性别')), ('id_card', models.CharField(blank=True, max_length=32, null=True, verbose_name='身份证号或护照号')), ('password', models.CharField(help_text="<a class='btn-link' href='password'>重置密码</a>", max_length=128, verbose_name='password')), ('is_active', models.BooleanField(default=True, verbose_name='账户状态')), ('is_staff', models.BooleanField(default=False, help_text='决定着用户是否可登录管理后台', verbose_name='staff status')), ('name', models.CharField(default='', max_length=32, verbose_name='真实姓名')), ('head_img', models.CharField(default='/static/frontend/head_portrait/[email protected]', max_length=256, verbose_name='个人头像')), ('role', models.SmallIntegerField(choices=[(0, '学员'), (1, '导师'), (2, '讲师'), (3, '管理员'), (4, '班主任'), (5, '线下班主任')], default=0, verbose_name='角色')), ('memo', models.TextField(blank=True, default=None, help_text='json格式存储', null=True, verbose_name='备注')), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='注册时间')), ('beli', models.IntegerField(default=100)), ('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()), ], ), migrations.CreateModel( name='Coupon', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, verbose_name='活动名称')), ('brief', models.TextField(blank=True, null=True, verbose_name='优惠券介绍')), ('coupon_type', models.SmallIntegerField(choices=[(0, '立减券'), (1, '满减券'), (2, '折扣券')], default=0, verbose_name='券类型')), ('money_equivalent_value', models.FloatField(verbose_name='等值货币')), ('off_percent', models.PositiveSmallIntegerField(blank=True, help_text='只针对折扣券,例7.9折,写79', null=True, verbose_name='折扣百分比')), ('minimum_consume', models.PositiveIntegerField(default=0, help_text='仅在满减券时填写此字段', verbose_name='最低消费')), ('object_id', models.PositiveIntegerField(blank=True, help_text='可以把优惠券跟课程绑定', null=True, verbose_name='绑定课程')), ('quantity', models.PositiveIntegerField(default=1, verbose_name='数量(张)')), ('open_date', models.DateField(verbose_name='优惠券领取开始时间')), ('close_date', models.DateField(verbose_name='优惠券领取结束时间')), ('valid_begin_date', models.DateField(blank=True, null=True, verbose_name='有效期开始时间')), ('valid_end_date', models.DateField(blank=True, null=True, verbose_name='有效结束时间')), ('coupon_valid_days', models.PositiveIntegerField(blank=True, help_text='自券被领时开始算起', null=True, verbose_name='优惠券有效期(天)')), ('status', models.SmallIntegerField(choices=[(0, '上线'), (1, '下线')], default=0)), ('date', models.DateTimeField(auto_now_add=True)), ('content_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ], ), migrations.CreateModel( name='CouponRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.SmallIntegerField(choices=[(0, '未使用'), (1, '已使用'), (2, '已过期'), (3, '未领取')], default=0)), ('get_time', models.DateTimeField(blank=True, help_text='用户领取时间', null=True, verbose_name='领取时间')), ('used_time', models.DateTimeField(blank=True, null=True, verbose_name='使用时间')), ('date', models.DateTimeField(auto_now_add=True, verbose_name='生成时间')), ('account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='使用者')), ('coupon', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Coupon')), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, unique=True, verbose_name='模块')), ('course_img', models.CharField(max_length=255)), ('course_type', models.SmallIntegerField(choices=[(0, '付费'), (1, 'VIP专享'), (2, '学位课程')])), ('brief', models.TextField(max_length=2048, verbose_name='课程概述')), ('level', models.SmallIntegerField(choices=[(0, '初级'), (1, '中级'), (2, '高级')], default=1)), ('pub_date', models.DateField(blank=True, null=True, verbose_name='发布日期')), ('period', models.PositiveIntegerField(default=7, verbose_name='建议学习周期(days)')), ('order', models.IntegerField(help_text='从上一个课程数字往后排', verbose_name='课程顺序')), ('attachment_path', models.CharField(blank=True, max_length=128, null=True, verbose_name='课件路径')), ('status', models.SmallIntegerField(choices=[(0, '上线'), (1, '下线'), (2, '预上线')], default=0)), ], ), migrations.CreateModel( name='CourseCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ], options={ 'verbose_name': '课程类', 'verbose_name_plural': '课程类', }, ), migrations.CreateModel( name='CourseChapter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('chapter', models.SmallIntegerField(default=1, verbose_name='第几章')), ('name', models.CharField(max_length=128)), ('summary', models.TextField(blank=True, null=True, verbose_name='章节介绍')), ('is_create', models.BooleanField(default=True, verbose_name='是否创建题库进度')), ('pub_date', models.DateField(auto_now_add=True, verbose_name='发布日期')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='coursechapters', to='api.Course')), ], ), migrations.CreateModel( name='CourseDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hours', models.IntegerField(verbose_name='课时')), ('course_slogan', models.CharField(blank=True, max_length=125, null=True)), ('video_brief_link', models.CharField(blank=True, max_length=255, null=True)), ('why_study', models.TextField(verbose_name='为什么学习这门课程')), ('what_to_study_brief', models.TextField(verbose_name='我将学到哪些内容')), ('career_improvement', models.TextField(verbose_name='此项目如何有助于我的职业生涯')), ('prerequisite', models.TextField(max_length=1024, verbose_name='课程先修要求')), ('course', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.Course')), ('recommend_courses', models.ManyToManyField(blank=True, related_name='recommend_by', to='api.Course')), ], ), migrations.CreateModel( name='CourseSection', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('order', models.PositiveSmallIntegerField(help_text='建议每个课时之间空1至2个值,以备后续插入课时', verbose_name='课时排序')), ('section_type', models.SmallIntegerField(choices=[(0, '文档'), (1, '练习'), (2, '视频')], default=2)), ('section_link', models.CharField(blank=True, help_text='若是video,填vid,若是文档,填link', max_length=255, null=True)), ('video_time', models.CharField(blank=True, max_length=32, null=True, verbose_name='视频时长')), ('pub_date', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('free_trail', models.BooleanField(default=False, verbose_name='是否可试看')), ('is_flash', models.BooleanField(default=False, verbose_name='是否使用FLASH播放')), ('player', models.SmallIntegerField(choices=[(0, 'CC'), (1, 'POLYV'), (2, 'ALI')], default=1, help_text='视频播放器选择')), ('chapter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='coursesections', to='api.CourseChapter')), ], ), migrations.CreateModel( name='OftenAskedQuestion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.PositiveIntegerField()), ('question', models.CharField(max_length=255)), ('answer', models.TextField(max_length=1024)), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ], options={ 'verbose_name_plural': '常见问题', }, ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('payment_type', models.SmallIntegerField(choices=[(0, '微信'), (1, '支付宝'), (2, '优惠码'), (3, '贝里'), (4, '银联')])), ('payment_number', models.CharField(blank=True, max_length=128, null=True, verbose_name='支付第3方订单号')), ('order_number', models.CharField(max_length=128, unique=True, verbose_name='订单号')), ('actual_amount', models.FloatField(verbose_name='实付金额')), ('status', models.SmallIntegerField(choices=[(0, '交易成功'), (1, '待支付'), (2, '退费申请中'), (3, '已退费'), (4, '主动取消'), (5, '超时取消')], verbose_name='状态')), ('order_type', models.SmallIntegerField(choices=[(0, '用户下单'), (1, '线下班创建')], default=0, verbose_name='订单类型')), ('date', models.DateTimeField(auto_now_add=True, verbose_name='订单生成时间')), ('pay_time', models.DateTimeField(blank=True, null=True, verbose_name='付款时间')), ('cancel_time', models.DateTimeField(blank=True, null=True, verbose_name='订单取消时间')), ('account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='OrderDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.PositiveIntegerField()), ('original_price', models.FloatField(verbose_name='课程原价')), ('price', models.FloatField(verbose_name='折后价格')), ('content', models.CharField(blank=True, max_length=255, null=True)), ('valid_period_display', models.CharField(max_length=32, verbose_name='有效期显示')), ('valid_period', models.PositiveIntegerField(verbose_name='有效期(days)')), ('memo', models.CharField(blank=True, max_length=255, null=True)), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Order')), ], ), migrations.CreateModel( name='PricePolicy', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.PositiveIntegerField()), ('valid_period', models.SmallIntegerField(choices=[(1, '1天'), (3, '3天'), (7, '1周'), (14, '2周'), (30, '1个月'), (60, '2个月'), (90, '3个月'), (120, '4个月'), (180, '6个月'), (210, '12个月'), (540, '18个月'), (720, '24个月'), (722, '24个月'), (723, '24个月')])), ('price', models.FloatField()), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ], ), migrations.CreateModel( name='Teacher', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32)), ('role', models.SmallIntegerField(choices=[(0, '讲师'), (1, '导师')], default=0)), ('title', models.CharField(max_length=64, verbose_name='职位、职称')), ('signature', models.CharField(blank=True, help_text='导师签名', max_length=255, null=True)), ('image', models.CharField(max_length=128)), ('brief', models.TextField(max_length=1024)), ], ), migrations.CreateModel( name='Token', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('key', models.CharField(max_length=40)), ('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='auth_token', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')), ], ), migrations.AddField( model_name='coursedetail', name='teachers', field=models.ManyToManyField(to='api.Teacher', verbose_name='课程讲师'), ), migrations.AddField( model_name='course', name='course_category', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='api.CourseCategory'), ), migrations.AddField( model_name='couponrecord', name='order', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Order', verbose_name='关联订单'), ), migrations.AlterUniqueTogether( name='pricepolicy', unique_together=set([('content_type', 'object_id', 'valid_period')]), ), migrations.AlterUniqueTogether( name='orderdetail', unique_together=set([('order', 'content_type', 'object_id')]), ), migrations.AlterUniqueTogether( name='oftenaskedquestion', unique_together=set([('content_type', 'object_id', 'question')]), ), migrations.AlterUniqueTogether( name='coursesection', unique_together=set([('chapter', 'section_link')]), ), migrations.AlterUniqueTogether( name='coursechapter', unique_together=set([('course', 'chapter')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Customers', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=64, unique=True, verbose_name='Эл.почта')), ('password', models.CharField(max_length=20, verbose_name='Пароль')), ('name', models.CharField(max_length=30, verbose_name='Имя')), ('surname', models.CharField(max_length=30, verbose_name='Фамилия')), ('phone', models.CharField(max_length=20, verbose_name='Телефон')), ('address', models.TextField(max_length=256, verbose_name='Адрес')), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='Дата регистрации')), ('is_active', models.BooleanField(default=True)), ], options={ 'verbose_name': 'Покупатель', 'verbose_name_plural': 'Покупатели', 'ordering': ['-id'], }, ), migrations.CreateModel( name='ProductBrand', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True, verbose_name='Бренд')), ], options={ 'verbose_name': 'Бренд', 'verbose_name_plural': 'Бренды', }, ), migrations.CreateModel( name='ProductCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, unique=True, verbose_name='Категория товара')), ('description', models.TextField(blank=True, default=None, null=True, verbose_name='Статья')), ], options={ 'verbose_name': 'Категория', 'verbose_name_plural': 'Категории товаров', }, ), migrations.CreateModel( name='Products', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, verbose_name='Наименование товара')), ('quantity', models.SmallIntegerField(default=0, verbose_name='Количество на складе')), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=8, verbose_name='Цена')), ('short_text', models.CharField(blank=True, default=None, max_length=128, null=True, verbose_name='Краткое описание')), ('description', models.TextField(blank=True, default=None, null=True, verbose_name='Описание')), ('image', models.ImageField(upload_to='', verbose_name='Изображение')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Дата поступления')), ('is_active', models.BooleanField(default=True, verbose_name='В продаже')), ('is_top', models.BooleanField(default=False, verbose_name='Топ')), ('brand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.ProductBrand', verbose_name='Бренд')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.ProductCategory', verbose_name='Категория')), ], options={ 'verbose_name': 'Товар', 'verbose_name_plural': 'Товары', 'ordering': ['name'], 'index_together': {('category', 'is_active', 'is_top')}, }, ), migrations.CreateModel( name='Responses', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Дата создания')), ('name', models.CharField(max_length=20, verbose_name='Имя')), ('comment', models.TextField(blank=True, default=None, null=True, verbose_name='Содержание')), ('rating', models.SmallIntegerField(default=0, verbose_name='Рейтинг')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.Products', verbose_name='Заказ')), ], options={ 'verbose_name': 'Отзыв на товар', 'verbose_name_plural': 'Отзывы на товар', 'ordering': ['created'], }, ), migrations.CreateModel( name='Customer', 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')), ('phone', models.CharField(max_length=20, verbose_name='Телефон')), ('address', models.TextField(max_length=256, 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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, 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=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('email', models.CharField(max_length=255)), ('pseudo', models.CharField(max_length=30)), ('password', models.CharField(max_length=255)), ('pix', models.IntegerField()), ('max_ammo', models.IntegerField()), ('ammo', models.IntegerField()), ('last_ammo_usage', models.IntegerField()), ('ammo_reloading_seconds', models.IntegerField()), ('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='Canvas', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('theme', models.CharField(max_length=50)), ('place', models.SmallIntegerField()), ('width', models.IntegerField()), ('height', models.IntegerField()), ('is_profit_on', models.BooleanField()), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Color', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hex', models.CharField(max_length=9)), ], ), migrations.CreateModel( name='Colors_pack', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('price', models.IntegerField()), ('contains', models.ManyToManyField(to='paypixplaceapp.Color')), ], ), migrations.CreateModel( name='Pixel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('x', models.IntegerField()), ('y', models.IntegerField()), ('hex', models.CharField(max_length=9)), ('end_protection_date', models.DateField()), ('canvas_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypixplaceapp.Canvas')), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Pixie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('price', models.IntegerField()), ('number', models.IntegerField()), ('bonus', models.IntegerField()), ], ), migrations.CreateModel( name='Purchase', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('purchase_date', models.DateField()), ('pixie_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypixplaceapp.Pixie')), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Slot', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('place_num', models.IntegerField()), ('color_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='paypixplaceapp.Color')), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='user', name='owns', field=models.ManyToManyField(to='paypixplaceapp.Color'), ), migrations.AddField( model_name='user', name='role_id', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='paypixplaceapp.Role'), ), 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='MyUser', 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')), ('mbu_is_login', models.BooleanField(default=False, verbose_name='Login Status')), ('mbu_status', models.BooleanField(default=True, verbose_name='User Status')), ('mbu_avatar', models.ImageField( default='uploads/avatars/default_avatar.jpg', upload_to='uploads/avatars/%Y/%m/%d/%H/%M/%S', verbose_name='Avatar')), ('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': 'mb_user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Category', fields=[ ('mbc_id', models.AutoField(primary_key=True, serialize=False, verbose_name='Category ID')), ('mbc_name', models.CharField(max_length=20, verbose_name='Category Name')), ('mbc_desc', models.CharField(default='', max_length=50, verbose_name='Category Description')), ('mbc_order', models.SmallIntegerField(default=0, verbose_name='Category Orders')), ], options={ 'verbose_name': 'Category', 'verbose_name_plural': 'Categories', 'db_table': 'mb_category', 'ordering': ['mbc_order'], }, ), migrations.CreateModel( name='Comment', fields=[ ('mbc_id', models.CharField(max_length=8, primary_key=True, serialize=False, verbose_name='Comment ID')), ('mbc_auther', models.CharField(max_length=20, verbose_name='Auther Name')), ('mbc_content', models.TextField(verbose_name='Comment Content')), ('mbc_created_at', models.DateTimeField(auto_now_add=True, verbose_name='Create DateTime')), ('mbc_last_at', models.DateTimeField(auto_now=True, verbose_name='Last Modify DateTime')), ('mbc_publish_opt', models.BooleanField(default=True, verbose_name='Publish Option')), ('mbc_upvotes', models.IntegerField(default=0, verbose_name='Up voted times')), ('mbc_downvotes', models.IntegerField(default=0, verbose_name='Down voted times')), ('mbc_auther_id', models.ForeignKey(db_column='mbc_auther_id', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Auther ID')), ], options={ 'verbose_name': 'Comment', 'verbose_name_plural': 'Comment', 'db_table': 'mb_comment', 'ordering': ['-mbc_created_at'], }, ), migrations.CreateModel( name='Post', fields=[ ('mbp_id', models.CharField(max_length=8, primary_key=True, serialize=False, verbose_name='Post ID')), ('mbp_title', models.CharField(max_length=100, verbose_name='Post Title')), ('mbp_summary', models.TextField(verbose_name='Post Summary')), ('mbp_content', models.TextField(verbose_name='Post Content')), ('mbp_image', models.ImageField( default='uploads/postimg/default_post.jpg', upload_to='uploads/postimg/%Y/%m/%d/%H/%M/%S', verbose_name='Post Image')), ('mbp_auther', models.CharField(max_length=20, verbose_name='Auther Name')), ('mbp_created_at', models.DateTimeField(auto_now_add=True, verbose_name='Post Create DateTime')), ('mbp_mod_flag', models.BooleanField(default=False, verbose_name='Post modify flag')), ('mbp_last_at', models.DateTimeField( auto_now=True, verbose_name='Post last modify datetime')), ('mbp_last_by_name', models.CharField(max_length=20, verbose_name='Post last modify name')), ('mbp_publish_opt', models.BooleanField(default=True, verbose_name='Post publish option')), ], options={ 'verbose_name': 'Post', 'verbose_name_plural': 'Posts', 'db_table': 'mb_post', 'ordering': ['-mbp_created_at'], }, ), migrations.CreateModel( name='Post_Tag', fields=[ ('id', models.AutoField(default=0, primary_key=True, serialize=False)), ('mbp_t_created_at', models.DateTimeField(auto_now_add=True, verbose_name='Link Create DateTime')), ], options={ 'db_table': 'mb_post_tag', }, ), migrations.CreateModel( name='Tag', fields=[ ('mbt_id', models.IntegerField(primary_key=True, serialize=False)), ('mbt_name', models.CharField(max_length=20)), ('mbt_count', models.IntegerField(default=0)), ('mbt_status', models.BooleanField(default=True)), ], options={ 'verbose_name': 'Tag', 'verbose_name_plural': 'Tags', 'db_table': 'mb_tag', }, ), migrations.CreateModel( name='Post_Static', fields=[ ('mbp_s_pid', models.OneToOneField( db_column='mbp_s_pid', on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='db.Post', verbose_name='Post ID')), ('mbp_s_reads', models.IntegerField(default=0, verbose_name='Read times')), ('mbp_s_comments', models.IntegerField(default=0, verbose_name='Commment times')), ('mbp_s_upvotes', models.IntegerField(default=0, verbose_name='Up vote times')), ('mbp_s_downvotes', models.IntegerField(default=0, verbose_name='Down vote times')), ], options={ 'verbose_name': 'Post_Statics', 'verbose_name_plural': 'Post_Statics', 'db_table': 'mb_post_static', 'ordering': ['mbp_s_pid'], }, ), migrations.AddField( model_name='post_tag', name='mbp_t_pid', field=models.ForeignKey( db_column='mbp_t_pid', on_delete=django.db.models.deletion.CASCADE, to='db.Post', verbose_name='Post ID'), ), migrations.AddField( model_name='post_tag', name='mbp_t_tid', field=models.ForeignKey( db_column='mbp_t_tid', on_delete=django.db.models.deletion.CASCADE, to='db.Tag', verbose_name='Tag ID'), ), migrations.AddField( model_name='post', name='mbp_auther_id', field=models.ForeignKey( db_column='mbp_auther_id', on_delete=django.db.models.deletion.CASCADE, related_name='auther', to=settings.AUTH_USER_MODEL, verbose_name='Auther ID'), ), migrations.AddField( model_name='post', name='mbp_category', field=models.ForeignKey( db_column='mbp_category', on_delete=django.db.models.deletion.CASCADE, to='db.Category', verbose_name='Category ID'), ), migrations.AddField( model_name='post', name='mbp_last_by_id', field=models.ForeignKey( db_column='mbp_last_by_id', on_delete=django.db.models.deletion.CASCADE, related_name='editor', to=settings.AUTH_USER_MODEL, verbose_name='Last Modified By'), ), migrations.AddField( model_name='comment', name='mbc_post_id', field=models.ForeignKey( db_column='mbc_post_id', on_delete=django.db.models.deletion.CASCADE, to='db.Post', verbose_name='Post ID'), ), migrations.AddField( model_name='comment', name='mbc_reply_id', field=models.ForeignKey( blank=True, db_column='mbc_reply_id', null=True, on_delete=django.db.models.deletion.CASCADE, to='db.Comment', verbose_name='Comment ID'), ), migrations.AlterUniqueTogether( name='post_tag', unique_together={('mbp_t_pid', 'mbp_t_tid')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='StoreInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='最近更新时间')), ('name', models.CharField(max_length=50, verbose_name='仓库名')), ('desc', models.CharField(max_length=200, verbose_name='描述')), ('addr', models.CharField(max_length=50, verbose_name='地址')), ('max_store', models.IntegerField(default=1, verbose_name='最大库存')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TypeInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='最近更新时间')), ('name', models.CharField(max_length=50, verbose_name='分类名')), ('image', models.ImageField(upload_to='typeinfo', verbose_name='总类图片')), ('desc', models.CharField(max_length=200, verbose_name='描述')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Goods', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='最近更新时间')), ('name', models.CharField(max_length=50, verbose_name='物品名称')), ('desc', models.CharField(max_length=200, verbose_name='描述')), ('image', models.ImageField(upload_to='Goods', verbose_name='商品图片')), ('goodstype', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gadmin.TypeInfo', verbose_name='商品')), ], options={ 'abstract': False, }, ), 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')), ('create_time', models.DateTimeField(auto_now=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now_add=True, verbose_name='最近更新时间')), ('tel', models.CharField(max_length=11, verbose_name='电话')), ('sex', models.SmallIntegerField(choices=[(1, '男'), (0, '女')], verbose_name='性别')), ('job', models.SmallIntegerField(choices=[(0, '员工'), (1, '仓库管理员'), (2, '主管'), (3, '经理')], verbose_name='工种')), ('con_store', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gadmin.StoreInfo', 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={ '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=[ ('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')), ('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')), ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on wich the object was created', verbose_name='created_at')), ('updated', models.DateTimeField(auto_now=True, help_text='Date time on wich the object was updated', verbose_name='updated at')), ('email', models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, max_length=254, unique=True, verbose_name='email address')), ('gender', models.PositiveSmallIntegerField(blank=True, choices=[(0, 'Male'), (1, 'Female')], null=True)), ('rol', models.PositiveSmallIntegerField(choices=[(0, 'Admin'), (1, 'Student')])), ('phone_number', models.CharField(blank=True, max_length=20, null=True)), ('is_verified', models.BooleanField(default=False, help_text='Set to true when the user have verified its email.', verbose_name='verified')), ('activo', models.BooleanField(default=True)), ], options={ 'ordering': ['-created', '-updated'], 'get_latest_by': 'created', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on wich the object was created', verbose_name='created_at')), ('updated', models.DateTimeField(auto_now=True, help_text='Date time on wich the object was updated', verbose_name='updated at')), ('avatar', models.ImageField(blank=True, null=True, upload_to='Avatar')), ('phone', models.CharField(blank=True, max_length=15, null=True)), ('address', models.CharField(blank=True, max_length=250, null=True)), ('activo', models.BooleanField(default=True)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created', '-updated'], 'get_latest_by': 'created', 'abstract': False, }, ), migrations.CreateModel( name='Curso', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on wich the object was created', verbose_name='created_at')), ('updated', models.DateTimeField(auto_now=True, help_text='Date time on wich the object was updated', verbose_name='updated at')), ('nombre_curso', models.CharField(max_length=100, unique=True)), ('descripcion', models.TextField()), ('creditos', models.SmallIntegerField()), ('activo', models.BooleanField(default=True)), ('maestro', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created', '-updated'], 'get_latest_by': 'created', 'abstract': False, }, ), migrations.CreateModel( name='AsignacionNotas', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on wich the object was created', verbose_name='created_at')), ('updated', models.DateTimeField(auto_now=True, help_text='Date time on wich the object was updated', verbose_name='updated at')), ('unidad', models.SmallIntegerField()), ('nota', models.SmallIntegerField()), ('curso', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Curso')), ('estudiante', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created', '-updated'], 'get_latest_by': 'created', 'abstract': False, }, ), migrations.CreateModel( name='AsignacionCursos', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, help_text='Date time on wich the object was created', verbose_name='created_at')), ('updated', models.DateTimeField(auto_now=True, help_text='Date time on wich the object was updated', verbose_name='updated at')), ('finalizado', models.BooleanField(default=False)), ('curso', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Curso')), ('estudiante', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created', '-updated'], 'get_latest_by': 'created', 'abstract': False, }, ), migrations.AddField( model_name='user', name='cursos', field=models.ManyToManyField(related_name='cursos', through='api.AsignacionCursos', to='api.Curso'), ), 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='notas', field=models.ManyToManyField(related_name='notas', through='api.AsignacionNotas', to='api.Curso'), ), 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='Asset', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('asset_type', models.CharField(choices=[('server', '服务器'), ('networkdevice', '网络设备'), ('storagedevice', '存储设备'), ('securitydevice', '安全设备'), ('securitydevice', '机房设备'), ('software', '软件资产')], default='server', max_length=64)), ('sn', models.CharField(max_length=128, unique=True, verbose_name='资产SN号')), ('management_ip', models.GenericIPAddressField(blank=True, null=True, verbose_name='管理IP')), ('trade_date', models.DateField(blank=True, null=True, verbose_name='购买时间')), ('expire_date', models.DateField(blank=True, null=True, verbose_name='过保修期')), ('price', models.FloatField(blank=True, null=True, verbose_name='价格')), ('memo', models.TextField(blank=True, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True)), ('update_date', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': '资产总表', 'verbose_name_plural': '资产总表', }, ), migrations.CreateModel( name='Contract', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sn', models.CharField(max_length=128, unique=True, verbose_name='合同号')), ('name', models.CharField(max_length=64, verbose_name='合同名称')), ('memo', models.TextField(blank=True, null=True, verbose_name='备注')), ('price', models.IntegerField(verbose_name='合同金额')), ('detail', models.TextField(blank=True, null=True, verbose_name='合同详细')), ('start_date', models.DateField(blank=True)), ('end_date', models.DateField(blank=True)), ('license_num', models.IntegerField(blank=True, verbose_name='license数量')), ('create_date', models.DateField(auto_now_add=True)), ('update_date', models.DateField(auto_now=True)), ], options={ 'verbose_name': '合同', 'verbose_name_plural': '合同', }, ), migrations.CreateModel( name='IDC', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True, verbose_name='机房名称')), ('memo', models.CharField(blank=True, max_length=128, null=True, verbose_name='备注')), ], options={ 'verbose_name': '机房', 'verbose_name_plural': '机房', }, ), migrations.CreateModel( name='Manufactory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('manufactory', models.CharField(max_length=64, unique=True, verbose_name='厂商名称')), ('support_num', models.CharField(blank=True, max_length=30, verbose_name='支持电话')), ('memo', models.CharField(blank=True, max_length=128, verbose_name='备注')), ], options={ 'verbose_name': '厂商', 'verbose_name_plural': '厂商', }, ), migrations.CreateModel( name='Software', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('license_num', models.IntegerField(verbose_name='授权数')), ('version', models.CharField(help_text='eg. CentOS release 6.5 (Final)', max_length=64, unique=True, verbose_name='软件/系统版本')), ], options={ 'verbose_name': '软件/系统', 'verbose_name_plural': '软件/系统', }, ), migrations.CreateModel( name='UserProfile', 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)), ('name', models.CharField(max_length=32, verbose_name='姓名')), ('token', models.CharField(blank=True, default=None, max_length=128, null=True, verbose_name='token')), ], options={ 'verbose_name': '用户', 'verbose_name_plural': '用户', }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, unique=True, verbose_name='Tag name')), ('create_date', models.DateField(auto_now_add=True)), ('creater', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.UserProfile')), ], ), migrations.CreateModel( name='Server', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sub_asset_type', models.SmallIntegerField(choices=[(0, 'PC服务器'), (1, '刀片机'), (2, '小型机')], default=0, verbose_name='服务器类型')), ('created_by', models.CharField(choices=[('auto', 'Auto'), ('manual', 'Manual')], default='auto', max_length=32)), ('model', models.CharField(blank=True, max_length=128, null=True, verbose_name='型号')), ('raid_type', models.CharField(blank=True, max_length=512, null=True, verbose_name='raid类型')), ('os_type', models.CharField(blank=True, max_length=64, null=True, verbose_name='操作系统类型')), ('os_distribution', models.CharField(blank=True, max_length=64, null=True, verbose_name='发型版本')), ('os_release', models.CharField(blank=True, max_length=64, null=True, verbose_name='操作系统版本')), ('asset', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ('hosted_on', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='hosted_on_server', to='assets.Server')), ], options={ 'verbose_name': '服务器', 'verbose_name_plural': '服务器', }, ), migrations.CreateModel( name='SecurityDevice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sub_asset_type', models.SmallIntegerField(choices=[(0, '防火墙'), (1, '入侵检测设备'), (2, '互联网网关'), (4, '运维审计系统')], default=0, verbose_name='安全设备类型')), ('asset', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], ), migrations.CreateModel( name='NIC', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=64, null=True, verbose_name='网卡名')), ('sn', models.CharField(blank=True, max_length=128, null=True, verbose_name='SN号')), ('model', models.CharField(blank=True, max_length=128, null=True, verbose_name='网卡型号')), ('macaddress', models.CharField(max_length=64, unique=True, verbose_name='MAC')), ('ipaddress', models.GenericIPAddressField(blank=True, null=True, verbose_name='IP')), ('netmask', models.CharField(blank=True, max_length=64, null=True)), ('bonding', models.CharField(blank=True, max_length=64, null=True)), ('memo', models.CharField(blank=True, max_length=128, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True)), ('update_date', models.DateTimeField(blank=True, null=True)), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'verbose_name': '网卡', 'verbose_name_plural': '网卡', }, ), migrations.CreateModel( name='NewAssetApprovalZone', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sn', models.CharField(max_length=128, unique=True, verbose_name='资产SN号')), ('asset_type', models.CharField(blank=True, choices=[('server', '服务器'), ('switch', '交换机'), ('router', '路由器'), ('firewall', '防火墙'), ('storage', '存储设备'), ('NLB', 'NetScaler'), ('wireless', '无线AP'), ('software', '软件资产'), ('others', '其它类')], max_length=64, null=True)), ('manufactory', models.CharField(blank=True, max_length=64, null=True)), ('model', models.CharField(blank=True, max_length=128, null=True)), ('ram_size', models.IntegerField(blank=True, null=True)), ('cpu_model', models.CharField(blank=True, max_length=128, null=True)), ('cpu_count', models.IntegerField(blank=True, null=True)), ('cpu_core_count', models.IntegerField(blank=True, null=True)), ('os_distribution', models.CharField(blank=True, max_length=64, null=True)), ('os_type', models.CharField(blank=True, max_length=64, null=True)), ('os_release', models.CharField(blank=True, max_length=64, null=True)), ('data', models.TextField(verbose_name='资产数据')), ('date', models.DateTimeField(auto_now_add=True, verbose_name='汇报日期')), ('approved', models.BooleanField(default=False, verbose_name='已批准')), ('approved_date', models.DateTimeField(blank=True, null=True, verbose_name='批准日期')), ('approved_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.UserProfile', verbose_name='批准人')), ], options={ 'verbose_name': '新上线待批准资产', 'verbose_name_plural': '新上线待批准资产', }, ), migrations.CreateModel( name='NetworkDevice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sub_asset_type', models.SmallIntegerField(choices=[(0, '路由器'), (1, '交换机'), (2, '负载均衡'), (4, 'VPN设备')], default=0, verbose_name='网络设备类型')), ('vlan_ip', models.GenericIPAddressField(blank=True, null=True, verbose_name='VlanIP')), ('intranet_ip', models.GenericIPAddressField(blank=True, null=True, verbose_name='内网IP')), ('model', models.CharField(blank=True, max_length=128, null=True, verbose_name='型号')), ('firmware', models.CharField(blank=True, max_length=64, null=True, verbose_name='固件')), ('port_num', models.SmallIntegerField(blank=True, null=True, verbose_name='端口个数')), ('device_detail', models.TextField(blank=True, null=True, verbose_name='设置详细配置')), ('asset', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'verbose_name': '网络设备', 'verbose_name_plural': '网络设备', }, ), migrations.CreateModel( name='EventLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='事件名称')), ('event_type', models.SmallIntegerField(choices=[(1, '硬件变更'), (2, '新增配件'), (3, '设备下线'), (4, '设备上线'), (5, '定期维护'), (6, '业务上线\\更新\\变更'), (7, '其它')], verbose_name='事件类型')), ('component', models.CharField(blank=True, max_length=255, null=True, verbose_name='事件子项')), ('detail', models.TextField(verbose_name='事件详情')), ('date', models.DateTimeField(auto_now_add=True, verbose_name='事件时间')), ('memo', models.TextField(blank=True, null=True, verbose_name='备注')), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.UserProfile', verbose_name='事件源')), ], options={ 'verbose_name': '事件记录', 'verbose_name_plural': '事件记录', }, ), migrations.CreateModel( name='CPU', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cpu_model', models.CharField(blank=True, max_length=128, verbose_name='CPU型号')), ('cpu_count', models.SmallIntegerField(verbose_name='物理cpu个数')), ('cpu_core_count', models.SmallIntegerField(verbose_name='cpu核数')), ('memo', models.TextField(blank=True, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True)), ('update_date', models.DateTimeField(blank=True, null=True)), ('asset', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'verbose_name': 'CPU部件', 'verbose_name_plural': 'CPU部件', }, ), migrations.CreateModel( name='BusinessUnit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=64, unique=True)), ('parent_unit', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.BusinessUnit')), ], ), migrations.AddField( model_name='asset', name='admin', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.UserProfile', verbose_name='资产管理员'), ), migrations.AddField( model_name='asset', name='business_unit', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.BusinessUnit'), ), migrations.AddField( model_name='asset', name='contract', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.Contract', verbose_name='合同'), ), migrations.AddField( model_name='asset', name='idc', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.IDC', verbose_name='IDC机房'), ), migrations.AddField( model_name='asset', name='manufactory', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='assets.Manufactory', verbose_name='制造商'), ), migrations.AddField( model_name='asset', name='tags', field=models.ManyToManyField(blank=True, to='assets.Tag'), ), migrations.CreateModel( name='RAM', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sn', models.CharField(blank=True, max_length=128, verbose_name='SN号')), ('model', models.CharField(max_length=64, verbose_name='内存型号')), ('slot', models.CharField(max_length=64, verbose_name='插槽')), ('capacity', models.IntegerField(verbose_name='内存大小(MB)')), ('memo', models.CharField(blank=True, max_length=128, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True, null=True, verbose_name='创建时间')), ('update_date', models.DateTimeField(blank=True, null=True, verbose_name='更新时间')), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'verbose_name': 'RAM', 'verbose_name_plural': 'RAM', 'unique_together': {('sn', 'slot')}, }, ), migrations.CreateModel( name='RaidAdaptor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=64, null=True, verbose_name='raid卡名')), ('sn', models.CharField(blank=True, max_length=128, null=True, verbose_name='SN号')), ('slot', models.CharField(max_length=64, verbose_name='插口')), ('model', models.CharField(blank=True, max_length=64, null=True, verbose_name='型号')), ('memo', models.TextField(blank=True, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True)), ('update_date', models.DateTimeField(blank=True, null=True)), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'unique_together': {('asset', 'slot')}, }, ), migrations.CreateModel( name='Disk', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sn', models.CharField(blank=True, max_length=128, null=True, verbose_name='SN号')), ('slot', models.CharField(max_length=64, verbose_name='插槽位')), ('manufactory', models.CharField(blank=True, max_length=64, null=True, verbose_name='制造商')), ('model', models.CharField(blank=True, max_length=128, null=True, verbose_name='磁盘型号')), ('capacity', models.FloatField(verbose_name='磁盘容量GB')), ('iface_type', models.CharField(choices=[('SATA', 'SATA'), ('SAS', 'SAS'), ('SCSI', 'SCSI'), ('SSD', 'SSD')], default='SATA', max_length=64, verbose_name='接口类型')), ('memo', models.CharField(blank=True, max_length=128, null=True, verbose_name='备注')), ('create_date', models.DateTimeField(auto_now_add=True, null=True)), ('update_date', models.DateTimeField(blank=True, null=True)), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset')), ], options={ 'verbose_name': '硬盘', 'verbose_name_plural': '硬盘', 'unique_together': {('sn', 'slot')}, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='UserManage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('station_id', models.IntegerField(null=True)), ('username', models.CharField(max_length=128, unique=True)), ('password', models.CharField(max_length=256)), ('role', models.SmallIntegerField()), ('disable', models.BooleanField(default=False)), ('code', models.CharField(max_length=48, null=True)), ('position', models.CharField(max_length=24, null=True)), ('telphone', models.CharField(max_length=24, null=True)), ('created', models.DateTimeField(editable=False)), ('lastLogin', models.DateTimeField(null=True)), ('description', models.CharField(max_length=48, 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={ 'db_table': 'user', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='StationManage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('desc', models.CharField(max_length=256, null=True)), ], options={ 'db_table': 'station', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='WxUser', 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')), ('openid', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='微信OpenID')), ('avatar_url', models.URLField(blank=True, null=True, verbose_name='头像')), ('nick_name', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='昵称')), ('gender', models.SmallIntegerField(blank=True, choices=[(1, '男'), (2, '女'), (0, '未知')], null=True, verbose_name='性别')), ('language', models.CharField(blank=True, max_length=100, null=True, verbose_name='语言')), ('city', models.CharField(blank=True, max_length=200, null=True, verbose_name='城市')), ('province', models.CharField(blank=True, max_length=200, null=True, verbose_name='省份')), ('country', models.CharField(blank=True, max_length=200, null=True, verbose_name='国家')), ('full_name', models.CharField(blank=True, max_length=100, null=True, verbose_name='真实姓名')), ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='出生日期')), ('desc', models.TextField(blank=True, max_length=2000, null=True, verbose_name='描述')), ('mobile', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='手机号')), ('current_credits', models.BigIntegerField(blank=True, default=0, null=True, verbose_name='当前积分')), ('is_partner', models.BooleanField(default=False, verbose_name='是合伙人')), ('is_client', models.BooleanField(default=True, verbose_name='是客户')), ('is_manager', models.BooleanField(default=False, verbose_name='是管理员')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=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')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, 'swappable': 'AUTH_USER_MODEL', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='BelongTo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=200, null=True, unique=True, verbose_name='名称')), ], options={ 'verbose_name': '归属渠道', 'verbose_name_plural': '归属渠道', 'ordering': ['id'], }, ), migrations.CreateModel( name='CarInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('car_number', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='车牌')), ('car_brand', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车品牌')), ('car_model', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车型号')), ('car_price', models.IntegerField(blank=True, null=True, verbose_name='购买价格/万')), ('bought_date', models.DateField(blank=True, null=True, verbose_name='购买日期')), ('desc', models.TextField(blank=True, max_length=1000, null=True, verbose_name='描述')), ('is_confirmed', models.BooleanField(default=False, verbose_name='已审核')), ('is_active', models.BooleanField(default=True, verbose_name='有效')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='car_info_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='car_info_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ], options={ 'verbose_name': '车辆信息', 'verbose_name_plural': '车辆信息', 'ordering': ['-id'], }, ), migrations.CreateModel( name='InsuranceCompany', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True, unique=True, verbose_name='保险出单公司')), ], options={ 'verbose_name': '保险出单公司', 'verbose_name_plural': '保险出单公司', 'ordering': ['id'], }, ), migrations.CreateModel( name='ServicePackage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True, unique=True, verbose_name='名称')), ('desc', models.CharField(blank=True, max_length=200, null=True, verbose_name='介绍')), ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='价格')), ], options={ 'verbose_name': '服务套餐', 'verbose_name_plural': '服务套餐', 'ordering': ['id'], }, ), migrations.CreateModel( name='ServicePackageType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True, unique=True, verbose_name='名称')), ('desc', models.CharField(blank=True, max_length=200, null=True, verbose_name='介绍')), ], options={ 'verbose_name': '套餐归类', 'verbose_name_plural': '套餐归类', 'ordering': ['id'], }, ), migrations.CreateModel( name='StoreInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200, null=True, unique=True, verbose_name='名称')), ('contact', models.CharField(blank=True, max_length=200, null=True, verbose_name='联系电话')), ('address', models.TextField(blank=True, max_length=1000, null=True, verbose_name='地址')), ('desc', models.TextField(blank=True, max_length=2000, null=True, verbose_name='介绍')), ], options={ 'verbose_name': '门店信息', 'verbose_name_plural': '门店信息', 'ordering': ['id'], }, ), migrations.CreateModel( name='UserLevel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('level_code', models.SmallIntegerField(null=True, unique=True, verbose_name='等级编号')), ('level_name', models.CharField(max_length=100, null=True, unique=True, verbose_name='等级名称')), ('desc', models.TextField(blank=True, max_length=1000, null=True, verbose_name='等级描述')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ], options={ 'verbose_name': '用户等级', 'verbose_name_plural': '用户等级', 'ordering': ['id'], }, ), migrations.CreateModel( name='Superior', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, null=True, unique=True, verbose_name='名字')), ('mobile', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='手机号')), ('desc', models.TextField(blank=True, max_length=1000, null=True, verbose_name='描述')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='superior_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='superior_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='关联账号')), ], options={ 'verbose_name': '工作人员', 'verbose_name_plural': '工作人员', 'ordering': ['id'], }, ), migrations.CreateModel( name='ServiceRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('reserve_type', models.IntegerField(blank=True, choices=[(1, '上门'), (2, '到店')], null=True, verbose_name='类型')), ('is_reversed', models.BooleanField(default=False, verbose_name='是预约服务')), ('reserve_time', models.DateTimeField(blank=True, null=True, verbose_name='服务时间')), ('reserve_address', models.TextField(blank=True, max_length=1000, null=True, verbose_name='服务地点')), ('is_checked', models.BooleanField(default=False, verbose_name='已联系/已确认')), ('is_served', models.BooleanField(default=False, verbose_name='服务已完成')), ('notes', models.TextField(blank=True, max_length=1000, null=True, verbose_name='备注')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('car', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.CarInfo', verbose_name='车辆信息')), ('checked_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_record_check_by', to='app.Superior', verbose_name='由谁联系')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_record_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_record_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('related_store', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.StoreInfo', verbose_name='门店')), ('served_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_record_served_by', to='app.Superior', verbose_name='由谁服务')), ('service_package', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.ServicePackage', verbose_name='服务套餐')), ], options={ 'verbose_name': '服务记录', 'verbose_name_plural': '服务记录', 'ordering': ['-id'], }, ), migrations.AddField( model_name='servicepackage', name='service_type', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.ServicePackageType', verbose_name='归类'), ), migrations.CreateModel( name='ServiceApply', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('car_number', models.CharField(max_length=100, null=True, verbose_name='车牌')), ('car_brand', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车品牌')), ('car_model', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车型号')), ('name', models.CharField(max_length=255, null=True, verbose_name='名字')), ('mobile', models.CharField(max_length=255, null=True, verbose_name='手机')), ('reserve_type', models.IntegerField(blank=True, choices=[(1, '上门'), (2, '到店')], null=True, verbose_name='类型')), ('reserve_time', models.DateTimeField(blank=True, null=True, verbose_name='服务时间')), ('reserve_address', models.TextField(blank=True, max_length=1000, null=True, verbose_name='服务地点')), ('is_checked', models.BooleanField(default=False, verbose_name='已联系/已确认')), ('data_import', models.BooleanField(default=False, verbose_name='数据导入')), ('notes', models.TextField(blank=True, max_length=1000, null=True, verbose_name='备注')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('checked_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_apply_check_by', to='app.Superior', verbose_name='由谁联系')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_apply_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='service_apply_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('related_record', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.ServiceRecord', verbose_name='关联记录')), ('related_store', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.StoreInfo', verbose_name='门店')), ('service_package', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.ServicePackage', verbose_name='服务套餐')), ], options={ 'verbose_name': '维修服务申请', 'verbose_name_plural': '维修服务申请', 'ordering': ['-id'], }, ), migrations.CreateModel( name='InsuranceRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('record_date', models.DateField(null=True, verbose_name='签单日期')), ('insurance_date', models.DateField(blank=True, null=True, verbose_name='保单开始日期')), ('total_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='含税总保费')), ('tax', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='车船税')), ('has_payback', models.BooleanField(default=False, verbose_name='是否已返费')), ('payback_percent', models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='已返费率')), ('payback_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='已返金额')), ('is_payed', models.BooleanField(default=True, verbose_name='已支付')), ('notes', models.TextField(blank=True, max_length=1000, null=True, verbose_name='备注')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('belong_to', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.BelongTo', verbose_name='归属渠道')), ('car', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.CarInfo', verbose_name='车辆信息')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='insurance_record_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='insurance_record_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('insurance_company', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.InsuranceCompany', verbose_name='保险公司')), ('receiver', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.Superior', verbose_name='验车人')), ], options={ 'verbose_name': '投保记录', 'verbose_name_plural': '投保记录', 'ordering': ['-id'], }, ), migrations.CreateModel( name='InsuranceApply', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('car_number', models.CharField(max_length=100, null=True, verbose_name='车牌')), ('car_brand', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车品牌')), ('car_model', models.CharField(blank=True, max_length=255, null=True, verbose_name='汽车型号')), ('name', models.CharField(max_length=255, null=True, verbose_name='名字')), ('mobile', models.CharField(max_length=255, null=True, verbose_name='手机')), ('service_type', models.IntegerField(blank=True, choices=[(1, '车辆续保'), (2, '保险分期'), (3, '购车贷款')], null=True, verbose_name='类别')), ('insurance_date', models.DateField(blank=True, null=True, verbose_name='保单开始日期')), ('is_checked', models.BooleanField(default=False, verbose_name='已联系/已确认')), ('data_import', models.BooleanField(default=False, verbose_name='数据导入')), ('notes', models.TextField(blank=True, max_length=1000, null=True, verbose_name='备注')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('checked_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='insurance_apply_check_by', to='app.Superior', verbose_name='由谁联系')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='insurance_apply_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='insurance_apply_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('related_record', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.InsuranceRecord', verbose_name='关联记录')), ], options={ 'verbose_name': '保险服务申请', 'verbose_name_plural': '保险服务申请', 'ordering': ['-id'], }, ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, null=True, verbose_name='名字')), ('mobile', models.CharField(max_length=255, null=True, verbose_name='手机')), ('datetime_created', models.DateTimeField(auto_now_add=True, verbose_name='记录时间')), ('datetime_updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('confirmed_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='customer_confirmed_by', to=settings.AUTH_USER_MODEL, verbose_name='审核人员')), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='customer_created_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人员')), ('related_superior', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.Superior', verbose_name='客户归属')), ('related_user', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='customer_related_user', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')), ], options={ 'verbose_name': '客户列表', 'verbose_name_plural': '客户列表', 'ordering': ['-id'], 'unique_together': {('name', 'mobile')}, }, ), migrations.AddField( model_name='carinfo', name='customer', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Customer', verbose_name='客户'), ), migrations.AddField( model_name='wxuser', name='user_level', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.UserLevel', verbose_name='用户等级'), ), migrations.AddField( model_name='wxuser', 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='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')), ('nickname', models.CharField(default='', max_length=20, verbose_name='昵称')), ('avatar', models.ImageField(default='upload/avatar/default.png', upload_to='upload/avatar/%Y%m', 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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Posts', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30, verbose_name='文章标题')), ('content', models.TextField(verbose_name='文章内容')), ('publish_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('modify_time', models.DateTimeField(auto_now=True, verbose_name='最后更新时间')), ('status', models.SmallIntegerField(choices=[(0, '草稿'), (1, '发布')], default=0)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='作者')), ], options={ 'ordering': ['-publish_time'], }, ), migrations.CreateModel( name='Type', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type_name', models.CharField(max_length=30, verbose_name='类型名称')), ], options={ 'verbose_name': '博客类型', 'verbose_name_plural': '博客类型', }, ), migrations.AddField( model_name='posts', name='b_type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='blog.Type', verbose_name='博客类型'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150)), ('image', models.ImageField(default='image/restoran/default.png', null=True, upload_to='image/restoran/')), ], ), migrations.CreateModel( name='Restoran', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150)), ('image', models.ImageField(default='image/restoran/default.png', null=True, upload_to='image/restoran/')), ('tables', models.SmallIntegerField(default=0)), ], ), migrations.CreateModel( name='Table', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.SmallIntegerField(blank=True)), ('color', models.SmallIntegerField(blank=True, choices=[(1, 'Green'), (2, 'Yellow'), (3, 'Red'), (4, 'Red Yellow'), (5, 'Blue')], default=1)), ('restoran', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='app.Restoran')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150)), ('body', models.TextField()), ('status', models.SmallIntegerField(blank=True, choices=[(1, 'порция'), (2, 'штук'), (3, 'литр'), (4, 'стакан')])), ('unit', models.SmallIntegerField(blank=True)), ('price', models.IntegerField(blank=True)), ('image', models.ImageField(default='image/restoran/default.png', null=True, upload_to='image/restoran/')), ('category', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='app.Category')), ], ), migrations.CreateModel( name='ImageProduct', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(default='image/restoran/default.png', null=True, upload_to='image/restoran/')), ('product_image', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='app.Product')), ], ), migrations.AddField( model_name='category', name='restoran', field=models.ForeignKey( blank=True, on_delete=django.db.models.deletion.CASCADE, to='app.Restoran'), ), 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')), ('mobile', models.IntegerField(null=True, verbose_name='phone number')), ('avatar', models.ImageField(default='image/avatar/worker/default.png', null=True, upload_to='image/avatar/worker')), ('status', models.SmallIntegerField(choices=[(0, 'admin'), (1, 'worker'), (2, 'user')], null=True, verbose_name='Status')), ('wage', models.IntegerField(null=True, verbose_name='Wage')), ('wage_type', models.SmallIntegerField(choices=[(0, 'hour'), (1, 'day'), (2, 'month')], null=True, verbose_name='Wage type')), ('duty', models.SmallIntegerField(choices=[(0, 'security'), (1, 'Chef'), (2, 'cashier'), (3, 'manager'), (4, 'waitress')], null=True, verbose_name='Duty')), ('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='Phone', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='criado em')), ('updated_at', models.DateTimeField( auto_now=True, verbose_name='atualizado pela última vez em')), ('is_active', models.BooleanField(default=True, verbose_name='está ativo')), ('type', models.BooleanField(choices=[(True, 'Celular'), (False, 'Telefone fixo')], verbose_name='tipo de telefone')), ('ddi', models.SmallIntegerField(default=55, verbose_name='DDI')), ('ddd', models.SmallIntegerField(default=21, verbose_name='DDD')), ('number', models.CharField(max_length=10, verbose_name='número')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Renter', 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)), ('full_name', models.CharField(max_length=150, verbose_name='nome completo')), ('responsible', models.CharField( max_length=150, verbose_name='responsável (se menor de 18)')), ('cpf', models.CharField(max_length=15, verbose_name='CPF')), ('rg', models.CharField(max_length=15, verbose_name='RG')), ('birthday', models.DateField(verbose_name='data de nascimento')), ('address', models.CharField(max_length=200, verbose_name='endereço')), ('neighborhood', models.CharField(max_length=50, verbose_name='bairro')), ('city', models.CharField(max_length=50, verbose_name='cidade')), ('state', models.CharField(max_length=50, verbose_name='estado')), ('country', models.CharField(max_length=50, verbose_name='país')), ('cep', models.CharField(max_length=8, verbose_name='CEP')), ], options={ 'abstract': False, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Room', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='criado em')), ('updated_at', models.DateTimeField( auto_now=True, verbose_name='atualizado pela última vez em')), ('is_active', models.BooleanField(default=True, verbose_name='está ativo')), ('name', models.CharField(default='Não definido', max_length=120, verbose_name='nome')), ('number', models.PositiveSmallIntegerField(verbose_name='nº')), ('gender', models.NullBooleanField(choices=[(True, 'Masculino'), (False, 'Feminino'), (None, 'Misto')], default=None, verbose_name='sexo')), ('capacity', models.SmallIntegerField(verbose_name='capacidade')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Tenancy', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='criado em')), ('updated_at', models.DateTimeField( auto_now=True, verbose_name='atualizado pela última vez em')), ('is_active', models.BooleanField(default=True, verbose_name='está ativo')), ('street', models.CharField(max_length=100, verbose_name='rua')), ('number', models.IntegerField(verbose_name='nº')), ], options={ 'abstract': False, }, ), migrations.AddField( model_name='room', name='tenancy', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='rooms', to='locacao.Tenancy'), ), migrations.AddField( model_name='renter', name='room', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='users', to='locacao.Room', verbose_name='quarto'), ), migrations.AddField( model_name='phone', name='owner', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='phones', to='locacao.Renter', verbose_name='dono'), ), ]
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')), ('gender', models.SmallIntegerField(choices=[(0, 'None'), (1, 'Mmale'), (2, 'Female'), (3, 'Trans')], default=0)), ('adhar', models.IntegerField(blank=True, null=True, unique=True)), ('dob', models.DateField(blank=True, null=True)), ('father_name', models.CharField(blank=True, max_length=256, null=True)), ('mother_name', models.CharField(blank=True, max_length=256, null=True)), ('type', models.IntegerField(choices=[(0, 'None'), (1, 'Student'), (2, 'Staff'), (3, 'lower_staf')], default=0)), ('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='Projects', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pr_id', models.CharField(max_length=256, unique=True)), ('pr_name', models.CharField(max_length=256)), ('client', models.CharField(max_length=256)), ('start', models.DateField(auto_now_add=True)), ('end', models.DateField(blank=True, null=True)), ('status', models.SmallIntegerField(choices=[(0, 'None'), (1, 'DEV'), (2, ''), (2, 'PROD'), (3, 'LIVE'), (4, 'CLOSED')], default=0)), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('contact_number', models.IntegerField(blank=True, null=True)), ('addr', models.TextField(blank=True, default='Home')), ('email', models.CharField(blank=True, max_length=256, null=True)), ('user', models.OneToOneField( limit_choices_to={'type': 1}, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='JobHistory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('designation', models.SmallIntegerField(choices=[ (0, 'None'), (1, 'PRINCIPLE'), (2, 'HOD'), (2, 'PROFESSOR'), (3, 'ASST-PROFESSOR'), (4, 'ASSOCIAT-PROFESSOR'), (5, 'LAB-INCHARGE'), (6, 'LAB-ASSISTANT') ], default=0)), ('start', models.DateField(auto_now_add=True)), ('end', models.DateField(blank=True, null=True)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='user.projects')), ('user', models.ForeignKey(limit_choices_to={'type': 2}, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_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=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')), ('favorite_team', models.CharField(blank=True, max_length=50)), ('favorite_player', models.CharField(blank=True, max_length=50)), ('loss_alert', models.PositiveIntegerField(default=0)), ('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')), ], managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Bookmaker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=70, unique=True)), ('location', models.CharField(blank=True, max_length=70, null=True)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('creation_date', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Game', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('game_date', models.DateField()), ], ), migrations.CreateModel( name='GameForecast', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(auto_now_add=True)), ('your_forecast', models.SmallIntegerField( choices=[(1, '1 - home team'), (2, '2 - away team')])), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sports_betting.Game')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='GameResult', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('winner', models.PositiveSmallIntegerField( choices=[(1, 'home_team'), (2, 'away_team')])), ('team_home_score', models.PositiveSmallIntegerField()), ('team_away_score', models.PositiveSmallIntegerField()), ('game', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='sports_betting.Game')), ], ), migrations.CreateModel( name='Opinion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('creation_date', models.DateTimeField(auto_now=True)), ('bookmaker', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sports_betting.Bookmaker')), ('user', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Team', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=70, unique=True)), ('city', models.CharField(max_length=70)), ('conference', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='YourBet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(auto_now_add=True)), ('assumable_prize', models.PositiveIntegerField()), ('your_bid', models.PositiveIntegerField()), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to='', width_field='width_field')), ('height_field', models.IntegerField(blank=True, default=0, null=True)), ('width_field', models.IntegerField(blank=True, default=0, null=True)), ('visible', models.BooleanField(default=False)), ('bookmaker', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sports_betting.Bookmaker')), ('games', models.ManyToManyField(to='sports_betting.GameForecast')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='YourBetResult', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('info', models.TextField(blank=True, null=True)), ('bet_result', models.SmallIntegerField(default=0)), ('bet', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='sports_betting.YourBet')), ], ), migrations.AddField( model_name='game', name='team_away', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='team_away', to='sports_betting.Team'), ), migrations.AddField( model_name='game', name='team_home', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='team_home', to='sports_betting.Team'), ), migrations.AddField( model_name='comment', name='game', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='sports_betting.Game'), ), migrations.AddField( model_name='comment', name='user', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL), ), migrations.AlterUniqueTogether( name='game', unique_together={('team_home', 'team_away', 'game_date')}, ), migrations.AlterUniqueTogether( name='user', unique_together={('email', )}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [("auth", "0009_alter_user_last_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=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"), ), ("invitecode", models.CharField(max_length=40, verbose_name="邀请码")), ( "invited_by", models.PositiveIntegerField(default=1, verbose_name="邀请人id"), ), ( "balance", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="余额", ), ), ( "invitecode_num", models.PositiveIntegerField(default=5, verbose_name="可生成的邀请码数量"), ), ( "level", models.PositiveIntegerField( default=0, validators=[ django.core.validators.MaxValueValidator(9), django.core.validators.MinValueValidator(0), ], verbose_name="用户等级", ), ), ( "level_expire_time", models.DateTimeField(default=django.utils.timezone.now, verbose_name="等级有效期"), ), ( "theme", models.CharField( choices=[ ("default", "default"), ("darkly", "darkly"), ("flatly", "flatly"), ("journal", "journal"), ("materia", "materia"), ("minty", "minty"), ("spacelab", "spacelab"), ("superhero", "superhero"), ], default="superhero", max_length=10, 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": "users", "abstract": False, }, managers=[("objects", django.contrib.auth.models.UserManager())], ), migrations.CreateModel( name="Announcement", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="时间")), ("body", models.TextField(verbose_name="主体")), ], options={ "verbose_name_plural": "系统公告", "ordering": ("-time", ) }, ), migrations.CreateModel( name="Donate", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="捐赠时间")), ( "money", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="捐赠金额", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name="捐赠人", ), ), ], options={ "verbose_name_plural": "捐赠记录", "ordering": ("-time", ) }, ), migrations.CreateModel( name="Goods", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "name", models.CharField(default="待编辑", max_length=128, verbose_name="商品名字"), ), ( "content", models.CharField(default="待编辑", max_length=256, verbose_name="商品描述"), ), ( "transfer", models.BigIntegerField(default=1073741824, verbose_name="增加的流量"), ), ( "money", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="金额", ), ), ( "level", models.PositiveIntegerField( default=0, validators=[ django.core.validators.MaxValueValidator(9), django.core.validators.MinValueValidator(0), ], verbose_name="设置等级", ), ), ( "days", models.PositiveIntegerField( default=1, validators=[ django.core.validators.MaxValueValidator(365), django.core.validators.MinValueValidator(1), ], verbose_name="设置等级时间(天)", ), ), ( "status", models.SmallIntegerField(choices=[(1, "上架"), (-1, "下架")], default=1, verbose_name="商品状态"), ), ( "order", models.PositiveSmallIntegerField(default=1, verbose_name="排序"), ), ], options={ "verbose_name_plural": "商品", "ordering": ["order"] }, ), migrations.CreateModel( name="InviteCode", fields=[ ( "code_type", models.IntegerField(choices=[(1, "公开"), (0, "不公开")], default=0, verbose_name="类型"), ), ( "code_id", models.PositiveIntegerField(default=1, verbose_name="邀请人ID"), ), ( "code", models.CharField( blank=True, default=apps.utils.get_long_random_string, max_length=40, primary_key=True, serialize=False, verbose_name="邀请码", ), ), ( "time_created", models.DateTimeField(auto_now_add=True, verbose_name="创建时间"), ), ("isused", models.BooleanField(default=False, verbose_name="是否使用")), ], options={ "verbose_name_plural": "邀请码", "ordering": ("isused", "-time_created"), }, ), migrations.CreateModel( name="MoneyCode", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "user", models.CharField(blank=True, max_length=128, null=True, verbose_name="用户名"), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="捐赠时间")), ( "code", models.CharField( blank=True, default=apps.utils.get_long_random_string, max_length=40, unique=True, verbose_name="充值码", ), ), ( "number", models.DecimalField( blank=True, decimal_places=2, default=10, max_digits=10, null=True, verbose_name="捐赠金额", ), ), ("isused", models.BooleanField(default=False, verbose_name="是否使用")), ], options={ "verbose_name_plural": "充值码", "ordering": ("isused", ) }, ), migrations.CreateModel( name="PayRecord", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("username", models.CharField(max_length=64, verbose_name="用户名")), ( "info_code", models.CharField(max_length=64, unique=True, verbose_name="流水号"), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="时间")), ( "amount", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="金额", ), ), ( "money_code", models.CharField(max_length=64, unique=True, verbose_name="充值码"), ), ( "charge_type", models.CharField( default=1, help_text="1:支付宝 2:QQ钱包 3:微信支付", max_length=10, verbose_name="充值类型", ), ), ], options={ "verbose_name_plural": "支付转账记录", "ordering": ("-time", ) }, ), migrations.CreateModel( name="PayRequest", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("username", models.CharField(max_length=64, verbose_name="用户名")), ( "info_code", models.CharField(max_length=64, unique=True, verbose_name="流水号"), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="时间")), ( "amount", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="金额", ), ), ( "charge_type", models.CharField( default=1, help_text="1:支付宝 2:QQ钱包 3:微信支付", max_length=10, verbose_name="充值类型", ), ), ], options={ "verbose_name_plural": "支付申请记录", "ordering": ("-time", ) }, ), migrations.CreateModel( name="PurchaseHistory", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("user", models.CharField(max_length=128, verbose_name="购买者")), ( "money", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="金额", ), ), ( "purchtime", models.DateTimeField(auto_now_add=True, verbose_name="购买时间"), ), ( "good", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="sspanel.Goods", verbose_name="商品名", ), ), ], options={ "verbose_name_plural": "购买记录", "ordering": ("-purchtime", ) }, ), migrations.CreateModel( name="RebateRecord", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "user_id", models.PositiveIntegerField(default=1, verbose_name="返利人ID"), ), ( "rebatetime", models.DateTimeField(auto_now_add=True, verbose_name="返利时间"), ), ( "money", models.DecimalField( blank=True, decimal_places=2, default=0, max_digits=10, null=True, verbose_name="金额", ), ), ], options={"ordering": ("-rebatetime", )}, ), migrations.CreateModel( name="Ticket", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("time", models.DateTimeField(auto_now_add=True, verbose_name="时间")), ("title", models.CharField(max_length=128, verbose_name="标题")), ("body", models.TextField(verbose_name="内容主体")), ( "status", models.SmallIntegerField(choices=[(1, "开启"), (-1, "关闭")], default=1, verbose_name="状态"), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name="用户", ), ), ], options={ "verbose_name_plural": "工单", "ordering": ("-time", ) }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', 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_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_staff', models.BooleanField(default=False, help_text='请选择该账户是否属于仓库管理员', max_length=10, verbose_name='是否仓库管理员')), ('phone', models.CharField(blank=True, default='', max_length=30, verbose_name='电话号码')), ], options={ 'verbose_name': '账户', 'verbose_name_plural': '账户', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Announcement', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='公告标题')), ('summary', models.CharField(max_length=200, verbose_name='简介')), ('content', models.TextField(verbose_name='公告内容')), ('publish_time', models.DateTimeField(auto_now=True, verbose_name='发布时间')), ('status', models.PositiveSmallIntegerField(blank=True, choices=[(1, '保存'), (2, '发布'), (3, '撤回')], default=1)), ('account', models.ForeignKey( default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='发布人')), ], options={ 'verbose_name': '公告', 'verbose_name_plural': '公告', }, ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True, verbose_name='公司名称')), ('address', models.CharField(blank=True, default='', max_length=200, verbose_name='公司地址')), ('contacts', models.CharField(blank=True, default='', max_length=20, verbose_name='联系人')), ('contacts_phone', models.CharField(blank=True, default='', max_length=20, verbose_name='联系电话')), ('prepayment', models.DecimalField(decimal_places=2, max_digits=7, verbose_name='预存款')), ], options={ 'verbose_name': '公司', 'verbose_name_plural': '公司', }, ), migrations.CreateModel( name='Level', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='公司等级')), ], options={ 'verbose_name': '公司等级', 'verbose_name_plural': '公司等级', }, ), migrations.CreateModel( name='Operation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('action', models.CharField(choices=[('0', '其他'), ('1', '新建'), ('2', '删除'), ('3', '修改'), ('4', '查询')], max_length=8, verbose_name='动作')), ('description', models.CharField(blank=True, default='', max_length=200, verbose_name='描述')), ('object_id', models.TextField(blank=True, null=True)), ('object_repr', models.CharField(blank=True, default='', max_length=200)), ('action_time', models.DateTimeField(auto_now_add=True, verbose_name='操作时间')), ('account', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='操作者')), ('content_type', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.ContentType')), ], options={ 'verbose_name': '操作记录', 'verbose_name_plural': '操作记录', }, ), migrations.CreateModel( name='Prepayrecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sum', models.DecimalField(decimal_places=2, max_digits=7, verbose_name='金额')), ('instruction', models.CharField(blank=True, default='', max_length=30, verbose_name='说明')), ('type', models.SmallIntegerField(choices=[(1, '预存款'), (2, '入仓费'), (3, '操作费'), (4, '订单运费'), (5, '仓租'), (6, '退件接受检查费'), (7, '其他')], verbose_name='费用类别')), ('time', models.DateTimeField(auto_now=True, verbose_name='触发时间')), ('account', models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ('company', models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.Company')), ], options={ 'verbose_name': '费用记录', 'verbose_name_plural': '费用记录', }, ), migrations.AddField( model_name='company', name='level', field=models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.Level', verbose_name='公司等级'), ), migrations.AddField( model_name='account', name='company', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='account.Company', verbose_name='所属公司'), ), migrations.AddField( model_name='account', 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='account', 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='MicroUser', 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')), ('uuid', models.CharField(blank=True, max_length=30, null=True)), ('nickname', models.CharField(blank=True, default='微梦用户', max_length=30)), ('phone', models.CharField(max_length=11)), ('signature', models.TextField(blank=True, max_length=200)), ('sex', models.SmallIntegerField(default=0)), ('avatar', models.URLField(default='')), ('last_sign', models.DateTimeField(default=django.utils.timezone.now)), ('pea', models.IntegerField(default=10)), ('vip', 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='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject_id', models.IntegerField()), ('image_url', models.URLField()), ('url', models.URLField(blank=True)), ('type', models.SmallIntegerField()), ('title', models.CharField(blank=True, max_length=36)), ('desc', models.TextField(blank=True, max_length=300)), ('color', models.CharField(blank=True, max_length=10)), ('created', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='', max_length=20)), ('description', models.TextField(default='', max_length=300)), ('logo', models.URLField(default='')), ('created', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建日期')), ('type', models.SmallIntegerField(choices=[(0, '动漫'), (1, 'Cos'), (2, '写真')], default=1, verbose_name='类型')), ], options={ 'ordering': ('id',), }, ), migrations.CreateModel( name='Splash', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('duration', models.IntegerField(default=0)), ('name', models.CharField(blank=True, default='', max_length=30)), ('cover_url', models.URLField(default='')), ('link_url', models.URLField(blank=True, default='')), ('created', models.DateTimeField(auto_now=True)), ], options={ 'ordering': ('id',), }, ), migrations.CreateModel( name='Subject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, default='', max_length=120)), ('type', models.SmallIntegerField(choices=[(0, '动漫'), (1, 'Cos'), (2, '写真')], default=1, verbose_name='类型')), ('description', models.TextField(blank=True, default='', max_length=300)), ('cover', models.URLField(blank=True, default='')), ('cover_1', models.URLField(blank=True, default='')), ('cover_2', models.URLField(blank=True, default='')), ('tag', models.CharField(blank=True, default='', max_length=60)), ('created', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建日期')), ('source', models.CharField(default='', max_length=60)), ('source_id', models.CharField(blank=True, default='', max_length=30)), ('supported', models.BooleanField(default=False)), ('owner', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='subject_owner', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('id',), }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='Update', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('appUrl', models.URLField(default='')), ('updateInfo', models.CharField(max_length=120)), ('isForce', models.BooleanField(default=False)), ('versionCode', models.SmallIntegerField()), ('versionName', models.CharField(max_length=12)), ], ), migrations.CreateModel( name='Wallpaper', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.URLField(default='')), ('origin_url', models.URLField(default='')), ('sw', models.IntegerField(blank=True, default=0)), ('sh', models.IntegerField(blank=True, default=0)), ('created', models.DateTimeField(auto_now_add=True)), ('type', models.SmallIntegerField(choices=[(0, '动漫'), (1, 'Cos'), (2, '写真')], default=1, verbose_name='类型')), ('source', models.CharField(default='', max_length=60, verbose_name='来源')), ('source_id', models.CharField(blank=True, default='', max_length=30)), ('collect_num', models.IntegerField(default=0)), ('comment_num', models.IntegerField(default=0)), ('share_num', models.IntegerField(default=0)), ('download_num', models.IntegerField(default=0)), ('collected', models.BooleanField(default=False)), ('banner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='wallpaper.Banner')), ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='wallpaper.Category')), ('subject', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='wallpaper.Subject')), ], options={ 'ordering': ('id',), }, ), migrations.CreateModel( name='UserCollectPaper', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='添加日期')), ('paper', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wallpaper.Wallpaper')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('content', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), ('paper', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='wallpaper.Wallpaper')), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], ), ]
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')), ('height', models.SmallIntegerField(default=64, verbose_name='Height (in.)')), ('birthday', models.DateField(default=datetime.date(1981, 9, 20), verbose_name='Birthday')), ('gender', models.CharField(choices=[('ML', 'Male'), ('FM', 'Female')], max_length=2)), ('start_date', models.DateField(default=datetime.date(2020, 3, 10), verbose_name='My Fitness Pal Start Date')), ('myfitpal_user', models.CharField(max_length=50)), ('myfitpal_pw', models.CharField(max_length=50)), ('weight_init', models.FloatField(default=190, verbose_name='Weight')), ('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='Day', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(verbose_name='Date')), ('new_weight', models.FloatField(blank=True, null=True, verbose_name='Weight Reading (lbs.)')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Nutrient', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('calories', models.SmallIntegerField(default=0)), ('sodium', models.SmallIntegerField(default=0)), ('carbs', models.SmallIntegerField(default=0)), ('fat', models.SmallIntegerField(default=0)), ('sugar', models.SmallIntegerField(default=0)), ('protein', models.SmallIntegerField(default=0)), ('balance', models.SmallIntegerField(default=0)), ('cal_burned', models.SmallIntegerField(default=0)), ('date_owner', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='mydata.Day')), ('user_owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, 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=[ ('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=30, verbose_name='last name')), ('username', models.CharField(error_messages={ 'unique': '\u76f8\u540c\u7528\u6237\u540d\u5df2\u5b58\u5728' }, max_length=32, unique=True, verbose_name='\u7528\u6237\u540d')), ('is_active', models.BooleanField(default=True, verbose_name='\u542f\u7528')), ('is_staff', models.BooleanField(default=True, verbose_name='\u5141\u8bb8\u767b\u5f55')), ('is_admin', models.BooleanField(default=False, verbose_name='\u7ba1\u7406\u5458')), ('is_proxy', models.BooleanField( default=False, verbose_name='\u662f\u5426\u4e3a\u4ee3\u7406\u4eba')), ('date_joined', models.DateTimeField( auto_now_add=True, verbose_name='\u6ce8\u518c\u65f6\u95f4')), ('real_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='\u59d3\u540d')), ('mobile', models.CharField(blank=True, error_messages={ 'unique': '\u624b\u673a\u53f7\u5df2\u5b58\u5728' }, max_length=30, null=True, unique=True, verbose_name='\u624b\u673a\u53f7')), ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='\u90ae\u7bb1')), ('groups', models.ManyToManyField(blank=True, null=True, to='auth.Group', verbose_name='\u7528\u6237\u7ec4')), ('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': '\u7528\u6237\u8868', 'verbose_name_plural': '\u7528\u6237\u8868', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='AddressUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('addr', models.CharField(max_length=150, verbose_name='\u5730\u5740')), ('zip_code', models.CharField(max_length=10, verbose_name='\u90ae\u7f16')), ('create_time', models.DateTimeField( auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u7528\u6237')), ], options={ 'verbose_name': '\u5730\u5740\u7ba1\u7406', 'verbose_name_plural': '\u5730\u5740\u7ba1\u7406', }, ), migrations.CreateModel( name='Color', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=16, verbose_name='\u989c\u8272\u540d\u79f0')), ], options={ 'verbose_name': '\u989c\u8272\u8868', 'verbose_name_plural': '\u989c\u8272\u8868', }, ), migrations.CreateModel( name='CommentReply', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('reply', models.TextField(verbose_name='\u56de\u590d\u5185\u5bb9')), ('reply_time', models.DateTimeField( auto_now_add=True, verbose_name='\u56de\u590d\u65f6\u95f4')), ('approval', models.IntegerField(default=0, verbose_name='\u70b9\u8d5e')), ], options={ 'verbose_name': '\u8bc4\u8bba\u56de\u590d', 'verbose_name_plural': '\u8bc4\u8bba\u56de\u590d', }, ), migrations.CreateModel( name='Commodity', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='\u5546\u54c1\u540d\u79f0')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='\u4ef7\u683c')), ('description', models.TextField(max_length=200, verbose_name='\u63cf\u8ff0')), ('count', models.IntegerField(default=0, verbose_name='\u603b\u6570\u91cf')), ('sale', models.IntegerField(default=0, verbose_name='\u9500\u91cf')), ('is_active', models.BooleanField(default=False, verbose_name='\u662f\u5426\u4e0a\u67b6')), ], options={ 'verbose_name': '\u5546\u54c1\u8be6\u60c5', 'verbose_name_plural': '\u5546\u54c1\u8be6\u60c5', }, ), migrations.CreateModel( name='CommodityImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('img_path', models.ImageField(upload_to='images/', verbose_name='\u56fe\u7247\u5730\u5740')), ('commdity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mall.Commodity', verbose_name='\u5546\u54c1\u56fe\u7247')), ], options={ 'verbose_name': '\u5546\u54c1\u56fe\u7247', 'verbose_name_plural': '\u5546\u54c1\u56fe\u7247', }, ), migrations.CreateModel( name='CommodityProxy', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('proxy_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='\u4ee3\u7406\u4ef7\u683c')), ('proxy_addition_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='\u4ee3\u7406\u63d0\u6210')), ('commodity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mall.Commodity', verbose_name='\u4ee3\u7406\u5546\u54c1')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u4ee3\u7406\u4eba')), ], options={ 'verbose_name': '\u5546\u54c1\u4ee3\u7406\u4eba', 'verbose_name_plural': '\u5546\u54c1\u4ee3\u7406\u4eba', }, ), migrations.CreateModel( name='CommodtyComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField(verbose_name='\u8bc4\u4ef7\u5185\u5bb9')), ('approval', models.IntegerField(default=0, verbose_name='\u70b9\u8d5e')), ('comment_time', models.DateTimeField( auto_now_add=True, verbose_name='\u8bc4\u8bba\u65f6\u95f4')), ('commodity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mall.Commodity', verbose_name='\u5546\u54c1\u8bc4\u4ef7')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u8bc4\u8bba\u4eba')), ], options={ 'verbose_name': '\u5546\u54c1\u8bc4\u4ef7', 'verbose_name_plural': '\u5546\u54c1\u8bc4\u4ef7', }, ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(blank=True, max_length=16, verbose_name='\u8ba2\u5355\u53f7')), ('count', models.IntegerField(default=1, verbose_name='\u5546\u54c1\u6570\u91cf')), ('total_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='\u603b\u4ef7')), ('total_addition_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='\u63d0\u6210\u603b\u4ef7')), ('status', models.SmallIntegerField( choices=[(0, '\u672a\u652f\u4ed8'), (1, '\u5df2\u652f\u4ed8')], default=0, verbose_name='\u8ba2\u5355\u72b6\u6001')), ('user_remark', models.CharField(blank=True, max_length=200, null=True, verbose_name='\u987e\u5ba2\u63cf\u8ff0')), ('create_time', models.DateTimeField( auto_now_add=True, verbose_name='\u4e0b\u5355\u65f6\u95f4')), ('pay_time', models.DateTimeField( blank=True, null=True, verbose_name='\u652f\u4ed8\u65f6\u95f4')), ('addr', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='mall.AddressUser', verbose_name='\u8ba2\u5355\u5bc4\u5f80\u5730\u5740')), ('color', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mall.Color', verbose_name='\u989c\u8272')), ('commodity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mall.Commodity', verbose_name='\u5546\u54c1')), ('proxy_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='proxy_user', to=settings.AUTH_USER_MODEL, verbose_name='\u4ee3\u7406\u4eba')), ], options={ 'verbose_name': '\u8ba2\u5355\u8868', 'verbose_name_plural': '\u8ba2\u5355\u8868', }, ), migrations.CreateModel( name='Spec', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=16, verbose_name='\u5c3a\u7801\u540d\u79f0')), ], options={ 'verbose_name': '\u5546\u54c1\u89c4\u683c', 'verbose_name_plural': '\u5546\u54c1\u89c4\u683c', }, ), migrations.CreateModel( name='Stock', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('count', models.IntegerField(verbose_name='\u6570\u91cf')), ('color', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mall.Color', verbose_name='\u989c\u8272')), ('commodity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mall.Commodity', verbose_name='\u5546\u54c1')), ('spec', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mall.Spec', verbose_name='\u5546\u54c1\u89c4\u683c')), ], options={ 'verbose_name': '\u5e93\u5b58', 'verbose_name_plural': '\u5e93\u5b58', }, ), migrations.CreateModel( name='Type', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='\u5206\u7c7b')), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mall.Type', verbose_name='\u7236\u7c7b')), ], options={ 'verbose_name': '\u5546\u54c1\u5206\u7c7b', 'verbose_name_plural': '\u5546\u54c1\u5206\u7c7b', }, ), migrations.CreateModel( name='UserOpenid', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('openid', models.CharField(max_length=50, verbose_name='openid')), ('appid', models.CharField(max_length=50, verbose_name='\u516c\u4f17\u53f7ID')), ('head_img', models.ImageField(blank=True, max_length=200, null=True, upload_to='user_head_images/', verbose_name='\u5934\u50cf')), ('nickname', models.CharField(blank=True, max_length=50, null=True, verbose_name='\u6635\u79f0')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u7528\u6237OPENID')), ], options={ 'verbose_name': '\u7528\u6237\u5fae\u4fe1\u4fe1\u606f\u8868', 'verbose_name_plural': '\u7528\u6237\u5fae\u4fe1\u4fe1\u606f\u8868', }, ), migrations.AddField( model_name='order', name='spec', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mall.Spec', verbose_name='\u89c4\u683c'), ), migrations.AddField( model_name='order', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u7528\u6237'), ), migrations.AddField( model_name='commodity', name='type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='mall.Type', verbose_name='\u7c7b\u522b'), ), migrations.AddField( model_name='commentreply', name='comment', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='mall.CommodtyComment', verbose_name='\u5546\u54c1\u8bc4\u8bba'), ), migrations.AddField( model_name='commentreply', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u56de\u590d\u4eba'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_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=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')), ('avatar', models.ImageField(blank=True, null=True, upload_to='avatar/')), ('signature', models.TextField(blank=True, default='', null=True)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Client', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('email', models.EmailField(max_length=254)), ('avatar', models.ImageField(blank=True, null=True, upload_to='avatar/')), ], ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('creation_time', models.DateTimeField(default=django.utils.timezone.now)), ], ), migrations.CreateModel( name='Filter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('query', models.CharField(max_length=1023)), ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Invitation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('creation_time', models.DateTimeField(default=django.utils.timezone.now)), ('key', models.CharField(max_length=64)), ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='agent', to=settings.AUTH_USER_MODEL)), ('inviter', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='inviter', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='no subject', max_length=255)), ('content', models.TextField()), ('creation_time', models.DateTimeField(default=django.utils.timezone.now)), ('is_note', models.BooleanField(default=False)), ('agent_sender', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ('client_sender', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.Client')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('creation_time', models.DateTimeField(default=django.utils.timezone.now)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Company')), ], ), migrations.CreateModel( name='Team', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Company')), ], ), migrations.CreateModel( name='Ticket', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(default='no subject', max_length=255)), ('creation_time', models.DateTimeField(default=django.utils.timezone.now)), ('status', models.IntegerField(choices=[(0, 'Awaiting user'), (1, 'Awaiting agent'), (2, 'Resolved')], default=1)), ('priority', models.SmallIntegerField( default=1, validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(10) ])), ('assigned_team', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.Team')), ('assigned_to', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='assigned_to', to=settings.AUTH_USER_MODEL)), ('client', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='starter', to='app.Client')), ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Company')), ('followers', models.ManyToManyField(related_name='follows', to=settings.AUTH_USER_MODEL)), ('messages', models.ManyToManyField(to='app.Message')), ('tags', models.ManyToManyField(to='app.Tag')), ], ), migrations.AddField( model_name='client', name='company', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.Company'), ), migrations.AddField( model_name='user', name='company', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.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='team', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.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'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, 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')), ('name', models.CharField(max_length=10, verbose_name='姓名')), ('position', models.CharField(blank=True, max_length=20, verbose_name='职位')), ], options={ 'verbose_name': '用户', 'verbose_name_plural': '用户', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Department', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='部门名')), ('level', models.SmallIntegerField(verbose_name='级别')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mgmt.Department', verbose_name='上级部门')), ], options={ 'verbose_name': '部门', 'verbose_name_plural': '部门', }, ), migrations.CreateModel( name='Field', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='字段名')), ('alias', models.CharField(blank=True, default='', max_length=20, null=True, verbose_name='别名')), ('readme', models.TextField(blank=True, default='', null=True, verbose_name='自述')), ('type', models.SmallIntegerField(choices=[(0, 'string'), (1, 'integer'), (2, 'floating'), (3, 'datetime'), (4, 'date'), (5, 'boolean'), (6, 'Ip')], verbose_name='字段类型')), ('is_multi', models.BooleanField(default=False, verbose_name='是否为多值字段')), ('required', models.BooleanField(default=False, verbose_name='是否必填')), ], ), migrations.CreateModel( name='Permission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='权限名')), ('alias', models.CharField(max_length=100, verbose_name='权限别名')), ], options={ 'verbose_name': '权限', 'verbose_name_plural': '权限', }, ), migrations.CreateModel( name='Table', fields=[ ('name', models.CharField(max_length=20, primary_key=True, serialize=False, verbose_name='表名')), ('alias', models.CharField(max_length=20, null=True, unique=True, verbose_name='别名')), ('readme', models.TextField(blank=True, default='', verbose_name='自述')), ('creation_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='创建者')), ], ), migrations.AddField( model_name='field', name='table', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='fields', to='mgmt.Table', verbose_name='字段'), ), migrations.AddField( model_name='department', name='permissions', field=models.ManyToManyField(blank=True, related_name='departments', to='mgmt.Permission', verbose_name='所有权限'), ), migrations.AddField( model_name='user', name='departments', field=models.ManyToManyField(blank=True, related_name='users', to='mgmt.Department', verbose_name='部门集'), ), 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='permissions', field=models.ManyToManyField(blank=True, related_name='users', to='mgmt.Permission', verbose_name='权限集'), ), 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.AlterUniqueTogether( name='department', unique_together=set([('name', 'parent')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserGroup', fields=[ ('org_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=128, verbose_name='Name')), ('comment', models.TextField(blank=True, verbose_name='Comment')), ('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Date created')), ('created_by', models.CharField(blank=True, max_length=100, null=True)), ], options={ 'verbose_name': 'User group', 'ordering': ['name'], 'unique_together': {('org_id', 'name')}, }, ), 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')), ('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_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)), ('account_id', models.BigIntegerField( default=common.utils.common.generate_account_id, unique=True, verbose_name='Account ID')), ('username', models.CharField(max_length=128, unique=True, verbose_name='Username')), ('name', models.CharField(max_length=128, verbose_name='Name')), ('email', models.EmailField(max_length=128, unique=True, verbose_name='Email')), ('role', models.CharField(blank=True, choices=[('Admin', 'Administrator'), ('User', 'User'), ('App', 'Application'), ('Auditor', 'Auditor')], default='User', max_length=10, verbose_name='Role')), ('avatar', models.ImageField(null=True, upload_to='avatar', verbose_name='Avatar')), ('wechat', models.CharField(blank=True, max_length=128, verbose_name='Wechat')), ('phone', models.CharField(max_length=20, unique=True, verbose_name='Phone')), ('mfa_level', models.SmallIntegerField(choices=[(0, 'Disable'), (1, 'Enable'), (2, 'Force enable')], default=0, verbose_name='MFA')), ('otp_secret_key', common.fields.model.EncryptCharField(blank=True, max_length=128, null=True)), ('private_key', common.fields.model.EncryptTextField( blank=True, null=True, verbose_name='Private key')), ('public_key', common.fields.model.EncryptTextField( blank=True, null=True, verbose_name='Public key')), ('comment', models.TextField(blank=True, null=True, verbose_name='Comment')), ('is_first_login', models.BooleanField(default=True)), ('is_admin_set_password', models.BooleanField(default=False)), ('date_expired', models.DateTimeField( blank=True, db_index=True, default=common.utils.django.date_expired_default, null=True, verbose_name='Date expired')), ('created_by', models.CharField(blank=True, default='', max_length=30, verbose_name='Created by')), ('source', models.CharField(choices=[('local', 'Local'), ('ldap', 'LDAP/AD'), ('openid', 'OpenID'), ('radius', 'Radius')], default='local', max_length=30, verbose_name='Source')), ('date_password_last_updated', models.DateTimeField( auto_now_add=True, null=True, verbose_name='Date password last updated')), ('groups', models.ManyToManyField(blank=True, related_name='users', to='account.UserGroup', verbose_name='User group')), ('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', 'ordering': ['username'], }, bases=(account.models.user.AuthMixin, account.models.user.TokenMixin, account.models.user.RoleMixin, account.models.user.MFAMixin, models.Model), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='ChinAbout', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('comp_name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='公司名称(中文)')), ('en_comp_name', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='公司名称(英文)')), ('slug', models.SlugField(blank=True, help_text='根据name生成的,用于生成页面URL,必须唯一', max_length=255, null=True, unique=True, verbose_name='Slug')), ('title', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='公司简介标题(中文)')), ('en_title', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='公司简介标题(英文)')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='公司简介(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='公司简介(英文)')), ('comp_image', models.ImageField(blank=True, max_length=255, null=True, upload_to='company/%Y/%m', verbose_name='公司简介图片')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '品牌介绍', 'verbose_name_plural': '品牌介绍', 'db_table': 'chin_about', }, ), migrations.CreateModel( name='ChinAnimateType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(default='', max_length=30, verbose_name='动画名称')), ('class_name', models.CharField(default='flip', max_length=50, verbose_name='class样式名')), ('descr', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='动画描述')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '动画类型', 'verbose_name_plural': '动画类型', 'db_table': 'chin_animatetype', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinApplyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='姓名')), ('sex', models.CharField(choices=[('0', '男'), ('1', '女'), ('2', '保密'), ('3', '未知')], default=0, max_length=5, verbose_name='性别')), ('birthday', models.DateField(blank=True, default='', null=True, verbose_name='生日')), ('phone', models.CharField(max_length=11, verbose_name='电话')), ('email', models.EmailField(blank=True, default='', max_length=50, null=True, verbose_name='邮箱')), ('is_get', models.BooleanField(default=False, verbose_name='是否已领取')), ('is_inform', models.BooleanField(default=False, verbose_name='是否已通知')), ('state', models.SmallIntegerField(choices=[(0, '未中奖'), (1, '中奖')], default=0, verbose_name='是否中奖')), ('sort', models.IntegerField(default=1, verbose_name='排序')), ], options={ 'verbose_name': '用户抢券记录', 'verbose_name_plural': '用户抢券记录', 'db_table': 'chin_applyrecord', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinCompanyHistory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('timeline_title', models.CharField(blank=True, default='', max_length=20, null=True, unique=True, verbose_name='时间标题(中文)')), ('en_timeline_title', models.CharField(blank=True, default='', max_length=40, null=True, unique=True, verbose_name='时间标题(英文)')), ('title', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='标题(中文)')), ('en_title', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='标题(英文)')), ('breif', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='摘要(中文)')), ('en_breif', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='摘要(英文)')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='描述(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='描述(英文)')), ('cover_image_url', models.ImageField(blank=True, max_length=255, null=True, upload_to='company/%Y/%m', verbose_name='图片')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '发展历程', 'verbose_name_plural': '发展历程', 'db_table': 'chin_companyhistory', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinCooperation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('title', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='名称(中文)')), ('en_title', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='名称(英文)')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='内容(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='内容(英文)')), ('type', models.CharField(choices=[('0', '合作政策'), ('1', '项目优势'), ('2', '经销商问答'), ('3', '支持与服务')], default=0, max_length=10, verbose_name='类型')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '合作共赢', 'verbose_name_plural': '合作共赢', 'db_table': 'chin_cooperation', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinJobRecruit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('job_name', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='职位名称(中文)')), ('en_job_name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='职位名称(英文)')), ('slug', models.SlugField(blank=True, help_text='根据job_name生成的,用于生成页面URL,必须唯一', max_length=255, null=True, unique=True, verbose_name='Slug')), ('work_year', models.CharField(blank=True, default='', max_length=20, null=True, verbose_name='工作经验')), ('education', models.CharField(choices=[('0', '请选择'), ('1', '博士导师'), ('2', '博士后'), ('3', '博士'), ('4', '硕士'), ('5', '研究生'), ('6', '本科'), ('7', '大专'), ('8', '高中'), ('9', '初中'), ('10', '小学'), ('11', '其他')], default=0, max_length=10, verbose_name='学历')), ('work_prop', models.CharField(choices=[('0', '全职'), ('1', '兼职'), ('2', '自由职业'), ('3', '其他')], default=0, max_length=5, verbose_name='工作性质')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='招聘要求(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='招聘要求(英文)')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '工作机会', 'verbose_name_plural': '工作机会', 'db_table': 'chin_jobrecruit', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinKeywords', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('title', models.CharField(blank=True, default='', max_length=80, null=True, verbose_name='标题')), ('keyword', models.TextField(blank=True, default='', null=True, verbose_name='关键字')), ('descr', models.CharField(blank=True, default='', max_length=256, null=True, verbose_name='描述')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('sort', models.IntegerField(default=1, verbose_name='排序')), ], options={ 'verbose_name': '关键字管理', 'verbose_name_plural': '关键字管理', 'db_table': 'chin_keywords', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinNews', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('title', models.CharField(blank=True, default='', max_length=64, null=True, verbose_name='标题(中文)')), ('en_title', models.CharField(blank=True, default='', max_length=128, null=True, verbose_name='标题(英文)')), ('slug', models.SlugField(blank=True, help_text='根据title生成的,用于生成页面URL,必须唯一', max_length=255, null=True, unique=True, verbose_name='Slug')), ('brief', models.CharField(blank=True, default='', max_length=120, null=True, verbose_name='摘要(中文)')), ('en_brief', models.CharField(blank=True, default='', max_length=240, null=True, verbose_name='摘要(英文)')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='内容(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='内容(英文)')), ('read_count', models.IntegerField(default=0, verbose_name='浏览量')), ('cover_image_url', models.ImageField(blank=True, max_length=255, null=True, upload_to='news/%Y/%m', verbose_name='图片')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('type', models.CharField(choices=[('0', '新闻资讯'), ('1', '社会责任')], default=0, max_length=10, verbose_name='类型')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '新闻资讯|社会责任', 'verbose_name_plural': '新闻资讯|社会责任', 'db_table': 'chin_news', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinPartner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='名称(中文)')), ('en_name', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='名称(英文)')), ('logo', models.ImageField(blank=True, max_length=255, null=True, upload_to='partner/%Y/%m', verbose_name='Logo')), ('brief', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='简介(中文)')), ('en_brief', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='简介(英文)')), ('url', models.URLField(blank=True, max_length=255, null=True, verbose_name='链接')), ('address', models.CharField(max_length=100, verbose_name='地址')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '合作伙伴', 'verbose_name_plural': '合作伙伴', 'db_table': 'chin_partner', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinProductType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(blank=True, default='', max_length=30, null=True, verbose_name='类型名称(中文)')), ('en_name', models.CharField(blank=True, default='', max_length=30, null=True, verbose_name='类型名称(英文)')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('data_filter_name', models.CharField(default='*', max_length=20, verbose_name='数据类型标识')), ], options={ 'verbose_name': '产品类型', 'verbose_name_plural': '产品类型', 'db_table': 'chin_producttype', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinQuestion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(max_length=200, verbose_name='问题标题')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='问题描述')), ('type', models.SmallIntegerField(choices=[(-1, '不是问题'), (0, '浏览器问题'), (1, '操作系统问题'), (2, 'bug'), (3, '其他问题'), (4, '重复问题'), (5, '第三方问题')], default=-1, verbose_name='问题类型')), ('state', models.SmallIntegerField(choices=[(-1, '待解决'), (0, '未解决'), (1, '已解决'), (2, '延期处理'), (3, '不予处理'), (4, '需第三方处理')], default=-1, verbose_name='问题状态')), ('remark', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='备注')), ], options={ 'verbose_name': '问题汇总列表', 'verbose_name_plural': '问题汇总列表', 'db_table': 'chin_question', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinStory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('short_title', models.CharField(blank=True, default='', max_length=80, null=True, verbose_name='短板故事标题(中文)')), ('en_short_title', models.CharField(blank=True, default='', max_length=160, null=True, verbose_name='短板故事标题(英文)')), ('short_content', models.TextField(blank=True, default='', max_length=1000, null=True, verbose_name='短板故事(中文)')), ('en_short_content', models.TextField(blank=True, default='', max_length=2000, null=True, verbose_name='短板故事(英文)')), ('long_title', models.CharField(blank=True, default='', max_length=80, null=True, verbose_name='长板故事标题(中文)')), ('en_long_title', models.CharField(blank=True, default='', max_length=160, null=True, verbose_name='长板故事标题(英文)')), ('long_content', models.TextField(blank=True, default='', max_length=4000, null=True, verbose_name='长板故事(中文)')), ('en_long_content', models.TextField(blank=True, default='', max_length=8000, null=True, verbose_name='长板故事(英文)')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '秦始皇故事', 'verbose_name_plural': '秦始皇故事', 'db_table': 'chin_story', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinTableTemplate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(default='', max_length=30, verbose_name='名称')), ('file', models.FileField(max_length=255, upload_to='file/%Y/%m', verbose_name='文件')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '申请表格', 'verbose_name_plural': '申请表格', 'db_table': 'chin_tabletemplate', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinUserWateringRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('client_ip', models.GenericIPAddressField(default='127.0.0.1', verbose_name='客户端IP')), ('client_host', models.CharField(default='', max_length=100, verbose_name='客户端主机名')), ('client_port', models.IntegerField(default=0, verbose_name='客户端端口')), ('client_user_agent', models.CharField(default='', max_length=255, verbose_name='客户端浏览器')), ('server_ip', models.GenericIPAddressField(default='127.0.0.1', verbose_name='服务器IP')), ('server_host', models.CharField(default='', max_length=100, verbose_name='服务器主机名')), ('server_port', models.IntegerField(default=0, verbose_name='服务器端口')), ('init_amount', models.IntegerField(default=0, verbose_name='期初水量')), ('amount', models.IntegerField(default=0, verbose_name='本次水量')), ('final_amount', models.IntegerField(default=0, verbose_name='期末水量')), ], options={ 'verbose_name': '用户浇水记录', 'verbose_name_plural': '用户浇水记录', 'db_table': 'chin_userwateringrecord', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='ChinWateringQty', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('amount', models.IntegerField(default=0, verbose_name='水量余额')), ('total_amount', models.IntegerField(default=0, verbose_name='浇水总量')), ], options={ 'verbose_name': '浇水量余额表', 'verbose_name_plural': '浇水量余额表', 'db_table': 'chin_wateringqty', 'ordering': ['-create_time'], }, ), migrations.CreateModel( name='SysConfig', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('site_name', models.CharField(blank=True, default='', max_length=50, verbose_name='站点名称')), ('site_desc', models.CharField(blank=True, default='', max_length=150, verbose_name='站点描述')), ('site_author', models.CharField(blank=True, default='', max_length=100, verbose_name='作者')), ('site_company', models.CharField(blank=True, default=None, max_length=100, null=True, verbose_name='公司(中文)')), ('en_site_company', models.CharField(blank=True, default=None, max_length=200, null=True, verbose_name='公司(英文)')), ('address', models.CharField(blank=True, default=None, max_length=150, null=True, verbose_name='底部显示地址(中文)')), ('en_address', models.CharField(blank=True, default=None, max_length=300, null=True, verbose_name='底部显示地址(英文)')), ('telephone', models.CharField(max_length=15, verbose_name='底部显示电话')), ('email', models.EmailField(blank=True, default='', max_length=50, verbose_name='邮箱')), ('icp', models.CharField(blank=True, default='', max_length=256, verbose_name='备案号(中文)')), ('en_icp', models.CharField(blank=True, default='', max_length=256, verbose_name='备案号(英文)')), ('remark', models.CharField(blank=True, default='', max_length=200, verbose_name='备注')), ('logo_bottom', models.ImageField(blank=True, default='', null=True, upload_to='sys/%Y/%m', verbose_name='底部logo')), ('qrcode', models.ImageField(blank=True, default='', null=True, upload_to='sys/%Y/%m', verbose_name='二维码')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ], options={ 'verbose_name': '站点配置', 'verbose_name_plural': '站点配置', 'db_table': 'sys_config', }, ), migrations.CreateModel( name='SysNav', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('code', models.CharField(default='', max_length=20, verbose_name='标识')), ('name', models.CharField(blank=True, default='', max_length=50, null=True, verbose_name='名称(中文)')), ('en_name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='名称(英文)')), ('url', models.CharField(max_length=200, verbose_name='链接')), ('remark', models.CharField(blank=True, max_length=300, verbose_name='描述')), ('is_root', models.BooleanField(default=True, verbose_name='是否一级菜单')), ('is_delete', models.BooleanField(default=False, verbose_name='是否删除')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('parent', models.ForeignKey(blank=True, default=0, limit_choices_to={'is_delete': False, 'is_root': True}, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='home.SysNav', verbose_name='父级')), ], options={ 'verbose_name': '导航菜单管理', 'verbose_name_plural': '导航菜单管理', 'db_table': 'sys_nav', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinProduct', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('name', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='产品名称(中文)')), ('en_name', models.CharField(blank=True, default='', max_length=200, null=True, verbose_name='产品名称(英文)')), ('slug', models.SlugField(blank=True, help_text='根据name生成的,用于生成页面URL,必须唯一', max_length=255, null=True, unique=True, verbose_name='Slug')), ('brief', models.CharField(blank=True, default='', max_length=40, null=True, verbose_name='产品摘要(中文)')), ('en_brief', models.CharField(blank=True, default='', max_length=80, null=True, verbose_name='产品摘要(英文)')), ('content', models.TextField(blank=True, default='', null=True, verbose_name='产品描述(中文)')), ('en_content', models.TextField(blank=True, default='', null=True, verbose_name='产品描述(英文)')), ('mall_url', models.URLField(blank=True, default='', null=True, verbose_name='在线商城地址')), ('cover_image_url', models.ImageField(blank=True, max_length=255, null=True, upload_to='product/%Y/%m', verbose_name='图片')), ('read_count', models.IntegerField(default=0, verbose_name='浏览量')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_recommand', models.BooleanField(default=True, verbose_name='是否推荐')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('product_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='home.ChinProductType', verbose_name='产品类型')), ], options={ 'verbose_name': '品牌产品', 'verbose_name_plural': '品牌产品', 'db_table': 'chin_product', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinIndexPlate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('title', models.CharField(blank=True, default='', max_length=8, null=True, verbose_name='板块标题(中文)')), ('en_title', models.CharField(blank=True, default='', max_length=16, null=True, verbose_name='板块标题(英文)')), ('plate_image_url', models.ImageField(blank=True, max_length=255, null=True, upload_to='index_plate/%Y/%m', verbose_name='图标')), ('front_image', models.ImageField(blank=True, max_length=255, null=True, upload_to='index_plate/%Y/%m', verbose_name='正面图')), ('back_image', models.ImageField(blank=True, max_length=255, null=True, upload_to='index_plate/%Y/%m', verbose_name='背面图')), ('descr', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='简介(中文)')), ('en_descr', models.CharField(blank=True, default='', max_length=100, null=True, verbose_name='简介(英文)')), ('is_redirect_sub_page', models.BooleanField(default=True, verbose_name='是否跳转到子页面')), ('sub_page_url', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='子页面地址')), ('video_source', models.FileField(blank=True, default='', max_length=200, null=True, upload_to='media/%Y/%m', verbose_name='视频文件地址')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('animate_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='home.ChinAnimateType', verbose_name='动画类型')), ], options={ 'verbose_name': '首页板块', 'verbose_name_plural': '首页板块', 'db_table': 'chin_indexplate', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('image_url', models.ImageField(blank=True, default='', null=True, upload_to='banner/%Y/%m', verbose_name='图片')), ('text', models.CharField(blank=True, default='', max_length=150, null=True, verbose_name='Banner上文本描述(中文)')), ('en_text', models.CharField(blank=True, default='', max_length=300, null=True, verbose_name='Banner上文本描述(英文)')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('nav', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='navs', related_query_name='nav_query', to='home.SysNav', verbose_name='Banner页面')), ], options={ 'verbose_name': 'Banner管理', 'verbose_name_plural': 'Banner管理', 'db_table': 'chin_banner', 'ordering': ['nav', 'sort', '-create_time'], }, ), migrations.CreateModel( name='ChinAboutResource', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('operate_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='操作人名称')), ('operate_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='操作人ID')), ('create_username', models.CharField(auto_created=True, default='admin', max_length=30, verbose_name='创建人名称')), ('create_uid', models.IntegerField(auto_created=True, default=123456789, verbose_name='创建人ID')), ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间')), ('operate_time', models.DateTimeField(auto_now=True, verbose_name='操作时间')), ('type_code', models.PositiveSmallIntegerField(choices=[(1, '企业文化'), (2, '品牌荣誉'), (3, '企业资质'), (4, '团队风采'), (5, '品牌故事'), (6, '组织架构')], default=0, verbose_name='图片业务类型')), ('image_url', models.ImageField(blank=True, default='', null=True, upload_to='company/%Y/%m', verbose_name='图片')), ('sort', models.IntegerField(default=0, verbose_name='排序')), ('is_enable', models.BooleanField(default=True, verbose_name='是否启用')), ('about', models.ForeignKey(blank=True, default='', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='about_resource', related_query_name='about', to='home.ChinAbout', verbose_name='品牌介绍')), ], options={ 'verbose_name': '品牌介绍图片资源', 'verbose_name_plural': '品牌介绍图片资源', 'db_table': 'chin_aboutresource', 'ordering': ['sort', '-create_time'], }, ), migrations.CreateModel( name='ChinUserProfile', 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')), ('avatar', models.ImageField(default='avatar/default.png', max_length=200, upload_to='avatar/%Y/%m', verbose_name='用户头像')), ('qq', models.CharField(blank=True, max_length=20, null=True, verbose_name='QQ')), ('phone', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name='手机号')), ('nick_name', models.CharField(max_length=30, 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': '用户', 'db_table': 'chin_userprofile', 'ordering': ['-id'], 'abstract': False, 'swappable': 'AUTH_USER_MODEL', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]