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')), ('email', models.EmailField(max_length=50, unique=True)), ('is_active', models.BooleanField(default=True)), ('is_staff', 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={ 'abstract': False, }, ), migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('img', models.ImageField(blank=True, null=True, upload_to=api.models.upload_event_path)), ('useEvent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userEvent', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Log', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField(auto_now_add=True)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.event')), ('userLog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userLog', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Detail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('weight', models.DecimalField(decimal_places=1, default=0.0, max_digits=4, validators=[django.core.validators.MinValueValidator(0.0), django.core.validators.MaxValueValidator(999.9)])), ('times', models.PositiveSmallIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(999)])), ('log', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.log')), ('userDetail', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userDetail', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='Game', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(max_length=150)), ('is_active', models.BooleanField(default=False)), ('deck', api.models.CardDeckField(max_length=160, null=True)), ('small_blind', models.PositiveIntegerField(default=0)), ('big_blind', models.PositiveIntegerField(default=0)), ('created_on', models.DateTimeField(auto_now_add=True)), ('created_by', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Player', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('chips', models.PositiveIntegerField(default=0)), ('sit_num', models.PositiveSmallIntegerField(default=0)), ('is_admin', models.BooleanField(default=False)), ('user', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ], ), migrations.DeleteModel(name='Room', ), migrations.AddField( model_name='game', name='players', field=models.ManyToManyField(to='api.Player'), ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0011_auto_20201123_1201'), ] operations = [ migrations.AlterField( model_name='product', name='thumbnail', field=imagekit.models.fields.ProcessedImageField( blank=True, null=True, upload_to=api.models.product_directory_path), ), migrations.AlterField( model_name='productimage', name='image', field=models.ImageField( upload_to=api.models.productimage_directory_path), ), migrations.AlterUniqueTogether( name='productimage', unique_together={('product', 'image_type', 'order')}, ), migrations.CreateModel( name='ProductQnA', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('order', models.PositiveSmallIntegerField(verbose_name='순서')), ('question', models.CharField(max_length=100, verbose_name='질문')), ('answer', models.CharField(max_length=100, verbose_name='대답')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Product')), ], options={ 'verbose_name': '상품 문답', 'verbose_name_plural': '상품 문답 목록', 'unique_together': {('product', 'order')}, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=300)), ('description', models.TextField(max_length=1000)), ('price', models.IntegerField()), ('city', models.CharField(max_length=100)), ('category', models.CharField(max_length=100)), ('color', models.PositiveSmallIntegerField(choices=[(1, 'red'), (2, 'green'), (3, 'blue')], default='red')), ('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Article', 'verbose_name_plural': 'Articles', }, ), migrations.CreateModel( name='FavoriteArticle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Article')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ArticleImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.FileField(blank=True, null=True, upload_to=api.models.image_path)), ('article', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Article')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Game', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField(auto_now_add=True)), ('modified_on', models.DateTimeField(auto_now=True)), ('number', models.PositiveSmallIntegerField( default=api.models.Game.random_number)), ('question_limit', models.PositiveSmallIntegerField(default=5)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField(auto_now_add=True)), ('modified_on', models.DateTimeField(auto_now=True)), ('number', models.PositiveSmallIntegerField(blank=True, null=True)), ('type', models.CharField(max_length=10)), ('is_correct', models.BooleanField()), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='api.Game')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Guess', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_on', models.DateTimeField(auto_now_add=True)), ('modified_on', models.DateTimeField(auto_now=True)), ('number', models.PositiveSmallIntegerField()), ('game', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='api.Game')), ], options={ 'verbose_name_plural': 'guesses', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('firstName', models.CharField(max_length=300)), ('lastName', models.CharField(max_length=300)), ('ssn', models.CharField(max_length=10)), ('email', models.EmailField(max_length=254)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Building', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=300)), ], ), migrations.CreateModel( name='College', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('college_name', models.CharField(max_length=300)), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('code', models.IntegerField()), ('name', models.CharField(max_length=300)), ], ), migrations.CreateModel( name='Field', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=300)), ('code', models.PositiveSmallIntegerField()), ], ), migrations.CreateModel( name='Homework', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=200)), ('question_file', models.FileField( upload_to=api.models.upload_homework_question_to)), ('solution_file', models.FileField( upload_to=api.models.upload_homework_solution_to)), ('grades_file', models.FileField( upload_to=api.models.upload_homework_grades_to)), ], ), migrations.CreateModel( name='Role', fields=[ ('id', models.PositiveSmallIntegerField(choices=[(1, 'student'), (2, 'professor'), (3, 'staff'), (4, 'admin')], primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='Section', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=300)), ('semester', models.CharField(choices=[('first', 'First'), ('second', 'Second')], max_length=6)), ('classNumber', models.IntegerField()), ('year', models.IntegerField( choices=[(2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019)])), ('day1InWeek', models.CharField(choices=[('Sat', 'Saturday'), ('Sun', 'Sunday'), ('Mon', 'Monday'), ('Tue', 'Tuesday'), ('Wed', 'Wednesday'), ('Thu', 'Thursday'), ('Fri', 'Friday')], max_length=20)), ('day2InWeek', models.CharField(choices=[('Sat', 'Saturday'), ('Sun', 'Sunday'), ('Mon', 'Monday'), ('Tue', 'Tuesday'), ('Wed', 'Wednesday'), ('Thu', 'Thursday'), ('Fri', 'Friday')], max_length=20)), ('startTime', models.CharField(max_length=20)), ('endTime', models.CharField(max_length=20)), ('building', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Building')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Course')), ('professor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='prof', to=settings.AUTH_USER_MODEL)), ('student', models.ManyToManyField(related_name='stu', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=300)), ('file', models.FileField(upload_to=api.models.upload_video_to)), ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Section')), ], ), migrations.CreateModel( name='Solution', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('file', models.FileField(upload_to=api.models.upload_solution_to)), ('deliverTime', models.DateTimeField(auto_now_add=True)), ('homework', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Homework')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=300)), ('content', models.TextField()), ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Section')), ], ), migrations.AddField( model_name='homework', name='section', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Section'), ), migrations.CreateModel( name='Document', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=300)), ('file', models.FileField(upload_to=api.models.upload_document_to)), ('section', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Section')), ], ), migrations.CreateModel( name='Department', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('dep_name', models.CharField(max_length=300)), ('college', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.College')), ], ), migrations.AddField( model_name='course', name='department', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Department'), ), migrations.AddField( model_name='user', name='field', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Field'), ), 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='roles', field=models.ManyToManyField(to='api.Role'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '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')), ('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')), ('full_name', models.CharField(max_length=100, verbose_name='ФИО')), ('role', models.CharField(choices=[('client', 'Клиент'), ('manager', 'Менеджер')], default='client', max_length=10, verbose_name='Роль пользователя')), ('mailing_address', models.CharField(max_length=100, verbose_name='Адрес доставки')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')), ('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', api.models.UserManager()), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ 'verbose_name': 'Корзина', 'verbose_name_plural': 'Корзины', }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vendor_code', models.CharField(max_length=100, unique=True, verbose_name='артикул')), ('name', models.CharField(max_length=64, verbose_name='наименование')), ('retail_price', models.PositiveSmallIntegerField( verbose_name='Розничная цена')), ('purchase_price', models.PositiveSmallIntegerField( verbose_name='Цена закупки')), ], options={ 'verbose_name': 'Товар', 'verbose_name_plural': 'Товары', }, ), migrations.CreateModel( name='ProductsInOrder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveSmallIntegerField( verbose_name='количество товара')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='корзина', to='api.order')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='товар', to='api.product')), ], ), migrations.AddField( model_name='order', name='products', field=models.ManyToManyField(through='api.ProductsInOrder', to='api.Product', verbose_name='Товары в корзине'), ), migrations.AddField( model_name='order', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='order', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('slug', models.SlugField(max_length=150, unique=True)), ], options={ 'verbose_name': 'Категория', 'verbose_name_plural': 'Категории', }, bases=(api.models.SlugMixin, models.Model), ), migrations.CreateModel( name='Genre', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('slug', models.SlugField(max_length=150, unique=True)), ], options={ 'verbose_name': 'Жанр', 'verbose_name_plural': 'Жанры', }, bases=(api.models.SlugMixin, models.Model), ), migrations.CreateModel( name='Title', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('year', models.IntegerField(blank=True, null=True)), ('description', models.CharField(blank=True, max_length=400)), ('category', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.Category', verbose_name='Категория')), ('genre', models.ManyToManyField(to='api.Genre', verbose_name='Жанр')), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('score', models.PositiveSmallIntegerField(validators=[ django.core.validators.MinValueValidator( 1, message='оценка не может быть меньше 1'), django.core.validators.MaxValueValidator( 10, message='оценка не может быть больше 10') ])), ('pub_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Дата публикации')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to=settings.AUTH_USER_MODEL)), ('title', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='api.Title')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('pub_date', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Дата публикации')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to=settings.AUTH_USER_MODEL)), ('review', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='api.Review')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('latitude', models.FloatField(blank=True, null=True)), ('longitude', models.FloatField(blank=True, null=True)), ('pincode', models.CharField(max_length=9)), ('extra', models.CharField(blank=True, max_length=100, null=True)), ], options={ 'db_table': 'address', 'managed': True, }, ), migrations.CreateModel( name='Appointment', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('create_on', models.DateTimeField(default=api.models.current_timestamp)), ('date', models.DateField()), ('time', models.TimeField()), ], ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=60)), ('code', models.IntegerField(unique=True)), ], options={ 'db_table': 'cities', 'managed': True, }, ), migrations.CreateModel( name='Clinician', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('work_timings', django.contrib.postgres.fields.ArrayField( base_field=django.contrib.postgres.fields.ArrayField( base_field=models.TimeField(), size=2), size=7)), ('break_timings', django.contrib.postgres.fields.ArrayField( base_field=django.contrib.postgres.fields.ArrayField( base_field=models.TimeField(), size=2), size=7)), ('vacations', django.contrib.postgres.fields.ArrayField( base_field=django.contrib.postgres.fields.ArrayField( base_field=models.DateField(), size=2), size=None)), ('education', models.TextField()), ('experience', django.contrib.postgres.fields.ArrayField( base_field=models.TextField(), size=None)), ], options={ 'db_table': 'clinicians', 'managed': True, }, ), migrations.CreateModel( name='Country', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=50, unique=True)), ('code', models.IntegerField(unique=True)), ], options={ 'db_table': 'countries', 'managed': True, }, ), migrations.CreateModel( name='Coupon', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('uid', models.UUIDField(default=uuid.uuid4, editable=False)), ('name', models.CharField(max_length=30)), ('quantity', models.PositiveSmallIntegerField()), ('validty', models.BooleanField(default=True)), ('expiry', models.DateField()), ('date_added', models.DateTimeField(default=api.models.current_timestamp, editable=False)), ], options={ 'db_table': 'coupons', 'managed': True, }, ), migrations.CreateModel( name='DiscountCard', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('code', models.CharField(max_length=3)), ('name', models.CharField(max_length=40, unique=True)), ('description', models.TextField(blank=True, null=True)), ('quantity', models.PositiveSmallIntegerField(default=0)), ('price', models.PositiveSmallIntegerField(default=0)), ('validity', models.DateField()), ], options={ 'db_table': 'discountcards', 'managed': True, }, ), migrations.CreateModel( name='District', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=60)), ('code', models.IntegerField(unique=True)), ('city', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.City')), ], options={ 'db_table': 'districts', 'managed': True, }, ), migrations.CreateModel( name='HealthCheckup', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=40, unique=True)), ('description', models.TextField()), ('price', models.PositiveSmallIntegerField(default=0)), ('image', models.ImageField(upload_to='health_checks')), ], options={ 'db_table': 'healthchecks', 'managed': True, }, ), migrations.CreateModel( name='Provider', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('is_branch', models.BooleanField(default=False)), ('active_from', models.DateField()), ('address', models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.Address')), ('clinicians', models.ManyToManyField(to='api.Clinician')), ('parent_provider', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='api.Provider')), ], options={ 'db_table': 'providers', 'managed': True, }, ), migrations.CreateModel( name='Question', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('question', models.CharField(max_length=100)), ], options={ 'db_table': 'questions', 'managed': True, }, ), migrations.CreateModel( name='Reseller', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ], options={ 'db_table': 'resellers', 'managed': True, }, ), migrations.CreateModel( name='SalesAgent', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('resellers', models.ManyToManyField(to='api.Reseller')), ], options={ 'db_table': 'salesagents', 'managed': True, }, ), migrations.CreateModel( name='Seeker', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('profession', models.CharField(choices=[('doctor', 'doctor'), ('teacher', 'teacher'), ('engineer', 'engineer'), ('professor', 'professor'), ('business', 'business'), ('other', 'other')], max_length=100)), ('language', models.CharField(choices=[('english', 'english'), ('hindi', 'hindi'), ('telugu', 'telugu'), ('marathi', 'marathi'), ('malayalam', 'malayalam'), ('gujarati', 'gujarati'), ('bhojpuri', 'bhojpuri'), ('tamil', 'tamil'), ('other', 'other')], max_length=100)), ('dob', models.DateField()), ('profile_pic', models.ImageField(default='default_profile.jpg', upload_to='profile_pics')), ('family', models.ManyToManyField(related_name='_seeker_family_+', to='api.Seeker')), ], options={ 'db_table': 'seekers', 'managed': True, }, ), migrations.CreateModel( name='Speciality', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=50, unique=True)), ('description', models.TextField()), ], options={ 'db_table': 'specialities', 'managed': True, }, ), migrations.CreateModel( name='Sponsor', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('org_name', models.CharField(max_length=50)), ('org_size', models.PositiveSmallIntegerField(default=10)), ], options={ 'db_table': 'sponsors', 'managed': True, }, ), migrations.CreateModel( name='State', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=60)), ('code', models.IntegerField(unique=True)), ('country', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.Country')), ], options={ 'db_table': 'states', 'managed': True, }, ), migrations.CreateModel( name='Test', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=40)), ('code', models.CharField(max_length=10)), ('department', models.CharField(max_length=70)), ('description', models.TextField()), ], options={ 'db_table': 'tests', 'managed': True, }, ), migrations.CreateModel( name='TestCategory', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=40)), ('description', models.TextField()), ], options={ 'db_table': 'test_categories', 'managed': True, }, ), migrations.CreateModel( name='Testimonial', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('text', models.TextField()), ('date_added', models.DateTimeField(default=api.models.current_timestamp)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.Seeker')), ], options={ 'db_table': 'testimonials', 'managed': True, }, ), migrations.CreateModel( name='TestSubcategory', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=40)), ('description', models.TextField()), ('category', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.TestCategory')), ], options={ 'db_table': 'test_subcategories', 'managed': True, }, ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('uid', models.UUIDField(default=uuid.uuid4, editable=False)), ('IP', models.GenericIPAddressField(editable=False)), ('timestamp', models.DateTimeField(default=api.models.current_timestamp, editable=False)), ('amount', models.PositiveSmallIntegerField(default=0)), ('status', models.CharField(choices=[('1', 'Paid to Pheatlh'), ('2', 'Paid to user'), ('3', 'Pending'), ('4', 'Failed')], max_length=1)), ], options={ 'db_table': 'transactions', 'managed': True, }, ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('status', models.NullBooleanField(default=True, editable=False)), ('role', models.CharField(choices=[('healthprovider', 'healthprovider'), ('healthseeker', 'healthseeker'), ('clinician', 'clinician'), ('sponsor', 'sponsor'), ('salesagent', 'salesagent'), ('reseller', 'reseller'), ('admin', 'admin')], editable=False, max_length=30)), ('reg_date', models.DateTimeField(default=api.models.current_timestamp, editable=False)), ('last_update', models.DateTimeField(editable=False)), ('last_IP', models.GenericIPAddressField(editable=False)), ('email', models.EmailField(max_length=254)), ('name', models.CharField(max_length=150)), ('mobile', models.CharField(max_length=15, validators=[ django.core.validators.RegexValidator( message='Invalid Number', regex='^(\\+\\d{1,3}[- ]?)?\\d{10}$') ])), ('password', models.CharField(max_length=100)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], max_length=1)), ('answer', models.CharField(max_length=100)), ('question', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.Question')), ], options={ 'db_table': 'users', 'managed': True, }, ), migrations.AddField( model_name='transaction', name='receiver', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, related_name='received', to='api.User'), ), migrations.AddField( model_name='transaction', name='sender', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, related_name='issued', to='api.User'), ), migrations.AddField( model_name='test', name='subcategory', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.TestSubcategory'), ), migrations.AddField( model_name='sponsor', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='seeker', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='salesagent', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='reseller', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='provider', name='poc', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='provider', name='specialities', field=models.ManyToManyField(to='api.Speciality'), ), migrations.AddField( model_name='healthcheckup', name='tests', field=models.ManyToManyField(to='api.Test'), ), migrations.AddField( model_name='discountcard', name='health_checkups', field=models.ManyToManyField(to='api.HealthCheckup'), ), migrations.AddField( model_name='clinician', name='specialities', field=models.ManyToManyField(to='api.Speciality'), ), migrations.AddField( model_name='clinician', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.DO_NOTHING, to='api.User'), ), migrations.AddField( model_name='city', name='state', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.State'), ), migrations.AddField( model_name='appointment', name='provider', field=models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='api.Provider'), ), migrations.AddField( model_name='appointment', name='under', field=models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='api.Clinician'), ), migrations.AddField( model_name='address', name='district', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='api.District'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] 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')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('name', models.CharField(max_length=255, verbose_name='name')), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Category', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=128)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Channel', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('number', models.CharField(max_length=8)), ('name', models.CharField(max_length=8)), ('callsign', models.CharField(max_length=32)), ('stream', models.CharField(max_length=256, null=True)), ('hd', models.BooleanField(default=False)), ], bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Device', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('user_agent', models.TextField(unique=True)), ('last_ip_address', models.GenericIPAddressField(null=True)), ('device_brand', models.CharField(max_length=32, null=True)), ('device_family', models.CharField(max_length=32, null=True)), ('device_model', models.CharField(max_length=32, null=True)), ('os_family', models.CharField(max_length=32, null=True)), ('os_major', models.CharField(max_length=32, null=True)), ('os_minor', models.CharField(max_length=32, null=True)), ('os_patch', models.CharField(max_length=32, null=True)), ('os_patch_minor', models.CharField(max_length=32, null=True)), ('user_agent_family', models.CharField(max_length=32, null=True)), ('user_agent_major', models.CharField(max_length=32, null=True)), ('user_agent_minor', models.CharField(max_length=32, null=True)), ('user_agent_patch', models.CharField(max_length=32, null=True)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='DeviceCursor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cursor', models.DecimalField(decimal_places=6, default=0.0, max_digits=12)), ('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='devicecursor', to='api.Device')), ], bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Episode', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('season', models.PositiveSmallIntegerField(null=True)), ('episode', models.PositiveSmallIntegerField(null=True)), ], bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Image', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('url', models.URLField(unique=True)), ], ), migrations.CreateModel( name='Media', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('type', models.SmallIntegerField(choices=[(0, 'Movie'), (1, 'Series'), (2, 'Show')])), ('title', models.CharField(max_length=256)), ('subtitle', models.CharField(max_length=256)), ('desc', models.TextField()), ('year', models.SmallIntegerField(null=True)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='MediaActor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Person', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=16)), ], ), migrations.CreateModel( name='Program', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('program_id', models.CharField(max_length=32, unique=True)), ('season', models.PositiveSmallIntegerField(null=True)), ('episode', models.PositiveSmallIntegerField(null=True)), ('title', models.CharField(max_length=256)), ('subtitle', models.CharField(max_length=256, null=True)), ('desc', models.TextField(null=True)), ('previously_shown', models.BooleanField(default=True)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='ProgramActor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('person', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Person')), ('program', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Program')), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Rating', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=16)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Recording', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('start', models.DateTimeField()), ('stop', models.DateTimeField()), ('status', models.SmallIntegerField(choices=[(0, 'none'), (1, 'recording'), (2, 'error'), (3, 'done')], default=0)), ('pid', models.IntegerField(null=True)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Schedule', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('start', models.DateTimeField()), ('stop', models.DateTimeField()), ('duration', models.IntegerField()), ('channel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='programs', to='api.Channel')), ('program', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='schedules', to='api.Program')), ('rating', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Rating')), ], bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Stream', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('type', models.SmallIntegerField(choices=[(0, 'hls'), (1, 'raw')])), ('path', api.models.DirectoryPathField(max_length=256, null=True)), ('pid', models.IntegerField(null=True)), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Tuner', fields=[ ('created', models.DateTimeField(editable=False)), ('modified', models.DateTimeField(editable=False)), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('device_id', models.IntegerField(unique=True)), ('device_ip', models.GenericIPAddressField()), ('model', models.CharField(max_length=48)), ('tuner_count', models.SmallIntegerField()), ], options={ 'abstract': False, }, bases=(api.models.UpdateMixin, models.Model), ), migrations.CreateModel( name='Movie', fields=[ ('media_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Media')), ('width', models.SmallIntegerField(null=True)), ('height', models.SmallIntegerField(null=True)), ('video_enc', models.CharField(max_length=32, null=True)), ('size', models.IntegerField(null=True)), ('audio_enc', models.CharField(max_length=32, null=True)), ('duration', models.DecimalField(decimal_places=6, max_digits=12, null=True)), ('format', models.CharField(max_length=32, null=True)), ('play_count', models.IntegerField(default=0)), ('path', api.models.FilePathField(auto_create_parent=True, max_length=256, must_exist=False, relative_to='/var/tmp/dsdvr/media')), ], options={ 'abstract': False, }, bases=('api.media',), ), migrations.CreateModel( name='Series', fields=[ ('media_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Media')), ], options={ 'abstract': False, }, bases=('api.media',), ), migrations.CreateModel( name='Show', fields=[ ('media_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Media')), ('width', models.SmallIntegerField(null=True)), ('height', models.SmallIntegerField(null=True)), ('video_enc', models.CharField(max_length=32, null=True)), ('size', models.IntegerField(null=True)), ('audio_enc', models.CharField(max_length=32, null=True)), ('duration', models.DecimalField(decimal_places=6, max_digits=12, null=True)), ('format', models.CharField(max_length=32, null=True)), ('play_count', models.IntegerField(default=0)), ('path', api.models.FilePathField(auto_create_parent=True, max_length=256, must_exist=False, relative_to='/var/tmp/dsdvr/media')), ], options={ 'abstract': False, }, bases=('api.media',), ), migrations.AddField( model_name='stream', name='media', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='stream', to='api.Media'), ), migrations.AddField( model_name='recording', name='media', field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='recording', to='api.Media'), ), migrations.AddField( model_name='recording', name='program', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='recording', to='api.Program'), ), migrations.AddField( model_name='program', name='actors', field=models.ManyToManyField(through='api.ProgramActor', to='api.Person'), ), migrations.AddField( model_name='program', name='categories', field=models.ManyToManyField(related_name='programs', to='api.Category'), ), migrations.AddField( model_name='program', name='images', field=models.ManyToManyField(related_name='programs', to='api.Image'), ), migrations.AddField( model_name='program', name='poster', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='program_posters', to='api.Image'), ), migrations.AddField( model_name='mediaactor', name='media', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Media'), ), migrations.AddField( model_name='mediaactor', name='person', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Person'), ), migrations.AddField( model_name='media', name='actors', field=models.ManyToManyField(through='api.MediaActor', to='api.Person'), ), migrations.AddField( model_name='media', name='categories', field=models.ManyToManyField(related_name='media', to='api.Category'), ), migrations.AddField( model_name='media', name='images', field=models.ManyToManyField(related_name='media', to='api.Image'), ), migrations.AddField( model_name='media', name='poster', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='media_posters', to='api.Image'), ), migrations.AddField( model_name='media', name='rating', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Rating'), ), migrations.AddField( model_name='devicecursor', name='stream', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='devicecursor', to='api.Stream'), ), migrations.AddField( model_name='channel', name='images', field=models.ManyToManyField(related_name='channels', to='api.Image'), ), migrations.AddField( model_name='channel', name='poster', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='channel_posters', to='api.Image'), ), migrations.AddField( model_name='channel', name='tuner', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='channels', to='api.Tuner'), ), migrations.AddField( model_name='show', name='program', field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='shows', to='api.Program'), ), migrations.AddField( model_name='show', name='series', field=models.ManyToManyField(through='api.Episode', to='api.Series'), ), migrations.AlterUniqueTogether( name='schedule', unique_together={('channel', 'start'), ('channel', 'stop')}, ), migrations.AddField( model_name='movie', name='program', field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='movies', to='api.Program'), ), migrations.AddField( model_name='episode', name='series', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Series'), ), migrations.AddField( model_name='episode', name='show', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='api.Show'), ), migrations.AlterUniqueTogether( name='devicecursor', unique_together={('device', 'cursor')}, ), migrations.AlterUniqueTogether( name='channel', unique_together={('tuner', 'number')}, ), ]
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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('name', models.CharField(max_length=50)), ('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')), ('university', models.CharField(max_length=100)), ('research', models.TextField(blank=True, max_length=300, null=True)), ('gender', models.CharField(choices=[('male', '男'), ('female', '女'), ('other', 'その他')], default='male', max_length=10)), ('age', models.PositiveSmallIntegerField(blank=True, null=True)), ('position', models.CharField(max_length=100)), ('self_introduction', models.TextField(blank=True, max_length=300, null=True)), ('birthday', models.DateField(blank=True, null=True)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', api.models.UserManager()), ], ), migrations.CreateModel( name='Invitation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('content', models.CharField(blank=True, max_length=300, null=True)), ('date', models.DateField()), ('place', models.CharField(max_length=100)), ('created_at', models.DateTimeField(default=django.utils.timezone.now)), ('tags', models.CharField(blank=True, max_length=100, null=True)), ('status', models.CharField(choices=[('seeking', '募集中'), ('applied', '承認待ち'), ('accepted', '承認済み')], default='seeking', max_length=10)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='invitations', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Application', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(choices=[('applied', '承認待ち'), ('accepted', '承認済み'), ('denied', '拒否')], max_length=10)), ('applicant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='applications', to=settings.AUTH_USER_MODEL)), ('invitation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='applications', to='api.invitation')), ], ), ]
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', api.models.CustomerUserManager()), ], ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('course_code', models.CharField(max_length=20)), ], ), migrations.CreateModel( name='Note', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=80)), ('academic_year', models.IntegerField()), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Course')), ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='School', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=80, unique=True)), ('thumbnail_url', models.URLField()), ('city', models.CharField(max_length=80)), ('state', models.CharField(max_length=80)), ('country', models.CharField(max_length=80)), ], ), migrations.CreateModel( name='Purchase', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Note')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='course', name='school', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.School'), ), migrations.CreateModel( name='Sheet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('storage_location', models.CharField(max_length=256)), ('order', models.PositiveSmallIntegerField()), ('is_secret', models.BooleanField()), ('file_type', models.CharField(max_length=30)), ('file_name', models.CharField(max_length=128)), ('note', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Note')), ], options={ 'unique_together': {('note', 'order')}, }, ), migrations.AlterUniqueTogether( name='course', unique_together={('course_code', 'school')}, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('api', '0016_auto_20201130_1701'), ] operations = [ migrations.RenameModel( old_name='ProductQnA', new_name='ProductFaq', ), migrations.AlterField( model_name='product', name='address', field=models.CharField(max_length=200, verbose_name='농지 주소'), ), migrations.AlterField( model_name='product', name='category', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.SmallCategory', verbose_name='상품 분류'), ), migrations.AlterField( model_name='product', name='description', field=models.CharField(max_length=100, verbose_name='상품 설명'), ), migrations.AlterField( model_name='product', name='free_shipping', field=models.BooleanField(default=False, verbose_name='무료 배송'), ), migrations.AlterField( model_name='product', name='low_cabon', field=models.BooleanField(default=False, verbose_name='저탄소'), ), migrations.AlterField( model_name='product', name='low_pesticide', field=models.BooleanField(default=False, verbose_name='저농약'), ), migrations.AlterField( model_name='product', name='name', field=models.CharField(max_length=100, verbose_name='상품명'), ), migrations.AlterField( model_name='product', name='natural', field=models.BooleanField(default=False, verbose_name='자연산'), ), migrations.AlterField( model_name='product', name='organic', field=models.BooleanField(default=False, verbose_name='유기농'), ), migrations.AlterField( model_name='product', name='pesticide_free', field=models.BooleanField(default=False, verbose_name='무농약'), ), migrations.AlterField( model_name='product', name='price', field=models.PositiveIntegerField(verbose_name='가격'), ), migrations.AlterField( model_name='product', name='same_day_shipping', field=models.BooleanField(default=False, verbose_name='당일 발송'), ), migrations.AlterField( model_name='product', name='seller', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='판매자'), ), migrations.AlterField( model_name='product', name='thumbnail', field=imagekit.models.fields.ProcessedImageField( blank=True, null=True, upload_to=api.models.product_directory_path, verbose_name='대표 섬네일'), ), migrations.AlterField( model_name='product', name='view_count', field=models.PositiveSmallIntegerField(default=0, verbose_name='조회수'), ), ]