class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(blank=True, max_length=300)), ('date', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='NewsPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('post_header', models.CharField(max_length=30)), ('post_text', models.TextField(blank=True)), ('post_date', models.DateTimeField(auto_now_add=True)), ('post_source', models.URLField(blank=True, null=True)), ('post_comments', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ZNEWS.Comment')), ], ), migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo_name', models.CharField(blank=True, max_length=120, null=True)), ('image', sorl.thumbnail.fields.ImageField(default='', upload_to='media')), ('link', models.URLField(blank=True, null=True)), ], ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('video_name', models.CharField(blank=True, max_length=255, null=True)), ('link', models.URLField(blank=True, null=True)), ], ), migrations.CreateModel( name='NSuser', 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')), ('phone_number', phonenumber_field.modelfields.PhoneNumberField(max_length=128, null=True, unique=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('photo', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ZNEWS.Photo')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name_plural': 'users', 'verbose_name': 'user', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AddField( model_name='newspost', name='post_photos', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ZNEWS.Photo'), ), migrations.AddField( model_name='newspost', name='post_videos', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ZNEWS.Video'), ), migrations.AddField( model_name='comment', name='user', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('countries_plus', '0005_auto_20160224_1804'), ('auth', '0009_alter_user_last_name_max_length'), ('languages_plus', '0004_auto_20171214_0004'), ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=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')), ('country', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='countries_plus.Country')), ('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')), ('language', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='languages_plus.Language')), ('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', 'abstract': False, 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Authority', fields=[ ('ref', models.CharField(max_length=20, primary_key=True, serialize=False)), ('name', models.CharField(max_length=60, unique=True)), ('url', models.URLField(blank=True, null=True)), ('notes', markupfield.fields.MarkupField(blank=True, null=True, rendered_field=True)), ('notes_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', editable=False, max_length=30)), ('_notes_rendered', models.TextField(editable=False, null=True)), ], ), migrations.CreateModel( name='Enum', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Created Date')), ('updated', models.DateTimeField(blank=True, db_index=True, editable=False, null=True, verbose_name='Updated Date')), ('ref', models.CharField(max_length=20)), ('name', models.CharField(max_length=60)), ('status', models.PositiveSmallIntegerField(choices=[(0, 'Incomplete'), (1, 'Proposed'), (3, 'Draft'), (6, 'Approved')], default=1)), ('ordering', models.CharField(default='0', max_length=10)), ('notes', markupfield.fields.MarkupField(blank=True, null=True, rendered_field=True)), ('notes_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', editable=False, max_length=30)), ('_notes_rendered', models.TextField(editable=False, null=True)), ('authority', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Authority')), ('creator', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enum_creator', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['ordering', 'ref'], 'verbose_name': 'Enum Item', }, ), migrations.CreateModel( name='EnumDisplay', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Created Date')), ('updated', models.DateTimeField(blank=True, db_index=True, editable=False, null=True, verbose_name='Updated Date')), ('display', models.CharField(max_length=100)), ('abbreviation', models.CharField(blank=True, max_length=10, null=True)), ('symbol', models.CharField(blank=True, max_length=10, null=True)), ('notes', markupfield.fields.MarkupField(blank=True, null=True, rendered_field=True)), ('notes_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', editable=False, max_length=30)), ('_notes_rendered', models.TextField(editable=False, null=True)), ('creator', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enumdisplay_creator', to=settings.AUTH_USER_MODEL)), ('culture', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='languages_plus.CultureCode')), ('enum', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Enum')), ('language', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='languages_plus.Language')), ('updator', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enumdisplay_updator', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Enum Output/Display', }, ), migrations.CreateModel( name='EnumType', fields=[ ('created', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Created Date')), ('updated', models.DateTimeField(blank=True, db_index=True, editable=False, null=True, verbose_name='Updated Date')), ('ref', models.CharField(max_length=20, primary_key=True, serialize=False)), ('name', models.CharField(max_length=60, unique=True)), ('status', models.PositiveSmallIntegerField(choices=[(0, 'Deprecated'), (1, 'Proposed'), (3, 'Draft'), (6, 'Approved')], default=1)), ('notes', markupfield.fields.MarkupField(blank=True, null=True, rendered_field=True)), ('notes_markup_type', models.CharField(choices=[('', '--'), ('markdown', 'markdown')], default='markdown', editable=False, max_length=30)), ('_notes_rendered', models.TextField(editable=False, null=True)), ('creator', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enumtype_creator', to=settings.AUTH_USER_MODEL)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='web.EnumType')), ('updator', models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enumtype_updator', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Enum Grouping', }, ), migrations.AddField( model_name='enum', name='enumtype', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='web.EnumType'), ), migrations.AddField( model_name='enum', name='updator', field=models.ForeignKey( blank=True, editable=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='web_enum_updator', to=settings.AUTH_USER_MODEL), ), migrations.AlterUniqueTogether( name='enum', unique_together={('enumtype', 'authority', 'ref')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='Ouser', 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')), ('link', models.URLField(blank=True, help_text='提示:网址必须填写以http开头的完整形式', verbose_name='个人网址')), ('avatar', imagekit.models.fields.ProcessedImageField( default='avatar/default.png', upload_to='avatar/%Y/%m/%d', 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': ['-id'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('info', '__first__'), ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company', models.CharField(max_length=256, unique=True)), ('description', models.TextField()), ('link', models.URLField(blank=True, max_length=256)), ('city', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='info.cities')), ], ), migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('is_recruiter', models.BooleanField(default=False)), ('avatar', models.ImageField(blank=True, upload_to='users/avatars/%Y/%m/%d/')), ('telephone', models.CharField( blank=True, max_length=17, validators=[ django.core.validators.RegexValidator( message= "Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$') ])), ('github', models.URLField(blank=True, max_length=256)), ('salary_expectation', models.PositiveIntegerField(default=0)), ('work_experience_range', models.PositiveIntegerField( default=0, validators=[ django.core.validators.MaxValueValidator(40), django.core.validators.MinValueValidator(0) ])), ('work_experience_text', models.TextField(blank=True)), ('work_expectation', models.TextField(blank=True)), ('resume', models.FileField(blank=True, upload_to='users/resumes/%Y/%m/%d/')), ('city', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='info.cities')), ('company', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='accounts.company')), ('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')), ('skills', models.ManyToManyField(blank=True, to='info.Skills')), ('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')), ('work_category', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='info.workcategory')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Actor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Director', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Genre', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Membership', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('duration', models.IntegerField()), ('price', models.CharField(max_length=50)), ('Resolution', models.IntegerField()), ('no_of_Active_Screens', models.IntegerField()), ], ), migrations.CreateModel( name='Prize', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Producer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Show', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('show_type', models.CharField(max_length=50)), ('story', models.TextField()), ('country', models.CharField(max_length=50)), ('duration', models.DurationField()), ('production_Date', models.DateField()), ('rating', models.FloatField()), ('classification', models.CharField(max_length=50)), ('publish_Date', models.DateField()), ('video_Source', models.URLField()), ('poster', models.URLField()), ('language', models.CharField(max_length=50)), ('actors', models.ManyToManyField(to='Netflix.Actor')), ('authors', models.ManyToManyField(to='Netflix.Author')), ('directors', models.ManyToManyField(to='Netflix.Director')), ('genres', models.ManyToManyField(to='Netflix.Genre')), ('prizes', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Netflix.prize')), ('producers', models.ManyToManyField(to='Netflix.Producer')), ], ), migrations.CreateModel( name='Profile', 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')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('username', models.CharField(max_length=50, unique=True)), ('first_name', models.CharField(max_length=255)), ('last_name', models.CharField(max_length=255)), ('password', models.CharField(max_length=255)), ('email', models.EmailField(max_length=254)), ('phone', models.CharField(max_length=255)), ('country', models.CharField(max_length=100)), ('birth_date', models.DateField()), ('gender', models.CharField(max_length=50)), ('register_date', models.DateField(auto_now_add=True)), ('avatar', models.TextField(null=True)), ('payment_day', models.IntegerField()), ('membership_Start_Date', models.DateField()), ('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')), ('membership', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='Netflix.membership')), ('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='WatchLater', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Show_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Netflix.show')), ('User_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Watched', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('User_Rating', models.IntegerField()), ('Show_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Netflix.show')), ('User_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Watch', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Date', models.DateField()), ('Current_Duration', models.DurationField()), ('User_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('show_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Netflix.show')), ], ), migrations.CreateModel( name='Subscribe', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start_date', models.DateTimeField()), ('payment_date', models.DateTimeField()), ('membership', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Netflix.membership')), ('user', 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')), ('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')), ('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')), ('picture_id', models.CharField(blank=True, default='', max_length=12)), ('student_id', models.CharField(blank=True, default='', max_length=9)), ('phone', models.CharField(blank=True, max_length=30, null=True)), ('email', models.EmailField(blank=True, default='', max_length=254)), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'User', 'managed': True, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Distractor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(blank=True, null=True)), ('legacy_question_id', models.IntegerField(blank=True, null=True)), ('sequence', models.IntegerField(blank=True, null=True)), ('correct', models.NullBooleanField()), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(blank=True, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'Distractor', 'managed': True, }, ), migrations.CreateModel( name='Enrollment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'Enrollment', 'managed': True, }, ), migrations.CreateModel( name='LearningContext', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150, null=True)), ('short_code', models.CharField(blank=True, max_length=25, null=True)), ('number', models.CharField(blank=True, max_length=25, null=True)), ('active', models.NullBooleanField()), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(blank=True, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'LearningContext', 'managed': True, }, ), migrations.CreateModel( name='LearningContextStructure', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('child_context', models.ForeignKey( db_column='learning_context_child_id', default=1, on_delete=django.db.models.deletion.DO_NOTHING, related_name='parent_context', to='db.LearningContext')), ('parent_context', models.ForeignKey( db_column='learning_context_parent_id', default=1, on_delete=django.db.models.deletion.DO_NOTHING, related_name='child_context', to='db.LearningContext')), ], options={ 'db_table': 'LearningContextStructure', 'managed': True, }, ), migrations.CreateModel( name='LearningContextTerm', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('override_start_date', models.DateTimeField(blank=True, null=True)), ('override_end_date', models.DateTimeField(blank=True, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('learning_context', models.ForeignKey( db_column='learning_context_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.LearningContext')), ], options={ 'db_table': 'LearningContextTerm', 'managed': True, }, ), migrations.CreateModel( name='LearningContextType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', models.CharField(blank=True, max_length=50, null=True)), ('description', models.CharField(blank=True, max_length=150, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'LearningContextType', 'managed': True, }, ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sequence', models.IntegerField(blank=True, null=True)), ('weight', models.IntegerField(blank=True, null=True)), ('text', models.TextField(blank=True, null=True)), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(blank=True, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'Question', 'managed': True, }, ), migrations.CreateModel( name='QuestionResponse', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('score', models.FloatField(blank=True, null=True)), ('graded', models.NullBooleanField()), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField( default="{response: ''}")), ('question', models.ForeignKey( db_column='question_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Question')), ], options={ 'db_table': 'QuestionResponse', 'managed': True, }, ), migrations.CreateModel( name='QuestionSet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=40, null=True)), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'QuestionSet', 'managed': True, }, ), migrations.CreateModel( name='QuestionSetAssociation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('learning_context', models.ForeignKey( db_column='learning_context_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.LearningContext')), ('question_set', models.ForeignKey( db_column='question_set_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.QuestionSet')), ], options={ 'db_table': 'QuestionSetAssociation', 'managed': True, }, ), migrations.CreateModel( name='QuestionSetQuestion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question', models.ForeignKey( db_column='question_id', on_delete=django.db.models.deletion.DO_NOTHING, related_name='questionsets', to='db.Question')), ('question_set', models.ForeignKey( db_column='question_set_id', on_delete=django.db.models.deletion.DO_NOTHING, related_name='questionset_questions', to='db.QuestionSet')), ], options={ 'db_table': 'QuestionSetQuestion', 'managed': True, }, ), migrations.CreateModel( name='QuestionType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=30, null=True)), ('template', models.TextField(blank=True, null=True)), ], options={ 'db_table': 'QuestionType', 'managed': True, }, ), migrations.CreateModel( name='Result', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start_time', models.DateTimeField(blank=True, null=True)), ('duration', models.IntegerField(blank=True, null=True)), ('score', models.FloatField(blank=True, null=True)), ('score_sent', models.DateTimeField(blank=True, null=True)), ('archived', models.NullBooleanField()), ], options={ 'db_table': 'Result', 'managed': True, }, ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=30, null=True)), ('rights', jsoneditor.fields.postgres_jsonfield.JSONField(default='[]')), ], options={ 'db_table': 'Role', 'managed': True, }, ), migrations.CreateModel( name='SecurityAttributes', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('attribute', models.CharField(max_length=100)), ('value', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], ), migrations.CreateModel( name='SecurityAuditLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip_address', models.GenericIPAddressField()), ('url', models.URLField()), ('action', models.CharField(blank=True, default='', max_length=100)), ('params', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('time', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey( db_column='user_id', on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Site', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=30, null=True)), ('location', models.CharField(blank=True, max_length=80, null=True)), ('description', models.TextField(blank=True, null=True)), ('size', models.SmallIntegerField(blank=True, null=True)), ('require_checkin', models.NullBooleanField()), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(blank=True, null=True)), ], options={ 'db_table': 'Site', 'managed': True, }, ), migrations.CreateModel( name='SiteComputer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=30, null=True)), ('certificate', models.TextField(blank=True, null=True)), ('active', models.NullBooleanField()), ('site', models.ForeignKey( db_column='site_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Site')), ], options={ 'db_table': 'SiteComputer', 'managed': True, }, ), migrations.CreateModel( name='Term', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=60, null=True)), ('term_code', models.CharField(blank=True, max_length=25, null=True, unique=True)), ('start_date', models.DateTimeField(blank=True, null=True)), ('end_date', models.DateTimeField(blank=True, null=True)), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'Term', 'managed': True, }, ), migrations.CreateModel( name='Test', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=150, null=True)), ('created', models.DateTimeField(auto_now_add=True)), ('archived', models.NullBooleanField()), ('settings', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ('meta', jsoneditor.fields.postgres_jsonfield.JSONField(default='{}')), ], options={ 'db_table': 'Test', 'managed': True, }, ), migrations.CreateModel( name='TestAssociation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('exam', models.ForeignKey( db_column='test_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Test')), ('learning_context', models.ForeignKey( db_column='learning_context_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.LearningContext')), ], options={ 'db_table': 'TestAssociation', 'managed': True, }, ), migrations.CreateModel( name='TestQuestionSet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('question_set', models.ForeignKey( db_column='question_set_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.QuestionSet')), ('test', models.ForeignKey( db_column='test_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Test')), ], options={ 'db_table': 'TestQuestionSet', 'managed': True, }, ), migrations.CreateModel( name='TestType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=40, null=True)), ('description', models.TextField(blank=True, null=True)), ], options={ 'db_table': 'TestType', 'managed': True, }, ), migrations.CreateModel( name='Tokens', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.CharField(max_length=256)), ('expires', models.DateTimeField()), ('rights', jsoneditor.fields.postgres_jsonfield.JSONField(default='[]')), ('restrictions', jsoneditor.fields.postgres_jsonfield.JSONField( default= "{ 'ip': 'Any', 'host':'Any', 'certificate':'Any', 'user_id': 0, 'learningcontext_id': 0 }" )), ], ), migrations.AddField( model_name='test', name='questionsets', field=models.ManyToManyField(related_name='tests', through='db.TestQuestionSet', to='db.QuestionSet'), ), migrations.AddField( model_name='test', name='test_type', field=models.ForeignKey( db_column='test_type_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.TestType'), ), migrations.AddField( model_name='result', name='site', field=models.ForeignKey( db_column='site_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Site'), ), migrations.AddField( model_name='result', name='test', field=models.ForeignKey( db_column='test_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Test'), ), migrations.AddField( model_name='result', name='user', field=models.ForeignKey( db_column='user_id', on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='questionset', name='questions', field=models.ManyToManyField(related_name='questions', through='db.QuestionSetQuestion', to='db.Question'), ), migrations.AddField( model_name='questionresponse', name='result', field=models.ForeignKey( db_column='result_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Result'), ), migrations.AddField( model_name='question', name='question_type', field=models.ForeignKey( db_column='question_type_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.QuestionType'), ), migrations.AddField( model_name='learningcontextterm', name='term', field=models.ForeignKey( db_column='term_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.Term'), ), migrations.AddField( model_name='learningcontext', name='exams', field=models.ManyToManyField(related_name='learningcontexts', through='db.TestAssociation', to='db.Test'), ), migrations.AddField( model_name='learningcontext', name='learning_context_type', field=models.ForeignKey( db_column='learning_context_type_id', on_delete=django.db.models.deletion.DO_NOTHING, to='db.LearningContextType'), ), migrations.AddField( model_name='learningcontext', name='question_sets', field=models.ManyToManyField(through='db.QuestionSetAssociation', to='db.QuestionSet'), ), migrations.AddField( model_name='distractor', name='question', field=models.ForeignKey( db_column='question_id', on_delete=django.db.models.deletion.DO_NOTHING, related_name='distractors', to='db.Question'), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
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')), ('phone', models.FloatField(default=0.0)), ('isDonar', models.BooleanField(default=False)), ('isNGO', 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='Donar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Address', models.TextField(max_length=1000)), ('country', models.CharField(max_length=100)), ('pincode', models.IntegerField()), ('user_donar', models.OneToOneField( default='', on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Equipments', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('eqi_name', models.CharField(max_length=200)), ('Price', models.FloatField()), ('image', models.ImageField(default='', upload_to='')), ], ), migrations.CreateModel( name='NGO', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ngo_Address', models.TextField(max_length=1000)), ('country', models.CharField(max_length=100)), ('pincode', models.IntegerField()), ('weblink', models.URLField()), ('user_ngo', models.OneToOneField( default='', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Requirements', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Quantity', models.IntegerField()), ('eqi_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Equipments')), ('ngo_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.NGO')), ], ), migrations.CreateModel( name='Donations', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Quantity', models.IntegerField()), ('eqi_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Equipments')), ('ngo_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.NGO')), ('user_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Donar')), ], ), ]
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')), ('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')), ('nickname', models.CharField(blank=True, max_length=100, null=True, verbose_name='닉네임')), ('age', models.PositiveIntegerField(blank=True, null=True, verbose_name='나이')), ('job', models.CharField(blank=True, max_length=100, null=True, verbose_name='직업')), ('gender', models.CharField(blank=True, choices=[('male', '남성'), ('female', '여성'), ('none', '선택하지않음')], max_length=20, null=True)), ('username', models.CharField(blank=True, max_length=150, null=True, verbose_name='이름')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Candidate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('num', models.PositiveIntegerField(verbose_name='후보자번호')), ('name', models.CharField(max_length=100, verbose_name='후보자이름')), ('poster', models.ImageField(blank=True, upload_to='profile_image/%Y/%m/%d', verbose_name='프로필 이미지')), ('url', models.URLField(blank=True, verbose_name='온라인공약집링크')), ], ), migrations.CreateModel( name='Quiz', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('num', models.PositiveIntegerField(verbose_name='질문 번호')), ('question', models.TextField(verbose_name='질문')), ('background', models.TextField(verbose_name='질문에 대한 배경 설명')), ], ), migrations.CreateModel( name='Example', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('num', models.PositiveIntegerField(verbose_name='선택지 번호')), ('title', models.TextField(verbose_name='선택지')), ('is_answer', models.BooleanField(default=False)), ('quiz', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='examples', to='vote.quiz', verbose_name='질문')), ], ), migrations.CreateModel( name='Enrollment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('num', models.PositiveIntegerField(verbose_name='질문 번호')), ('example', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enrollments', to='vote.example', verbose_name='선택한 선택지')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enrollments', to=settings.AUTH_USER_MODEL, verbose_name='유저')), ], ), migrations.AddField( model_name='user', name='result', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='vote.candidate'), ), 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='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=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')), ('tagline', models.CharField(max_length=200)), ('bio', models.TextField()), ('profile_pic', models.URLField()), ('favorite_genre', models.CharField(choices=[ ('Anything', 'NA'), ('Young Adult', 'YA'), ('Romance', 'RO'), ('Fantasy', 'FA'), ('Sci-Fi', 'SF'), ('Non-Fiction', 'NF'), ('Graphic Novels & Comics', 'GN'), ('Mystery', 'MY'), ('Historical Fiction', 'HF'), ('Horror', 'HO'), ('Thriller', 'TH'), ('Poetry', 'PO') ], max_length=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': '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='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')), ('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(default='', max_length=200, verbose_name='用户微信唯一ID')), ('avatarUrl', models.URLField(default='', max_length=500, verbose_name='用户微信头像')), ('country', models.CharField(default='', max_length=100, verbose_name='用户微信国家')), ('user_bh', models.CharField(default='e3f856169cae440ebe8f433924473524', max_length=50, unique=True, verbose_name='用户唯一ID')), ('province', models.CharField(default='', max_length=100, verbose_name='用户微信城市')), ('city', models.CharField(default='', max_length=100, verbose_name='用户微信区域')), ('language', models.CharField(default='', max_length=100, verbose_name='用户微信语言')), ('background', models.ImageField( blank=True, default='/default/default.jpg', null=True, upload_to= 'UserProFilebg/%Y/%m/5c0c1a91838246b79641b7cf3f3c0fa1', verbose_name='背景图')), ('nickName', models.CharField(max_length=20, verbose_name='微信用户名')), ('name', models.CharField(max_length=20, verbose_name='用户名')), ('birthay', models.DateField(default=datetime.datetime.now, verbose_name='出生日期')), ('avatar', models.ImageField( blank=True, null=True, upload_to= 'UserProFilebg/avatar/%y/%d/5c0c1a91838246b79641b7cf3f3c0fa1' )), ('mobile', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号')), ('gender', models.CharField(choices=[('2', '女'), ('1', '男')], default='1', max_length=10, verbose_name='性别')), ('thesignature', models.TextField(default='世界为你转身,因为你肯冒险!', max_length=200, verbose_name='用户签名')), ('agreement', models.BooleanField(default=False, verbose_name='是否阅读协议')), ('email', models.EmailField(blank=True, max_length=100, null=True, verbose_name='邮箱')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='注册时间')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': '用户管理', 'verbose_name_plural': '用户管理', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='Usuario', 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.ASCIIUsernameValidator()], 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')), ('is_administrador', models.BooleanField(default=False, verbose_name='Administrador')), ('is_psicologo', models.BooleanField(default=False, verbose_name='Psicologo')), ('is_estudiante', models.BooleanField(default=False, verbose_name='Estudiante')), ('tipo_docto', models.CharField(choices=[('CEDULA CUIDADANIA', 'CEDULA CUIDADANIA'), ('CEDULA EXTRANJERIA', 'CEDULA EXTRANJERIA'), ('PASAPORTE', 'PASAPORTE'), ('TARJETA IDENTIDAD', 'TARJETA IDENTIDAD')], max_length=20, verbose_name='Tipo documento')), ('no_docto', models.CharField(max_length=20, verbose_name='Numero documento')), ('fecha_nac', models.DateField(null=True, verbose_name='Fecha nacimiento')), ('genero', models.CharField(choices=[('HETEROSEXUAL', 'HETEROSEXUAL'), ('HOMOSEXUAL', 'HOMOSEXUAL'), ('LESBIANA', 'LESBIANA'), ('BISEXUAL', 'BISEXUAL'), ('INDIFERENCIADO', 'INDIFERENCIADO')], max_length=20, verbose_name='Genero')), ('direccion', models.CharField(max_length=100, verbose_name='Direccion')), ('telefono', models.CharField(max_length=15, verbose_name='Telefono')), ], options={ 'db_table': 'auth_user', 'verbose_name': 'Usuario', 'verbose_name_plural': 'Usuarios', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Grupo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('jornada', models.CharField(choices=[('MANANA', 'MANANA'), ('TARDE', 'TARDE'), ('UNICA', 'UNICA'), ('NOCTURNA', 'NOCTURNA'), ('SABATINA', 'SABATINA')], max_length=200)), ('grado', models.CharField(choices=[('PRIMARIA', (('0', 'CERO'), ('1', 'PRIMERO'), ('2', 'SEGUNDO'), ('3', 'TERCERO'), ('4', 'CUARTO'), ('5', 'QUINTO'))), ('SECUNDARIA', (('6', 'SEXTO'), ('7', 'SEPTIMO'), ('8', 'OCTAVO'), ('9', 'NOVENO'), ('10', 'DECIMO'), ('11', 'UNDECIMO')))], max_length=200)), ('nombre', models.CharField(max_length=200)), ('is_active', models.BooleanField(default=True, verbose_name='Activar')), ], options={ 'verbose_name': 'Grupo', 'verbose_name_plural': 'Grupos', }, ), migrations.CreateModel( name='Institucion', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nit', models.CharField(max_length=200, unique=True, verbose_name='NIT')), ('nombre', models.CharField(max_length=200)), ('direccion', models.CharField(max_length=200)), ('telefono', models.CharField(max_length=200)), ('ciudad', models.CharField(max_length=200)), ('web', models.URLField(verbose_name='Sitio web')), ('is_active', models.BooleanField(default=True, verbose_name='Activar')), ], options={ 'verbose_name': 'Institucion', 'verbose_name_plural': 'Instituciones', }, ), migrations.CreateModel( name='PreguntaTestTI', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pregunta', models.CharField(max_length=200)), ('numero', models.IntegerField(unique=True)), ], options={ 'verbose_name': 'Pregunta Test TI', 'verbose_name_plural': 'Preguntas Test TI', }, ), migrations.CreateModel( name='RespuestaEstudiante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('pregunta', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.PreguntaTestTI')), ], options={ 'verbose_name': 'Test Asignado', 'verbose_name_plural': 'Tests Asignados', }, ), migrations.CreateModel( name='RespuestaTestTI', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('respuesta', models.CharField(max_length=200)), ('pregunta', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.PreguntaTestTI')), ], options={ 'verbose_name': 'Respuesta Test TI', 'verbose_name_plural': 'Respuestas Test TI', }, ), migrations.CreateModel( name='TestAsignado', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ 'verbose_name': 'Test Asignado', 'verbose_name_plural': 'Tests Asignados', }, ), migrations.CreateModel( name='TestTI', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nombre', models.CharField(max_length=200)), ], options={ 'verbose_name': 'Test TI', 'verbose_name_plural': 'Tests TI', }, ), migrations.CreateModel( name='Administrador', fields=[ ('usuario_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)), ], options={ 'verbose_name': 'Administrador', 'verbose_name_plural': 'Administradores', }, bases=('ptti.usuario',), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Estudiante', fields=[ ('usuario_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)), ], options={ 'verbose_name': 'Estudiante', 'verbose_name_plural': 'Estudiantes', }, bases=('ptti.usuario',), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Psicologo', fields=[ ('usuario_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)), ], options={ 'verbose_name': 'Psicologo', 'verbose_name_plural': 'Psicologos', }, bases=('ptti.usuario',), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.AddField( model_name='testasignado', name='test', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.TestTI'), ), migrations.AddField( model_name='respuestaestudiante', name='respuesta', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.RespuestaTestTI'), ), migrations.AddField( model_name='respuestaestudiante', name='test', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.TestAsignado'), ), migrations.AddField( model_name='preguntatestti', name='test', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.TestTI'), ), migrations.AddField( model_name='grupo', name='institucion', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.Institucion'), ), migrations.AddField( model_name='usuario', 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='usuario', 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.AddField( model_name='testasignado', name='estudiante', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.Estudiante'), ), migrations.AddField( model_name='grupo', name='psicologo', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.Psicologo'), ), migrations.AddField( model_name='estudiante', name='grupo', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ptti.Grupo'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] 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. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True, validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.')], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=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')), ('uid', models.CharField(blank=True, max_length=100, unique=True)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='FavoriteFolder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_one_id', models.IntegerField()), ('user_two_id', models.IntegerField()), ('actionuser', models.IntegerField()), ('status', models.IntegerField(verbose_name=[0, 1, 2, 3])), ], ), migrations.CreateModel( name='Feedback', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('body', models.CharField(blank=True, default=b'', max_length=500)), ], ), migrations.CreateModel( name='Hatsoff', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user_one_id', models.IntegerField()), ('user_two_id', models.IntegerField()), ('actionuser', models.IntegerField()), ('status', models.IntegerField(verbose_name=[0, 1, 2, 3])), ], ), migrations.CreateModel( name='Profession', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('skill', models.CharField(max_length=30, unique=True)), ('count', models.IntegerField(default=0, null=True)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo', models.ImageField(blank=True, default=b'photoimg/profileimage.png', upload_to=b'photoimg/')), ('displayname', models.CharField(blank=True, default=b'', max_length=100)), ('profession1', models.CharField(blank=True, default=b'', max_length=200)), ('profession2', models.CharField(blank=True, default=b'', max_length=200)), ('profession3', models.CharField(blank=True, default=b'', max_length=200)), ('profession4', models.CharField(blank=True, default=b'', max_length=200)), ('profession5', models.CharField(blank=True, default=b'', max_length=200)), ('worksAt', models.CharField(blank=True, default=b'', max_length=100)), ('city', models.CharField(blank=True, default=b'', max_length=100)), ('education', models.CharField(blank=True, default=b'', max_length=200)), ('birthyear', models.DateTimeField(blank=True, null=True)), ('birthdate', models.DateTimeField(blank=True, null=True)), ('language', models.CharField(blank=True, default=b'', max_length=100)), ('describe', models.CharField(blank=True, default=b'', max_length=80)), ('skill1', models.CharField(blank=True, default=b'', max_length=200)), ('skill2', models.CharField(blank=True, default=b'', max_length=200)), ('skill3', models.CharField(blank=True, default=b'', max_length=200)), ('skill4', models.CharField(blank=True, default=b'', max_length=200)), ('skill5', models.CharField(blank=True, default=b'', max_length=200)), ('skill6', models.CharField(blank=True, default=b'', max_length=200)), ('skill7', models.CharField(blank=True, default=b'', max_length=200)), ('skill8', models.CharField(blank=True, default=b'', max_length=200)), ('skill9', models.CharField(blank=True, default=b'', max_length=200)), ('skill10', models.CharField(blank=True, default=b'', max_length=200)), ('weburl', models.URLField(blank=True, null=True)), ('collaborators', models.CharField(blank=True, default=b'', max_length=300)), ('interestproject', models.IntegerField(blank=True, null=True)), ('explore', models.CharField(blank=True, default=b'', max_length=200)), ('availableHours', models.IntegerField(blank=True, null=True)), ('rate', models.CharField(blank=True, default=b'', max_length=200)), ('hobby', models.CharField(blank=True, default=b'', max_length=200)), ('fQuote', models.CharField(blank=True, default=b'', max_length=200)), ('fFilm', models.CharField(blank=True, default=b'', max_length=200)), ('fBook', models.CharField(blank=True, default=b'', max_length=200)), ('filmNow', models.CharField(blank=True, default=b'', max_length=200)), ('cities', models.CharField(blank=True, default=b'', max_length=200)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Showcase', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, default=b'', max_length=200)), ('number', models.IntegerField(null=True)), ('image', models.FileField(blank=True, null=True, upload_to=b'showcaseimg/')), ('video', models.FileField(blank=True, null=True, upload_to=b'showcaseimg/')), ('youtube', models.URLField(blank=True, null=True)), ('describe', models.CharField(blank=True, default=b'', max_length=500)), ('role1', models.CharField(blank=True, default=b'', max_length=300)), ('role2', models.CharField(blank=True, default=b'', max_length=300)), ('role3', models.CharField(blank=True, default=b'', max_length=300)), ('role4', models.CharField(blank=True, default=b'', max_length=300)), ('role5', models.CharField(blank=True, default=b'', max_length=300)), ('completion', models.IntegerField(blank=True, null=True)), ('tag1', models.CharField(blank=True, default=b'', max_length=300)), ('tag2', models.CharField(blank=True, default=b'', max_length=300)), ('tag3', models.CharField(blank=True, default=b'', max_length=300)), ('tag4', models.CharField(blank=True, default=b'', max_length=300)), ('tag5', models.CharField(blank=True, default=b'', max_length=300)), ('tag6', models.CharField(blank=True, default=b'', max_length=300)), ('tag7', models.CharField(blank=True, default=b'', max_length=300)), ('tag8', models.CharField(blank=True, default=b'', max_length=300)), ('tag9', models.CharField(blank=True, default=b'', max_length=300)), ('tag10', models.CharField(blank=True, default=b'', max_length=300)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Skill', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('skill', models.CharField(max_length=30, unique=True)), ('count', models.IntegerField(default=0, null=True)), ], ), migrations.CreateModel( name='UpcomingWork', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, default=b'', max_length=200)), ('number', models.IntegerField()), ('image', models.FileField(blank=True, null=True, upload_to=b'showcaseimg/')), ('describe', models.CharField(blank=True, default=b'', max_length=500)), ('role1', models.CharField(blank=True, default=b'', max_length=300)), ('role2', models.CharField(blank=True, default=b'', max_length=300)), ('role3', models.CharField(blank=True, default=b'', max_length=300)), ('role4', models.CharField(blank=True, default=b'', max_length=300)), ('role5', models.CharField(blank=True, default=b'', max_length=300)), ('status', models.CharField(blank=True, default=b'', max_length=300)), ('targetstartdate', models.DateTimeField(blank=True, null=True)), ('targetfinishdate', models.DateTimeField(blank=True, null=True, verbose_name=300)), ('comment', models.CharField(blank=True, default=b'', max_length=300)), ('get_help', models.IntegerField(blank=True, null=True)), ('collaborator1', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator2', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator3', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator4', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator5', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill1', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill2', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill3', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill4', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill5', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill6', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill7', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill8', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill9', models.CharField(blank=True, default=b'', max_length=300)), ('collaborator_skill10', models.CharField(blank=True, default=b'', max_length=300)), ('fund', models.CharField(blank=True, default=b'', max_length=200)), ('preferred_city', models.CharField(blank=True, default=b'', max_length=200)), ('often', models.CharField(blank=True, default=b'', max_length=300)), ('time_commitment', models.DateTimeField(blank=True, null=True)), ('give_back', models.IntegerField(blank=True, null=True)), ('comment_help', models.CharField(blank=True, default=b'', max_length=300)), ('tag1', models.CharField(blank=True, default=b'', max_length=300)), ('tag2', models.CharField(blank=True, default=b'', max_length=300)), ('tag3', models.CharField(blank=True, default=b'', max_length=300)), ('tag4', models.CharField(blank=True, default=b'', max_length=300)), ('tag5', models.CharField(blank=True, default=b'', max_length=300)), ('tag6', models.CharField(blank=True, default=b'', max_length=300)), ('tag7', models.CharField(blank=True, default=b'', max_length=300)), ('tag8', models.CharField(blank=True, default=b'', max_length=300)), ('tag9', models.CharField(blank=True, default=b'', max_length=300)), ('tag10', models.CharField(blank=True, default=b'', max_length=300)), ('user', 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='Host', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start_date', models.DateField(verbose_name='启用时间')), ('status', models.BooleanField(default=True, verbose_name='使用状态')), ('username', models.CharField(blank=True, max_length=20, verbose_name='用户名')), ('password', models.CharField(blank=True, max_length=50, verbose_name='密码')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '主机', 'verbose_name_plural': '主机列表', }, ), migrations.CreateModel( name='HostDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip', models.GenericIPAddressField(unique=True, verbose_name='IP')), ('tgt_id', models.CharField(blank=True, max_length=50, verbose_name='目标ID')), ('fqdn', models.CharField(blank=True, max_length=50, verbose_name='计算机全称')), ('domain', models.CharField(blank=True, max_length=50, verbose_name='域名')), ('hwaddr_interfaces', models.CharField(blank=True, max_length=150, verbose_name='MAC地址')), ('cpu_model', models.CharField(blank=True, max_length=50, verbose_name='CPU型号')), ('kernel', models.CharField(blank=True, max_length=50, verbose_name='内核')), ('os', models.CharField(blank=True, max_length=50, verbose_name='操作系统')), ('osarch', models.CharField(blank=True, max_length=50, verbose_name='系统架构')), ('osrelease', models.CharField(blank=True, max_length=50, verbose_name='系统版本')), ('productname', models.CharField(blank=True, max_length=50, verbose_name='产品型号')), ('serialnumber', models.CharField(blank=True, max_length=50, verbose_name='序列号')), ('server_id', models.CharField(blank=True, max_length=50, verbose_name='服务ID')), ('virtual', models.CharField(blank=True, max_length=50, verbose_name='虚拟环境')), ('salt_status', models.BooleanField(default=False, verbose_name='Salt状态')), ('zbx_status', models.BooleanField(default=False, verbose_name='Zabbix状态')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '主机详细信息', 'verbose_name_plural': '主机详细信息列表', }, ), migrations.CreateModel( name='HostGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], 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=50, unique='True', verbose_name='机房名称')), ('type', models.CharField(choices=[('DX', '电信'), ('LT', '联通'), ('YD', '移动'), ('ZJ', '自建')], default='DX', max_length=20, verbose_name='机房类型')), ('address', models.CharField(blank=True, max_length=100, verbose_name='机房地址')), ('contact', models.CharField(blank=True, max_length=100, verbose_name='联系方式')), ('start_Date', models.DateField(blank=True, null=True, verbose_name='租赁日期')), ('end_Date', models.DateField(blank=True, null=True, verbose_name='到期日期')), ('cost', models.CharField(blank=True, max_length=20, verbose_name='租赁费用')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '机房', 'verbose_name_plural': '机房列表', }, ), migrations.CreateModel( name='Network', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='名称')), ('brand', models.CharField(blank=True, max_length=30, verbose_name='品牌')), ('model', models.CharField(blank=True, max_length=30, verbose_name='型号')), ('ip_out', models.GenericIPAddressField(blank=True, null=True, unique=True, verbose_name='外网IP')), ('ip_in', models.GenericIPAddressField(blank=True, null=True, unique=True, verbose_name='内网IP')), ('info', models.CharField(blank=True, max_length=100, verbose_name='说明')), ('url', models.URLField(blank=True, max_length=100, verbose_name='访问地址')), ('username', models.CharField(blank=True, max_length=20, verbose_name='用户名')), ('password', models.CharField(blank=True, max_length=50, verbose_name='密码')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('idc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CMDB.IDC', verbose_name='所属机房')), ], options={ 'verbose_name': '网络设备', 'verbose_name_plural': '网络设备列表', }, ), migrations.CreateModel( name='Server', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=50, verbose_name='服务器名称')), ('location', models.CharField(blank=True, max_length=30, verbose_name='机架位置')), ('start_date', models.DateField(verbose_name='启用日期')), ('status', models.BooleanField(default=True, verbose_name='使用状态')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('idc', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CMDB.IDC', verbose_name='所属机房')), ('ip', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='CMDB.HostDetail', verbose_name='IP地址')), ], options={ 'verbose_name': '服务器', 'verbose_name_plural': '服务器列表', }, ), migrations.CreateModel( name='SystemType', 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='系统类型')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '系统类型', 'verbose_name_plural': '系统类型列表', }, ), 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=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')), ('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.AddField( model_name='host', name='group', field=models.ManyToManyField(to='CMDB.HostGroup', verbose_name='所属主机组'), ), migrations.AddField( model_name='host', name='ip', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='CMDB.HostDetail', verbose_name='IP地址'), ), migrations.AddField( model_name='host', name='server', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CMDB.Server', verbose_name='所属服务器'), ), migrations.AddField( model_name='host', name='system_type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='CMDB.SystemType', verbose_name='操作系统类型'), ), ]
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')), ('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.EmailField(max_length=255, unique=True, verbose_name='email address')), ('username', models.CharField(max_length=50, unique=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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='Service', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('address', models.TextField()), ('introduction', models.TextField()), ('type', models.CharField(choices=[('CL', 'Clinic'), ('HS', 'Hair Salon'), ('RE', 'Restaurant'), ('SH', 'Shop')], default='SH', max_length=2)), ('longitude', models.FloatField()), ('latitude', models.FloatField()), ('rating', models.FloatField(blank=True, null=True)), ('image', models.URLField(blank=True, null=True)), ('maxCapacity', models.IntegerField(default=10)), ('startTime', models.IntegerField()), ('closeTime', models.IntegerField()), ('placeId', models.TextField()), ('freeSlots', django.contrib.postgres.fields.ArrayField( base_field=django.contrib.postgres.fields.ArrayField( base_field=models.IntegerField(blank=True, null=True), size=None), blank=True, null=True, size=None)), ('popularTimes', django.contrib.postgres.fields.ArrayField( base_field=django.contrib.postgres.fields.ArrayField( base_field=models.IntegerField(blank=True, null=True), size=None), blank=True, null=True, size=None)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='owned_by', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Reservation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bookDate', models.IntegerField(choices=[(0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday')], default='Monday')), ('bookTime', models.IntegerField()), ('numPeople', models.IntegerField()), ('status', models.CharField(choices=[('CP', 'completed'), ('PD', 'pending'), ('MS', 'missed')], default='PD', max_length=2)), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reserved_by', to=settings.AUTH_USER_MODEL)), ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='backend.Service')), ('serviceOwner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='of_service_owned_by', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators.ASCIIUsernameValidator( ) ], 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')), ('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={ 'abstract': False, 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Article', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('title', models.CharField(max_length=600)), ('source_url', models.URLField()), ('cover_image', models.URLField(max_length=600)), ('blurb', models.TextField(blank=True, null=True)), ('full_text', models.TextField()), ('published_on', models.DateTimeField()), ('active', models.BooleanField(default=False)), ('hot', models.BooleanField(default=False)), ('popular', models.BooleanField(default=False)), ('avg_rating', models.FloatField(blank=True, null=True)), ('view_count', models.FloatField(blank=True, null=True)), ('rating_count', models.FloatField(blank=True, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ArticleMedia', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('category', models.CharField(max_length=255)), ('url', models.URLField()), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news_site.Article')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ArticleRating', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('rating', models.FloatField()), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news_site.Article')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ArtilcleLike', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('is_like', models.PositiveSmallIntegerField(default=2)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news_site.Article')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='BookmarkArticle', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news_site.Article')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Category', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('name', models.CharField(blank=True, max_length=255, null=True)), ], options={ 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='HashTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='Industry', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('name', models.CharField(max_length=255)), ], options={ 'verbose_name_plural': 'Industries', }, ), migrations.CreateModel( name='RelatedArticle', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('score', models.FloatField()), ('related', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_article', to='news_site.Article')), ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='source_article', to='news_site.Article')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Source', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('url', models.URLField(blank=True, null=True)), ('active', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='SubCategory', 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='Created At')), ('modified_at', models.DateTimeField(auto_now=True, verbose_name='Last Modified At')), ('name', models.CharField(blank=True, max_length=255, null=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='news_site.Category')), ], options={ 'verbose_name_plural': 'Sub Categories', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='news_site.Category'), ), migrations.AddField( model_name='article', name='hash_tags', field=models.ManyToManyField(blank=True, default=None, null=True, to='news_site.HashTag'), ), migrations.AddField( model_name='article', name='industry', field=models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='news_site.Industry'), ), migrations.AddField( model_name='article', name='source', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='news_site.Source'), ), migrations.AddField( model_name='article', name='sub_category', field=models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='news_site.SubCategory'), ), migrations.AddField( model_name='userprofile', name='passion', field=models.ManyToManyField(blank=True, to='news_site.Category'), ), migrations.AddField( model_name='userprofile', 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='Summoner', 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')), ('icon_id', models.IntegerField(blank=True, null=True)), ('level', models.IntegerField(blank=True, null=True)), ('summoner_id', models.IntegerField(blank=True, null=True)), ('account_id', models.IntegerField(blank=True, null=True)), ('summoner_name', models.CharField(max_length=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': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Champion', fields=[ ('champion_id', models.IntegerField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=100)), ('image', models.CharField(max_length=100)), ('title', models.CharField(max_length=2000)), ('passiveName', models.CharField(max_length=2000)), ('passiveDescription', models.CharField(max_length=5000)), ('passiveImage', models.CharField(max_length=2000)), ], ), migrations.CreateModel( name='ChampStat', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('queue_id', models.IntegerField()), ('summoner_id', models.IntegerField()), ('kills', models.FloatField()), ('deaths', models.FloatField()), ('assists', models.FloatField()), ('wins', models.IntegerField()), ('games', models.IntegerField()), ('last_date', models.TextField(max_length=200)), ('season', models.IntegerField()), ('champion_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='league.Champion')), ], ), migrations.CreateModel( name='Item', fields=[ ('ItemID', models.IntegerField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=100)), ('stacks', models.IntegerField()), ('description', models.CharField(max_length=100)), ('image', models.URLField()), ], ), migrations.CreateModel( name='Match', fields=[ ('match_id', models.IntegerField(primary_key=True, serialize=False)), ('queue_id', models.IntegerField()), ('duration', models.IntegerField()), ('date', models.DateTimeField()), ], ), migrations.CreateModel( name='PlayerMatch', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('account_id', models.IntegerField()), ('summoner_id', models.IntegerField()), ('summoner_name', models.TextField(max_length='100')), ('win', models.CharField(choices=[('W', 'Victory'), ('L', 'Defeat'), ('R', 'Remake')], max_length=1)), ('team', models.CharField(choices=[('R', 'Red'), ('B', 'Blue')], max_length=1)), ('champion_id', models.IntegerField()), ('kills', models.IntegerField()), ('deaths', models.IntegerField()), ('assists', models.IntegerField()), ('level', models.IntegerField()), ('cs', models.IntegerField()), ('item1', models.IntegerField(blank=True, null=True)), ('item2', models.IntegerField(blank=True, null=True)), ('item3', models.IntegerField(blank=True, null=True)), ('item4', models.IntegerField(blank=True, null=True)), ('item5', models.IntegerField(blank=True, null=True)), ('item6', models.IntegerField(blank=True, null=True)), ('trinket', models.IntegerField(blank=True, null=True)), ('rune_main_1', models.IntegerField()), ('rune_main_2', models.IntegerField()), ('rune_main_3', models.IntegerField()), ('rune_main_4', models.IntegerField()), ('rune_secondary_1', models.IntegerField()), ('rune_secondary_2', models.IntegerField()), ('match', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='league.Match')), ], ), migrations.CreateModel( name='Spell', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('spellID', models.IntegerField()), ('spellKey', models.CharField(max_length=100)), ('spellName', models.CharField(max_length=100)), ('image', models.CharField(max_length=100)), ('spellDescription', models.CharField(max_length=2000)), ], ), migrations.AddField( model_name='playermatch', name='spell_1', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='spell_d', to='league.Spell'), ), migrations.AddField( model_name='playermatch', name='spell_2', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='spell_f', to='league.Spell'), ), migrations.AlterUniqueTogether( name='champstat', unique_together={('champion_id', 'summoner_id', 'queue_id', 'season')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True, validators=[ django.core.validators.RegexValidator( '^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.' ) ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=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')), ('nick_name', models.CharField(default='', max_length=50, verbose_name='\u6635\u79f0')), ('birday', models.DateField(blank=True, null=True, verbose_name='\u751f\u65e5')), ('gender', models.CharField(choices=[('male', '\u7537\u751f'), ('female', '\u5973\u751f')], default='', max_length=10)), ('address', models.CharField(default='', max_length=100)), ('mobile', models.CharField(blank=True, default='', max_length=11, null=True)), ('image', models.ImageField(default='image/default.png', upload_to='image/%Y/%m')), ('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': '\u7528\u6237\u4fe1\u606f', 'verbose_name_plural': '\u7528\u6237\u4fe1\u606f', }, 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')), ('title', models.CharField(max_length=100, verbose_name='\u6807\u9898')), ('image', models.ImageField(upload_to='banner/%Y/%m', verbose_name='\u8f6e\u64ad\u56fe')), ('url', models.URLField(verbose_name='\u8bbf\u95ee\u5730\u5740')), ('index', models.IntegerField(default=100, verbose_name='\u987a\u5e8f')), ('add_time', models.DateField(default=datetime.datetime.now, verbose_name='\u6dfb\u52a0\u65f6\u95f4')), ], options={ 'verbose_name': '\u8f6e\u64ad\u56fe', 'verbose_name_plural': '\u8f6e\u64ad\u56fe', }, ), migrations.CreateModel( name='EmailVerifyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=20, verbose_name='\u9a8c\u8bc1\u7801')), ('email', models.EmailField(max_length=50, verbose_name='\u90ae\u7bb1')), ('send_type', models.CharField(choices=[('register', '\u6ce8\u518c'), ('forget', '\u627e\u56de')], max_length=10)), ('send_time', models.DateField(default=datetime.datetime.now, verbose_name='\u6dfb\u52a0\u65f6\u95f4')), ], options={ 'verbose_name': '\u90ae\u7bb1\u9a8c\u8bc1\u7801', 'verbose_name_plural': '\u90ae\u7bb1\u9a8c\u8bc1\u7801', }, ), ]
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. 60 characters or fewer. Letters, digits, spaces and @/./+/-/_ only.', max_length=75, unique=True, validators=[ django.core.validators.RegexValidator( '^[\\w]+[ \\w.@+\\-]*$', 'Enter a valid username. This value may contain only letters, digits, spaces and @/./+/-/_ characters. It must start with a digit or a letter.', 'invalid') ], verbose_name='username')), ('email', models.EmailField(error_messages={ 'unique': 'A user with that email address already exists.' }, max_length=254, unique=True, 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')), ('_avatar', adhocracy4.images.fields.ConfiguredImageField( 'avatar', blank=True, help_text= 'Please upload a squared image, at least 340x340 px. Allowed formats are jpg, gif and png.', upload_to='users/images', verbose_name='Profile picture')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('europe', models.TextField( blank=True, help_text= 'Why do you care about Europe? Where do you try to make a change? (max. 200 characters)', max_length=200, verbose_name='Your interest in Europe')), ('twitter_handle', models.CharField(blank=True, max_length=15, verbose_name='Twitter name')), ('facebook_handle', models.CharField(blank=True, max_length=50, verbose_name='Facebook name')), ('instagram_handle', models.CharField(blank=True, max_length=30, verbose_name='Instagram name')), ('website', models.URLField( blank=True, help_text= 'Plase add either https:// or http:// to the front of your URL.', verbose_name='Website')), ('get_notifications', models.BooleanField( default=True, verbose_name="my own ideas and ideas that I'm watching")), ('get_newsletters', models.BooleanField( default=False, verbose_name='Send me Civic Europe news.')), ('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', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ( 'last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login'), ), ( 'is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status', ), ), ( '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'), ), ( 'id', models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ('bio', models.TextField(blank=True, verbose_name='bio')), ('url', models.URLField(blank=True, verbose_name='URL')), ( 'company', models.CharField(blank=True, max_length=30, verbose_name='company'), ), ( 'location', models.CharField(blank=True, max_length=128, verbose_name='location'), ), ], options={ 'verbose_name_plural': 'users', 'verbose_name': 'user', 'abstract': False, }, managers=[ ('objects', openwisp_users.models.UserManager()), ], ), migrations.CreateModel( name='Organization', fields=[ ( 'name', models.CharField(help_text='The name of the organization', max_length=200), ), ('is_active', models.BooleanField(default=True)), ( 'created', organizations.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False), ), ( 'modified', organizations.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False), ), ( 'slug', organizations.fields.SlugField( blank=True, editable=False, help_text= 'The name in all lowercase, suitable for URL identification', max_length=200, populate_from='name', unique=True, ), ), ( 'id', models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ( 'description', models.TextField(blank=True, verbose_name='description'), ), ( 'email', models.EmailField(blank=True, max_length=254, verbose_name='email'), ), ('url', models.URLField(blank=True, verbose_name='URL')), ], options={ 'verbose_name_plural': 'organizations', 'verbose_name': 'organization', 'abstract': False, 'ordering': ['name'], }, bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.CreateModel( name='OrganizationOwner', fields=[ ( 'created', organizations.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False), ), ( 'modified', organizations.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False), ), ( 'id', models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ( 'organization', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='owner', to='openwisp_users.Organization', ), ), ], options={ 'verbose_name_plural': 'organization owners', 'verbose_name': 'organization owner', 'abstract': False, }, bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.CreateModel( name='OrganizationUser', fields=[ ( 'created', organizations.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False), ), ( 'modified', organizations.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False), ), ('is_admin', models.BooleanField(default=False)), ( 'id', models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ( 'organization', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='organization_users', to='openwisp_users.Organization', ), ), ( 'user', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='openwisp_users_organizationuser', to=settings.AUTH_USER_MODEL, ), ), ], options={ 'verbose_name_plural': 'organization users', 'verbose_name': 'organization user', 'abstract': False, 'ordering': ['organization', 'user'], }, bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.CreateModel( name='Group', fields=[], options={ 'verbose_name_plural': 'groups', 'verbose_name': 'group', 'proxy': True, }, bases=('auth.group', ), managers=[ ('objects', django.contrib.auth.models.GroupManager()), ], ), migrations.AddField( model_name='organizationowner', name='organization_user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='openwisp_users.OrganizationUser', ), ), migrations.AddField( model_name='organization', name='users', field=models.ManyToManyField( related_name='openwisp_users_organization', through='openwisp_users.OrganizationUser', to=settings.AUTH_USER_MODEL, ), ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups', ), ), migrations.AddField( model_name='user', name='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='organizationuser', unique_together=set([('user', 'organization')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ('blog', '0003_auto_20180920_0902'), ] 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, default='avatar/default.png', max_length=200, null=True, upload_to='avatar/%Y/%m', verbose_name='用户头像')), ('qq', models.CharField(blank=True, max_length=20, null=True, verbose_name='QQ号码')), ('mobile', models.CharField(blank=True, max_length=11, null=True, unique=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': '用户', 'verbose_name_plural': '用户', 'ordering': ['-id'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='广告标题')), ('description', models.CharField(max_length=200, verbose_name='广告描述')), ('image_url', models.ImageField(upload_to='ad/%Y/%m', verbose_name='图片路径')), ('callback_url', models.URLField(blank=True, null=True, verbose_name='回调url')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('index', models.IntegerField(default=999, verbose_name='排列顺序(从小到大)')), ], options={ 'verbose_name': '广告', 'verbose_name_plural': '广告', 'ordering': ['index', 'id'], }, ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='文章标题')), ('desc', models.CharField(max_length=50, verbose_name='文章描述')), ('content', models.TextField(verbose_name='文章内容')), ('click_count', models.IntegerField(default=0, verbose_name='点击次数')), ('is_recommend', models.BooleanField(default=False, verbose_name='是否推荐')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='分类名称')), ('index', models.IntegerField(default=999, verbose_name='显示顺序(从小到大)')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['index', 'id'], }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(verbose_name='评论内容')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('article', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Article', verbose_name='文章')), ('pid', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Comment', verbose_name='父级评论')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name': '评论', 'verbose_name_plural': '评论', 'ordering': ['-date_publish'], }, ), migrations.CreateModel( name='Links', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='标题')), ('description', models.CharField(max_length=200, verbose_name='友情链接描述')), ('callback_url', models.URLField(verbose_name='url地址')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ('index', models.IntegerField(default=999, verbose_name='排列顺序(从小到大)')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['index', '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=30, verbose_name='标签名称')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', 'ordering': ['id'], }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Category', verbose_name='分类'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='blog.Tag', verbose_name='标签'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=24)), ('review', models.CharField(max_length=128)), ('comment_id', models.IntegerField()), ('created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Listing', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=24)), ('description', models.CharField(max_length=64)), ('starting_bid', models.IntegerField()), ('url', models.URLField()), ('category', models.CharField(max_length=24)), ('created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Watchlist', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.CharField(max_length=64)), ('listing_id', models.IntegerField()), ], ), 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')), ('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 = [ ('contenttypes', '0002_remove_content_type_name'), ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='InscrireUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=255, unique=True, verbose_name='adresse e-mail')), ('role', models.PositiveSmallIntegerField(choices=[(1, 'direction'), (2, 'secrétariat'), (3, 'professeur'), (4, 'vie scolaire'), (5, 'intendance'), (6, 'étudiant')], verbose_name='rôle')), ('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='Candidat', fields=[ ('genre', models.PositiveSmallIntegerField( choices=[(1, 'homme'), (2, 'femme')])), ('last_name', models.CharField(max_length=100, verbose_name='nom')), ('first_name', models.CharField(max_length=100, verbose_name='prénom')), ('telephone', models.CharField(blank=True, default='', max_length=20, verbose_name='téléphone')), ('telephone_mobile', models.CharField(blank=True, default='', max_length=20, verbose_name='téléphone mobile')), ('adresse', models.TextField(blank=True, default='(Inconnue)')), ('dossier_parcoursup', models.IntegerField(primary_key=True, serialize=False, verbose_name='numéro Parcoursup')), ('date_naissance', models.DateField(blank=True, null=True, verbose_name='date de naissance')), ('ine', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name="INE (numéro d'étudiant)")), ('bac_date', models.DateField(blank=True, null=True)), ('bac_serie', models.CharField(blank=True, max_length=8, null=True)), ('bac_mention', models.PositiveSmallIntegerField(blank=True, choices=[(0, 'passable'), (1, 'assez bien'), (2, 'bien'), (3, 'très bien')], null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Commune', fields=[ ('code_insee', models.CharField(max_length=5, primary_key=True, serialize=False)), ('nom_clair', models.CharField(max_length=200)), ('nom_riche', models.CharField(max_length=200)), ('libelle', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Etablissement', fields=[ ('numero_uai', inscrire.models.fields.Lettre23Field(length=8, primary_key=True, serialize=False, unique=True, verbose_name='UAI')), ('nom', models.CharField(max_length=200)), ('email', models.EmailField(max_length=254, verbose_name='adresse e-mail')), ], ), migrations.CreateModel( name='Fiche', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('valide', models.BooleanField(default=False)), ('etat', models.PositiveSmallIntegerField(choices=[ (1, 'fiche à compléter'), (2, 'fiche confirmée'), (3, 'validée par le gestionnaire'), (4, 'annulée') ], default=1, verbose_name='état')), ('candidat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Candidat')), ('polymorphic_ctype', models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_inscrire.fiche_set+', to='contenttypes.ContentType')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, ), migrations.CreateModel( name='Formation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=100)), ('code_parcoursup', models.SmallIntegerField(unique=True)), ('groupe_parcoursup', models.SmallIntegerField()), ('slug', models.SlugField(unique=True)), ('code_mef', models.CharField(max_length=11)), ('etablissement', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Etablissement')), ], ), migrations.CreateModel( name='MefMatiere', fields=[ ('code', models.CharField(max_length=6, primary_key=True, serialize=False)), ('code_gestion', models.CharField(max_length=10)), ('libelle_court', models.CharField(max_length=100)), ('libelle_long', models.CharField(max_length=100)), ('libelle_edition', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='ParcoursupMessageEnvoyeLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField()), ], ), migrations.CreateModel( name='Pays', fields=[ ('code_iso2', models.CharField(max_length=2, primary_key=True, serialize=False)), ('code_iso3', models.CharField(max_length=3, unique=True)), ('num_iso', models.PositiveSmallIntegerField(unique=True)), ('libelle', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Profession', fields=[ ('code', models.PositiveSmallIntegerField(primary_key=True, serialize=False)), ('libelle_court', models.CharField(max_length=200)), ('libelle_long', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='FicheBourse', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('boursier', models.BooleanField(default=False)), ('echelon', models.PositiveSmallIntegerField(blank=True, null=True, verbose_name='échelon')), ('enfants_charge', models.PositiveSmallIntegerField( default=1, verbose_name= "nombre d'enfants à charge (y compris l'étudiant)")), ('enfants_secondaire', models.PositiveSmallIntegerField( default=0, verbose_name="nombre d'enfants en lycée ou en collège")), ('enfants_etablissement', models.PositiveSmallIntegerField( default=1, verbose_name="nombre d'enfants dans l'établissement")), ('attribution_bourse', models.FileField( blank=True, null=True, upload_to=inscrire.models.fiches.FicheBourse. _attribution_bourse_upload_to, verbose_name= "copie de l'attestation conditionnelle de bourse")), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheCesure', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheHebergement', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('regime', models.PositiveSmallIntegerField(blank=True, choices=[ (0, 'externe'), (1, 'demi-pensionnaire'), (2, 'interne externé'), (3, 'interne') ], null=True, verbose_name='régime')), ('iban', localflavor.generic.models.IBANField( blank=True, include_countries=('FR', ), max_length=34, null=True, use_nordea_extensions=False)), ('bic', localflavor.generic.models.BICField(blank=True, max_length=11, null=True)), ('titulaire_compte', models.CharField(blank=True, default='', max_length=200)), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheInternat', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('message', models.TextField(blank=True, default='', verbose_name='demandes particulières')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheReglement', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('signature_reglement', models.DateTimeField( blank=True, null=True, verbose_name='signature du règlement intérieur')), ('autorisation_parents_eleves', models.BooleanField(default=False)), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='Voeu', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('etat', models.PositiveSmallIntegerField( choices=[(0, "en liste d'attente" ), (1, 'accepté avec autres vœux en attente' ), (2, 'accepté définitivement' ), (3, 'refusé par le candidat')])), ('internat', models.BooleanField()), ('cesure', models.BooleanField()), ('candidat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Candidat')), ('formation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Formation')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ResponsableLegal', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('genre', models.PositiveSmallIntegerField( choices=[(1, 'homme'), (2, 'femme')])), ('last_name', models.CharField(max_length=100, verbose_name='nom')), ('first_name', models.CharField(max_length=100, verbose_name='prénom')), ('telephone', models.CharField(blank=True, default='', max_length=20, verbose_name='téléphone')), ('telephone_mobile', models.CharField(blank=True, default='', max_length=20, verbose_name='téléphone mobile')), ('adresse', models.TextField(blank=True, default='(Inconnue)')), ('candidat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='responsables', to='inscrire.Candidat')), ('profession', models.ForeignKey( default=99, on_delete=django.db.models.deletion.SET_DEFAULT, to='inscrire.Profession')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='MefOption', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('modalite', models.PositiveSmallIntegerField(choices=[(1, 'obligatoire'), (2, 'facultative')], verbose_name='modalité')), ('rang', models.PositiveSmallIntegerField()), ('formation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Formation')), ('matiere', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.MefMatiere')), ], ), migrations.CreateModel( name='HistoriqueVoeu', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('etat', models.PositiveSmallIntegerField( choices=[(0, "en liste d'attente" ), (1, 'accepté avec autres vœux en attente' ), (2, 'accepté définitivement' ), (3, 'refusé par le candidat')])), ('date', models.DateTimeField()), ('voeu', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Voeu')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='CandidatActionLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.TextField(blank=True, default='')), ('date', models.DateTimeField()), ('candidat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Candidat')), ], ), migrations.AddField( model_name='candidat', name='commune_naissance', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='inscrire.Commune'), ), migrations.AddField( model_name='candidat', name='nationalite', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='candidats_nationalite', to='inscrire.Pays'), ), migrations.AddField( model_name='candidat', name='pays_naissance', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='candidats_naissance', to='inscrire.Pays'), ), migrations.AddField( model_name='candidat', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='ParcoursupUser', fields=[ ('etablissement', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='inscrire.Etablissement')), ('adresse_api', models.URLField(max_length=300)), ('remontee_username', models.CharField(max_length=50)), ('remontee_password', models.CharField(max_length=128)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ParcoursupMessageRecuLog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField()), ('ip_source', models.GenericIPAddressField()), ('endpoint', models.CharField(max_length=100)), ('message', models.CharField(max_length=200)), ('succes', models.BooleanField()), ('payload', models.BinaryField(blank=True, default=b'', null=True, verbose_name='données reçues')), ('user', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='inscrire.ParcoursupUser')), ], ), migrations.CreateModel( name='FicheScolariteAnterieure', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('classe_terminale', models.CharField(blank=True, default='', max_length=20, verbose_name='classe de terminale suivie')), ('specialite_terminale', models.CharField(blank=True, default='', max_length=100, verbose_name='spécialité en terminale')), ('autre_formation', models.CharField(blank=True, default='', max_length=200, verbose_name='autre formation')), ('etablissement', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='inscrire.Etablissement')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheScolarite', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('formation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.Formation')), ('options', models.ManyToManyField(to='inscrire.MefOption')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='FicheIdentite', fields=[ ('fiche_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='inscrire.Fiche')), ('photo', models.ImageField(blank=True, null=True, upload_to=inscrire.models.fiches. FicheIdentite._photo_upload_to)), ('piece_identite', models.FileField(blank=True, null=True, upload_to=inscrire.models.fiches. FicheIdentite._piece_identite_upload_to)), ('commune_naissance_etranger', models.CharField(blank=True, default='', max_length=200)), ('commune_naissance', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='inscrire.Commune')), ('pays_naissance', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='inscrire.Pays')), ], options={ 'abstract': False, 'base_manager_name': 'objects', }, bases=('inscrire.fiche', ), ), migrations.CreateModel( name='BulletinScolaire', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('classe', models.PositiveSmallIntegerField(choices=[( 1, 'bulletin de première'), (2, 'bulletin de terminale')])), ('bulletin', models.FileField(upload_to=inscrire.models.fiches. BulletinScolaire._bulletin_upload_to)), ('fiche_scolarite', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inscrire.FicheScolariteAnterieure')), ], ), ]
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')), ('is_freelancer', models.BooleanField(default=False)), ('is_employer', 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='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('tech', models.CharField(max_length=50, verbose_name='Technology used')), ('desc', models.CharField(max_length=200, verbose_name='Description')), ('link', models.URLField(verbose_name='Project URL')), ('ss', models.ImageField(blank=True, upload_to='', verbose_name='ScreenShot')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Project', 'verbose_name_plural': 'Projects', }, ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('mode', models.CharField(choices=[('ftime', 'Full-Time'), ('ptime', 'Part-Time')], max_length=5, verbose_name='Mode')), ('etc', models.PositiveIntegerField( validators=[ django.core.validators.MaxValueValidator(2000) ], verbose_name='Estimated time for completion (Hrs)')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Job', 'verbose_name_plural': 'Jobs', }, ), migrations.CreateModel( name='Freelancer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('dp', models.ImageField(blank=True, upload_to='', verbose_name='Profile Pic')), ('languages', models.CharField(choices=[ ('VISUAL_BASIC_NET', 'Visual Basic .NET'), ('OBJECTIVE_C', 'Objective-C'), ('JAVASCRIPT', 'JavaScript'), ('PYTHON', 'Python'), ('C_HASH', 'C#'), ('SWIFT', 'Swift'), ('JAVA', 'Java'), ('RUBY', 'Ruby'), ('PERL', 'Perl'), ('CPP', 'C++'), ('PHP', 'PHP'), ('SQL', 'SQL'), ('GO', 'Go'), ('C', 'C'), ('R', 'R') ], max_length=50, verbose_name='Languages')), ('specialization', models.CharField(choices=[('DJANGO', 'Django'), ('NODEJS', 'Nodejs'), ('ELECTRON', 'Electron'), ('FLASK', 'Flask'), ('ROR', 'Ruby on Rails'), ('PHP_Cake', 'PHP Cake'), ('BOTTLE', 'Bottle'), ('ML', 'Machine Learning'), ('AI', 'Artificial Intelligence')], max_length=50, verbose_name='Specialization')), ('fields', models.CharField(choices=[ ('ANDROID_APP', 'Android App Developer'), ('WIN_PC_APP', 'Windows Desktop App Developer'), ('MAC_PC_APP', 'Mac Desktop App Developer'), ('IOS_APP', 'iOS App Developer'), ('WEB_APP', 'Web App Developer'), ('DS', 'Data Science') ], max_length=50, verbose_name='Fields')), ('side', models.CharField(choices=[('FED', 'Front End Developer'), ('BED', 'Back End Developer'), ('FSD', 'Full Stack Developer')], max_length=50, verbose_name='Side')), ('level', models.CharField(choices=[('FRS', 'Fresher'), ('EXP', 'Experienced'), ('PRO', 'Pro')], max_length=20, verbose_name='Level')), ('salary', models.IntegerField( default=250, validators=[ django.core.validators.MaxValueValidator(1000), django.core.validators.MinValueValidator(250) ], verbose_name='Salary')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='freelancer', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Freelancer', 'verbose_name_plural': 'Freelancers', }, ), migrations.CreateModel( name='Employer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('dp', models.ImageField(blank=True, upload_to='', verbose_name='Profile Pic')), ('company', models.CharField(max_length=100, verbose_name='Company')), ('location', models.CharField(max_length=30, verbose_name='Location')), ('website', models.URLField(blank=True, verbose_name='Website')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='employer', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Employer', 'verbose_name_plural': 'Employers', }, ), migrations.CreateModel( name='Employee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('languages', models.CharField(choices=[ ('VISUAL_BASIC_NET', 'Visual Basic .NET'), ('OBJECTIVE_C', 'Objective-C'), ('JAVASCRIPT', 'JavaScript'), ('PYTHON', 'Python'), ('C_HASH', 'C#'), ('SWIFT', 'Swift'), ('JAVA', 'Java'), ('RUBY', 'Ruby'), ('PERL', 'Perl'), ('CPP', 'C++'), ('PHP', 'PHP'), ('SQL', 'SQL'), ('GO', 'Go'), ('C', 'C'), ('R', 'R') ], max_length=50, verbose_name='Languages')), ('specialization', models.CharField(choices=[('DJANGO', 'Django'), ('NODEJS', 'Nodejs'), ('ELECTRON', 'Electron'), ('FLASK', 'Flask'), ('ROR', 'Ruby on Rails'), ('PHP_Cake', 'PHP Cake'), ('BOTTLE', 'Bottle'), ('ML', 'Machine Learning'), ('AI', 'Artificial Intelligence')], max_length=50, verbose_name='Specialization')), ('fields', models.CharField(choices=[ ('ANDROID_APP', 'Android App Developer'), ('WIN_PC_APP', 'Windows Desktop App Developer'), ('MAC_PC_APP', 'Mac Desktop App Developer'), ('IOS_APP', 'iOS App Developer'), ('WEB_APP', 'Web App Developer'), ('DS', 'Data Science') ], max_length=50, verbose_name='Fields')), ('side', models.CharField(choices=[('FED', 'Front End Developer'), ('BED', 'Back End Developer'), ('FSD', 'Full Stack Developer')], max_length=50, verbose_name='Side')), ('level', models.CharField(choices=[('FRS', 'Fresher'), ('EXP', 'Experienced'), ('PRO', 'Pro')], max_length=20, verbose_name='Level')), ('salary', models.IntegerField( default=250, validators=[ django.core.validators.MaxValueValidator(1000), django.core.validators.MinValueValidator(250) ], verbose_name='Salary')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='flance.Job')), ], options={ 'verbose_name': 'Employee', 'verbose_name_plural': 'Employees', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='USER', fields=[ ('user_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=('auth.user', ), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Developer', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='codeapp.USER')), ('career', models.CharField(max_length=30)), ('company', models.CharField(max_length=30)), ('portfolioweb', models.URLField()), ('location', models.CharField(max_length=30)), ('skills', models.CharField(max_length=500)), ('githublink', models.URLField(blank=True, null=True)), ('fblink', models.URLField(blank=True, null=True)), ('instalink', models.URLField(blank=True, null=True)), ('tweetlink', models.URLField(blank=True, null=True)), ('youtubelink', models.URLField(blank=True, null=True)), ], ), migrations.CreateModel( name='Experience', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('job_title', models.CharField(max_length=30)), ('aff_company', models.CharField(max_length=30)), ('loc_company', models.CharField(max_length=30)), ('frm_date', models.DateField()), ('to_date', models.DateField()), ('job_des', models.CharField(max_length=500)), ('whose', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='codeapp.Developer')), ], ), migrations.CreateModel( name='Education', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('degree', models.CharField(max_length=30)), ('college', models.CharField(max_length=30)), ('frm_date', models.DateField()), ('to_date', models.DateField()), ('whose', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='codeapp.Developer')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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='Categorie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('categorie_name', models.CharField(default='Without categorie', max_length=50, unique=True)), ], ), migrations.CreateModel( name='Listing', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('description', models.TextField(max_length=1000)), ('base_bid', models.DecimalField(decimal_places=2, default=0, max_digits=6)), ('image_url', models.URLField(blank=True, null=True)), ('date', models.DateTimeField(auto_now=True)), ('state', models.BooleanField(default=True)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('categorie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='categorie_listing', to='auctions.Categorie')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.TextField(default='Default', max_length=2000)), ('date', models.DateTimeField(auto_now=True)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('listing', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='comment_listing', to='auctions.Listing')), ], ), migrations.CreateModel( name='Bid', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bid', models.DecimalField(decimal_places=2, default=0, max_digits=6)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('listing', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='bid_listing', to='auctions.Listing')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0007_alter_validators_add_error_messages'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True, validators=[ django.core.validators.RegexValidator( '^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.' ) ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=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')), ('nickname', models.CharField(max_length=30, verbose_name='Nick Name')), ('birthday', models.DateField(blank=True, null=True, verbose_name='Birthday')), ('sex', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='M', max_length=10, verbose_name='Sex')), ('address', models.CharField(default='', max_length=100, verbose_name='Address')), ('mobile', models.CharField(blank=True, max_length=10, null=True, verbose_name='Mobile Number')), ('image', models.ImageField(default='image/users/profile/default.png', upload_to='image/users/profile/%Y/%m', verbose_name='Profile Picture')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'User Information', 'verbose_name_plural': 'User Information', }, 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')), ('title', models.CharField(max_length=100, verbose_name='Banner Title')), ('image', models.ImageField(default='image/users/banner/default.png', upload_to='image/users/banner/%Y/%m', verbose_name='Banner Picture')), ('url', models.URLField(verbose_name='Banner URL')), ('idx', models.IntegerField(default=100, verbose_name='Index')), ('create_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='Banner Creation Time')), ], options={ 'verbose_name': 'Banner', 'verbose_name_plural': 'Banner', }, ), migrations.CreateModel( name='UserProfileVerification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField( max_length=50, verbose_name='User Profile Verification Code')), ('email', models.EmailField(max_length=100, verbose_name='E-mail')), ('type', models.CharField(choices=[('register', 'Register'), ('reset', 'Reset Password')], max_length=20, verbose_name='Verification Type')), ('verify_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='Verification Time')), ], options={ 'verbose_name': 'User Profile Verification', 'verbose_name_plural': 'User Profile Verification', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('comment', models.TextField(verbose_name='评论内容')), ], ), migrations.CreateModel( name='Favor', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('isUp', models.BooleanField(verbose_name='点赞')), ], ), migrations.CreateModel( name='Module', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('module', models.CharField(max_length=32, verbose_name='模块名称')), ], ), migrations.CreateModel( name='Share', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('desc', models.CharField(max_length=64, verbose_name='分享描述')), ('content', models.TextField(verbose_name='分享内容')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('commentCount', models.IntegerField(verbose_name='评论数')), ], ), migrations.CreateModel( name='Summary', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('abstract', models.CharField(max_length=64, null=True, verbose_name='总结摘要')), ('today_content', models.TextField(default=1, verbose_name='今天内容')), ('tomorrow_content', models.TextField(default=1, verbose_name='明天计划')), ('code', models.IntegerField(default=1, verbose_name='代码量')), ('create_time', models.DateField(auto_now_add=True, verbose_name='创建时间')), ('complete', models.BooleanField(choices=[(0, 'no'), (1, 'yes')], default=0, verbose_name='是否完成任务')), ], ), migrations.CreateModel( name='Team', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('team_name', models.CharField(max_length=16, verbose_name='小组名称')), ], ), migrations.CreateModel( name='Types', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('classify', models.CharField(max_length=12, verbose_name='总结分类')), ], ), migrations.CreateModel( name='UrlShare', fields=[ ('nid', models.AutoField(primary_key=True, serialize=False)), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('title', models.CharField(default='xx', max_length=20, verbose_name='博客概要')), ('desc', models.TextField(verbose_name='博客知识点概要')), ('url', models.URLField(verbose_name='分享博客地址')), ('isFavor', models.IntegerField(verbose_name='点赞数')), ], ), migrations.CreateModel( name='UserInfo', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('nid', models.AutoField(primary_key=True, serialize=False)), ('phone', models.CharField(max_length=11, null=True, verbose_name='学员电话')), ('signature', models.CharField(default='如果你有理想的话,就努力去实现', max_length=32, verbose_name='签名')), ('gender', models.IntegerField(choices=[(1, '男'), (2, '女')], default=1, verbose_name='用户性别')), ('addr', models.CharField(max_length=16, null=True, verbose_name='用户地址')), ('head_image', models.FileField(default='Head/default.png', upload_to='Head/', verbose_name='用户头像')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('url', models.URLField(null=True, verbose_name='博客地址')), ('status', models.BooleanField(default=1)), ('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')), ('modules', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Luffy.Module', verbose_name='所属模块')), ('teams', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Luffy.Team', verbose_name='所属小组')), ('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.AddField( model_name='urlshare', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='summary', name='types', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='Luffy.Types', verbose_name='总结类型'), ), migrations.AddField( model_name='summary', name='user', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='所属学员'), ), migrations.AddField( model_name='share', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='所属学员'), ), migrations.AddField( model_name='favor', name='url', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='Luffy.UrlShare'), ), migrations.AddField( model_name='favor', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='comment', name='share', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='Luffy.Share'), ), migrations.AddField( model_name='comment', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, 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')), ('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.ASCIIUsernameValidator()], 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')), ('avatar', models.ImageField(blank=True, default='avatar/default.png', max_length=200, null=True, upload_to='avatar/%Y/%m', verbose_name='\u7528\u6237\u5934\u50cf')), ('qq', models.CharField(blank=True, max_length=20, null=True, verbose_name='QQ\u53f7\u7801')), ('mobile', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name='\u624b\u673a\u53f7\u7801')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'ordering': ['-id'], 'verbose_name': '\u7528\u6237', 'verbose_name_plural': '\u7528\u6237', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='\u5e7f\u544a\u6807\u9898')), ('description', models.CharField(max_length=200, verbose_name='\u5e7f\u544a\u63cf\u8ff0')), ('image_url', models.ImageField(upload_to='ad/%Y/%m', verbose_name='\u56fe\u7247\u8def\u5f84')), ('callback_url', models.URLField(blank=True, null=True, verbose_name='\u56de\u8c03url')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='\u53d1\u5e03\u65f6\u95f4')), ('index', models.IntegerField(default=999, verbose_name='\u6392\u5217\u987a\u5e8f(\u4ece\u5c0f\u5230\u5927)')), ], options={ 'ordering': ['index', 'id'], 'verbose_name': '\u5e7f\u544a', 'verbose_name_plural': '\u5e7f\u544a', }, ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='\u6587\u7ae0\u6807\u9898')), ('desc', models.CharField(max_length=50, verbose_name='\u6587\u7ae0\u63cf\u8ff0')), ('content', models.TextField(verbose_name='\u6587\u7ae0\u5185\u5bb9')), ('click_count', models.IntegerField(default=0, verbose_name='\u70b9\u51fb\u6b21\u6570')), ('is_recommend', models.BooleanField(default=False, verbose_name='\u662f\u5426\u63a8\u8350')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='\u53d1\u5e03\u65f6\u95f4')), ], options={ 'ordering': ['-date_publish'], 'verbose_name': '\u6587\u7ae0', 'verbose_name_plural': '\u6587\u7ae0', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='\u5206\u7c7b\u540d\u79f0')), ('index', models.IntegerField(default=999, verbose_name='\u663e\u793a\u987a\u5e8f(\u4ece\u5c0f\u5230\u5927)')), ], options={ 'ordering': ['index', 'id'], 'verbose_name': '\u5206\u7c7b', 'verbose_name_plural': '\u5206\u7c7b', }, ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(verbose_name='\u8bc4\u8bba\u5185\u5bb9')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='\u53d1\u5e03\u65f6\u95f4')), ('article', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Article', verbose_name='\u6587\u7ae0')), ('pid', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Comment', verbose_name='\u7236\u7ea7\u8bc4\u8bba')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u7528\u6237')), ], options={ 'ordering': ['-date_publish'], 'verbose_name': '\u8bc4\u8bba', 'verbose_name_plural': '\u8bc4\u8bba', }, ), migrations.CreateModel( name='Links', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50, verbose_name='\u6807\u9898')), ('description', models.CharField(max_length=200, verbose_name='\u53cb\u60c5\u94fe\u63a5\u63cf\u8ff0')), ('callback_url', models.URLField(verbose_name='url\u5730\u5740')), ('date_publish', models.DateTimeField(auto_now_add=True, verbose_name='\u53d1\u5e03\u65f6\u95f4')), ('index', models.IntegerField(default=999, verbose_name='\u6392\u5217\u987a\u5e8f(\u4ece\u5c0f\u5230\u5927)')), ], options={ 'ordering': ['index', 'id'], 'verbose_name': '\u53cb\u60c5\u94fe\u63a5', 'verbose_name_plural': '\u53cb\u60c5\u94fe\u63a5', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='\u6807\u7b7e\u540d\u79f0')), ], options={ 'ordering': ['id'], 'verbose_name': '\u6807\u7b7e', 'verbose_name_plural': '\u6807\u7b7e', }, ), migrations.AddField( model_name='article', name='category', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.Category', verbose_name='\u5206\u7c7b'), ), migrations.AddField( model_name='article', name='tag', field=models.ManyToManyField(to='blog.Tag', verbose_name='\u6807\u7b7e'), ), migrations.AddField( model_name='article', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='\u7528\u6237'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('image', models.ImageField(upload_to='media/banner/%Y/%m', verbose_name='轮播图')), ('url', models.URLField(verbose_name='访问地址')), ('index', models.IntegerField(default=100, verbose_name='顺序')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', }, ), migrations.CreateModel( name='EmailVerifyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=20, verbose_name='验证码')), ('email', models.EmailField(max_length=50, verbose_name='邮箱')), ('send_type', models.CharField(choices=[('register', '注册'), ('forget', '找回密码'), ('update_email', '修改邮箱')], max_length=12, verbose_name='验证码类型')), ('send_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='发送时间')), ], options={ 'verbose_name': '邮箱验证码', 'verbose_name_plural': '邮箱验证码', }, ), 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')), ('birthday', models.DateField(blank=True, null=True, verbose_name='生日')), ('gender', models.CharField(choices=[('male', '男'), ('female', '女')], default='female', max_length=6, verbose_name='性别')), ('address', models.CharField(default='', max_length=100, verbose_name='地址')), ('mobile', models.CharField(default='', max_length=11, verbose_name='移动电话')), ('image', models.ImageField(default='media/image/default.png', upload_to='media/image/%Y/%m', verbose_name='头像')), ('special_id', models.CharField(default='', max_length=9, verbose_name='学号')), ('stu_college_major', models.CharField(blank=True, choices=[('rjxyrjgc', '软件学院 软件工程'), ('rjxywlaq', '软件学院 网络安全'), ('gjxxyrjxy', '国际信息与软件学院'), ('wdzxy', '微电子学院')], default='rjxyrjgc', max_length=20, null=True, verbose_name='学院专业')), ('teacher_title', models.CharField(blank=True, default='', max_length=10, null=True, verbose_name='职称')), ('score', models.IntegerField(default=0, verbose_name='积分')), ('is_teacher', models.BooleanField(default=False, verbose_name='是否为老师')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': '用户信息', 'verbose_name_plural': '用户信息', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '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')), ('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.EmailField(blank=True, max_length=255, unique=True, verbose_name='email address')), ('phone', models.CharField(blank=True, default='', max_length=32, verbose_name='电话')), ('full_name', models.CharField(blank=True, default='', max_length=32, verbose_name='中文姓名')), ('user_id', models.CharField(blank=True, default='', max_length=32, unique=True, verbose_name='工号')), ('avatar', models.URLField( blank=True, default= 'https://img1.doubanio.com/view/group_topic/large/public/p116915028.jpg', max_length=256, verbose_name='头像url')), ('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()), ], ), ]