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')), ('email', models.EmailField(max_length=255, unique=True)), ('name', models.CharField(max_length=255)), ('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='Ingredient', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Recipe', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('time_minutes', models.IntegerField()), ('price', models.DecimalField(decimal_places=2, max_digits=5)), ('link', models.CharField(blank=True, max_length=255)), ('image', models.ImageField(null=True, upload_to=api.models.recipe_image_file_path)), ('ingredients', models.ManyToManyField(to='api.Ingredient')), ('tags', models.ManyToManyField(to='api.Tag')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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=58, 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='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nickName', models.CharField(max_length=20)), ('created_on', models.DateTimeField(auto_now_add=True)), ('img', models.ImageField(blank=True, null=True, upload_to=api.models.upload_avatar_path)), ('userProfile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='userProfile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('created_on', models.DateTimeField(auto_now_add=True)), ('img', models.ImageField(blank=True, null=True, upload_to=api.models.upload_post_path)), ('liked', models.ManyToManyField(blank=True, related_name='liked', to=settings.AUTH_USER_MODEL)), ('userPost', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userPost', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.CharField(max_length=100)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Post')), ('userComment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userComment', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('email', models.EmailField(max_length=255, unique=True)), ('name', models.CharField(max_length=20)), ('cellphone', models.CharField(max_length=20)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('date_joined', models.DateTimeField(auto_now_add=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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', api.models.UserManager()), ], ), ]
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 = [ ('api', '0022_auto_20200511_1305'), ] operations = [ migrations.AddField( model_name='ogroup', name='members', field=models.ManyToManyField(through='api.OGroupMembers', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='ogroupmembers', name='priveledges', field=django.contrib.postgres.fields.jsonb.JSONField( default=api.models.OGroupMembers.defaultPrivaledges, verbose_name="User's priveledges in the group"), ), migrations.AlterField( model_name='ogroupmembers', name='group', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='groupmembers', to='api.OGroup'), ), migrations.AlterUniqueTogether( name='ogroupmembers', unique_together={('group', 'member')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] 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=100)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('image', models.ImageField(blank=True, null=True, upload_to=api.models.get_image_path)), ('categories', models.ManyToManyField(to='api.Category')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Conversation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.CharField(default=uuid.uuid4, max_length=64, null=True, unique=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('participants', models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('updated_at', ), }, ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uid', models.CharField(default=uuid.uuid4, max_length=64, null=True, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('text', models.TextField( validators=[api.models.validate_message_content])), ('conversation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Conversation')), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('created_at', ), }, ), ]
class Migration(migrations.Migration): dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ('api', '0001_initial'), ] operations = [ migrations.AlterModelManagers( name='user', managers=[ ('objects', api.models.UserManager()), ], ), 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='is_superuser', field=models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status'), ), 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.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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(max_length=255, unique=True)), ('username', models.CharField(max_length=50, unique=True)), ('password', models.CharField(max_length=50)), ('date_joined', models.DateField()), ('last_login', models.DateTimeField()), ('rapid_rating', models.IntegerField(default=600)), ('blitz_rating', models.IntegerField(default=600)), ('bullet_rating', models.IntegerField(default=600)), ('is_active', models.BooleanField(default=True)), ('staff', models.BooleanField(default=False)), ('admin', 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, }, ), migrations.CreateModel( name='Game', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fen', models.TextField()), ('black', models.ForeignKey(on_delete=models.SET(api.models.get_deleted_user), related_name='black_games', to=settings.AUTH_USER_MODEL)), ('white', models.ForeignKey(on_delete=models.SET(api.models.get_deleted_user), related_name='white_games', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('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_admin_user', models.BooleanField(default=False)), ('is_user_administrator', models.BooleanField(default=False)), ('is_user_normal', models.BooleanField(default=False)), ('username', models.CharField(max_length=256, unique=True)), ('telephone', models.CharField(max_length=255)), ('cpf', models.CharField(max_length=255)), ('curriculum', models.FileField(blank=True, null=True, upload_to=api.models.user_file_directory_path, validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'])])), ('deleteDate', models.DateTimeField(blank=True, null=True)), ('isDeleted', 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()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('country_code', models.CharField(max_length=225)), ('full_name', models.CharField(max_length=225)), ('phone_number', models.CharField(max_length=10)), ('is_favorite', models.BooleanField(default=False)), ('custom_id', models.PositiveIntegerField()), ], ), 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')), ('email', models.EmailField(max_length=225, unique=True)), ('full_name', models.CharField(max_length=225)), ('date_joined', models.DateField(auto_now_add=True)), ('is_staff', models.BooleanField(default=False)), ('contacts', models.ManyToManyField(to='api.Contact')), ('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', api.models.UserManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0032_auto_20191210_0455'), ] operations = [ migrations.CreateModel( name='Friendship', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], bases=(models.Model, django_modelapiview.JSONMixin), ), migrations.RemoveField( model_name='user', name='friends', field=models.ManyToManyField(blank=True, related_name='users', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='friends', field=models.ManyToManyField(blank=True, related_name='users', through='api.Friendship', to=settings.AUTH_USER_MODEL), ), migrations.AlterUniqueTogether( name='groupmembership', unique_together={('group', 'user')}, ), migrations.AddField( model_name='friendship', name='user1', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user1', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='friendship', name='user2', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user2', to=settings.AUTH_USER_MODEL), ), migrations.AlterUniqueTogether( name='friendship', unique_together={('user1', 'user2')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Person', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('age', 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(max_length=150, unique=True, verbose_name='username')), ('email', models.EmailField(max_length=254, verbose_name='email')), ('is_staff', models.BooleanField(default=False, verbose_name='is_staff')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('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()), ], ), ]
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): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Video', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('title', models.CharField(max_length=30)), ('video', models.FileField(upload_to=api.models.load_path_video)), ('thum', models.ImageField(upload_to=api.models.load_path_thum)), ('like', models.IntegerField(default=0)), ('dislike', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=255, unique=True)), ('username', models.CharField(blank=True, max_length=255)), ('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, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='AppUser', 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')), ('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=254, unique=True)), ('username', models.CharField(default='', max_length=5)), ('first_name', models.CharField(max_length=100, null=True)), ('last_name', models.CharField(max_length=100, null=True)), ('image', models.TextField(default='https://res.cloudinary.com/dkozdkklg/image/upload/v1565557753/cloudinary_qyi649.jpg', null=True)), ('created', models.DateTimeField(auto_now_add=True)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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.UserManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20190911_1744'), ] operations = [ migrations.CreateModel( name='PlaySession', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('started', models.DateTimeField(auto_now=True)), ('secret', models.CharField(default=api.models.random_secret, max_length=16)), ('used_cards', models.ManyToManyField(to='api.Card')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Bicycle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('category', models.CharField(default='Bicycle', max_length=50)), ('wheel_size', models.CharField(choices=[('size16', '16T'), ('size18', '18T'), ('size24', '24T'), ('size26', '26T'), ('size275', '27.5T'), ('size29', '29T'), ('freesize', 'Free Size')], default='Free Size', max_length=100)), ('description', models.CharField(max_length=250)), ('speed', models.CharField(choices=[('speedsingle', 'Single Speed'), ('speed6', '6 Speed'), ('Speed7', '7 Speed'), ('speed12', '12 Speed'), ('speed18', '18 Speed'), ('speed21', '21 Speed'), ('speed24', '24 Speed')], default='Single Speed', max_length=100)), ('mrp', models.DecimalField(decimal_places=2, default=0, max_digits=10)), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=10)), ('featured', models.BooleanField(default=False)), ('in_stock', models.BooleanField(default=True)), ('on_sale', models.BooleanField(default=False)), ('image1', models.ImageField(blank=True, upload_to=api.models.path_and_rename)), ('image2', models.ImageField(blank=True, upload_to=api.models.path_and_rename)), ('image3', models.ImageField(blank=True, upload_to=api.models.path_and_rename)), ('frame', models.CharField(blank=True, max_length=50)), ('fork', models.CharField(blank=True, max_length=50)), ('frame_material', models.CharField(blank=True, max_length=50)), ('saddle', models.CharField(blank=True, max_length=50)), ('rims', models.CharField(blank=True, max_length=50)), ('gender', models.CharField(blank=True, max_length=50)), ('brakes', models.CharField(blank=True, max_length=50)), ], ), migrations.CreateModel( name='Brand', fields=[ ('name', models.CharField(max_length=50, primary_key=True, serialize=False)), ('desc', models.CharField(max_length=250)), ('logo', models.ImageField(blank=True, upload_to='uploads/brand_logos/')), ], ), migrations.CreateModel( name='Color', fields=[ ('name', models.CharField(max_length=50, primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('phone', models.CharField(max_length=15)), ('email', models.CharField(max_length=100)), ('addr1', models.CharField(max_length=100)), ('addr2', models.CharField(max_length=100)), ('landmark', models.CharField(blank=True, max_length=100, null=True)), ('phone2', models.CharField(blank=True, max_length=15, null=True)), ('orderStatus', models.CharField(choices=[('shipped', 'Shipped'), ('delivered', 'Delivered'), ('cancelled', 'Cancelled'), ('returned', 'Returned'), ('initiated', 'Initiated'), ('confirmed', 'Confirmed')], default='Initiated', max_length=15)), ('paymentStatus', models.CharField(default='Pending', max_length=15)), ('paymentMethod', models.CharField(max_length=50)), ('payment_id', models.CharField(blank=True, max_length=60, null=True)), ('payment_transaction_id', models.CharField(blank=True, max_length=60, null=True)), ('datetime', models.DateTimeField(auto_now_add=True)), ('bicycle', models.ManyToManyField(to='api.Bicycle')), ], ), migrations.AddField( model_name='bicycle', name='brand', field=models.ForeignKey( blank=True, default='', on_delete=django.db.models.deletion.SET_DEFAULT, to='api.Brand'), ), migrations.AddField( model_name='bicycle', name='color', field=models.ManyToManyField(to='api.Color'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('login', models.CharField(max_length=100, unique=True, verbose_name='Покупатель')), ], ), migrations.CreateModel( name='FileCSV', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=api.models.file_directory_path, verbose_name='Ваш файл')), ], ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='Название товара')), ('total', models.IntegerField()), ], ), migrations.CreateModel( name='PurchaseDate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField()), ('customer', models.ManyToManyField(to='api.Customer')), ], ), migrations.CreateModel( name='ItemAndCustomer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.IntegerField(verbose_name='Количеств')), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.customer')), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.item')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Action', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='ActionsTaken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('organization', models.CharField(choices=[('NTLS', 'National Society'), ('PNS', 'Foreign Society'), ('FDRN', 'Federation')], max_length=4)), ('summary', models.TextField(blank=True)), ('actions', models.ManyToManyField(to='api.Action')), ], ), migrations.CreateModel( name='Appeal', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('aid', models.CharField(max_length=20)), ('name', models.CharField(max_length=100)), ('atype', enumfields.fields.EnumIntegerField( default=0, enum=api.models.AppealType)), ('status', enumfields.fields.EnumIntegerField( default=0, enum=api.models.AppealStatus)), ('code', models.CharField(max_length=20, null=True)), ('sector', models.CharField(blank=True, max_length=100)), ('num_beneficiaries', models.IntegerField(default=0)), ('amount_requested', models.DecimalField(decimal_places=2, default=0.0, max_digits=12)), ('amount_funded', models.DecimalField(decimal_places=2, default=0.0, max_digits=12)), ('start_date', models.DateTimeField(null=True)), ('end_date', models.DateTimeField(null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ], options={ 'ordering': ('-end_date', '-start_date'), }, ), migrations.CreateModel( name='AppealDocument', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField()), ('name', models.CharField(max_length=100)), ('document', models.FileField(blank=True, null=True, storage=api.storage.AzureStorage(), upload_to=api.models.appeal_document_path)), ('document_url', models.URLField(blank=True)), ('appeal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Appeal')), ], ), migrations.CreateModel( name='Country', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('iso', models.CharField(max_length=2, null=True)), ('society_name', models.TextField(blank=True)), ('society_url', models.URLField(blank=True)), ], options={ 'verbose_name_plural': 'Countries', 'ordering': ('name', ), }, ), migrations.CreateModel( name='DisasterType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('summary', models.TextField()), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='Event', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('summary', models.TextField(blank=True)), ('num_affected', models.IntegerField(blank=True, null=True)), ('alert_level', enumfields.fields.EnumIntegerField( default=0, enum=api.models.AlertLevel)), ('glide', models.CharField(blank=True, max_length=18)), ('disaster_start_date', models.DateTimeField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('auto_generated', models.BooleanField(default=False)), ('countries', models.ManyToManyField(to='api.Country')), ('dtype', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.DisasterType')), ], options={ 'verbose_name': 'Emergency', 'verbose_name_plural': 'Emergencies', 'ordering': ('-disaster_start_date', ), }, ), migrations.CreateModel( name='EventContact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ctype', models.CharField(blank=True, max_length=100)), ('name', models.CharField(max_length=100)), ('title', models.CharField(max_length=300)), ('email', models.CharField(max_length=300)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Event')), ], ), migrations.CreateModel( name='FieldReport', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('rid', models.CharField(blank=True, editable=False, max_length=100, null=True)), ('summary', models.TextField(blank=True)), ('description', models.TextField(blank=True, default='')), ('status', models.IntegerField(default=0)), ('request_assistance', models.BooleanField(default=False)), ('num_injured', models.IntegerField(blank=True, null=True)), ('num_dead', models.IntegerField(blank=True, null=True)), ('num_missing', models.IntegerField(blank=True, null=True)), ('num_affected', models.IntegerField(blank=True, null=True)), ('num_displaced', models.IntegerField(blank=True, null=True)), ('num_assisted', models.IntegerField(blank=True, null=True)), ('num_localstaff', models.IntegerField(blank=True, null=True)), ('num_volunteers', models.IntegerField(blank=True, null=True)), ('num_expats_delegates', models.IntegerField(blank=True, null=True)), ('gov_num_injured', models.IntegerField(blank=True, null=True)), ('gov_num_dead', models.IntegerField(blank=True, null=True)), ('gov_num_missing', models.IntegerField(blank=True, null=True)), ('gov_num_affected', models.IntegerField(blank=True, null=True)), ('gov_num_displaced', models.IntegerField(blank=True, null=True)), ('gov_num_assisted', models.IntegerField(blank=True, null=True)), ('actions_others', models.TextField(blank=True, null=True)), ('visibility', enumfields.fields.EnumIntegerField( default=1, enum=api.models.VisibilityChoices)), ('bulletin', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('dref', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('dref_amount', models.IntegerField(blank=True, null=True)), ('appeal', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('appeal_amount', models.IntegerField(blank=True, null=True)), ('rdrt', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('num_rdrt', models.IntegerField(blank=True, null=True)), ('fact', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('num_fact', models.IntegerField(blank=True, null=True)), ('ifrc_staff', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('num_ifrc_staff', models.IntegerField(blank=True, null=True)), ('eru_base_camp', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_base_camp_units', models.IntegerField(blank=True, null=True)), ('eru_basic_health_care', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_basic_health_care_units', models.IntegerField(blank=True, null=True)), ('eru_it_telecom', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_it_telecom_units', models.IntegerField(blank=True, null=True)), ('eru_logistics', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_logistics_units', models.IntegerField(blank=True, null=True)), ('eru_deployment_hospital', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_deployment_hospital_units', models.IntegerField(blank=True, null=True)), ('eru_referral_hospital', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_referral_hospital_units', models.IntegerField(blank=True, null=True)), ('eru_relief', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_relief_units', models.IntegerField(blank=True, null=True)), ('eru_water_sanitation_15', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_water_sanitation_15_units', models.IntegerField(blank=True, null=True)), ('eru_water_sanitation_40', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_water_sanitation_40_units', models.IntegerField(blank=True, null=True)), ('eru_water_sanitation_20', enumfields.fields.EnumIntegerField( default=0, enum=api.models.RequestChoices)), ('eru_water_sanitation_20_units', models.IntegerField(blank=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('countries', models.ManyToManyField(to='api.Country')), ('dtype', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='api.DisasterType')), ('event', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='field_reports', to='api.Event')), ], options={ 'ordering': ('-created_at', '-updated_at'), }, ), migrations.CreateModel( name='FieldReportContact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ctype', models.CharField(blank=True, max_length=100)), ('name', models.CharField(max_length=100)), ('title', models.CharField(max_length=300)), ('email', models.CharField(max_length=300)), ('field_report', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.FieldReport')), ], ), migrations.CreateModel( name='GDACSEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('eventid', models.CharField(max_length=12)), ('title', models.TextField()), ('description', models.TextField()), ('image', models.URLField(null=True)), ('report', models.URLField(null=True)), ('publication_date', models.DateTimeField()), ('year', models.IntegerField()), ('lat', models.FloatField()), ('lon', models.FloatField()), ('event_type', models.CharField(max_length=16)), ('alert_level', enumfields.fields.EnumIntegerField( default=0, enum=api.models.AlertLevel)), ('alert_score', models.CharField(max_length=16, null=True)), ('severity', models.TextField()), ('severity_unit', models.CharField(max_length=16)), ('severity_value', models.CharField(max_length=16)), ('population_unit', models.CharField(max_length=16)), ('population_value', models.CharField(max_length=16)), ('vulnerability', models.IntegerField()), ('country_text', models.TextField()), ('countries', models.ManyToManyField(to='api.Country')), ], ), migrations.CreateModel( name='KeyFigure', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.IntegerField()), ('deck', models.CharField(max_length=50)), ('source', models.CharField(max_length=256)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Event')), ], ), migrations.CreateModel( name='Profile', fields=[ ('user', models.OneToOneField( editable=False, on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='profile', serialize=False, to=settings.AUTH_USER_MODEL)), ('org', models.CharField(blank=True, max_length=100)), ('org_type', models.CharField(blank=True, choices=[('NTLS', 'National Society'), ('DLGN', 'Delegation'), ('SCRT', 'Secretariat'), ('ICRC', 'ICRC'), ('OTHR', 'Other')], max_length=4)), ('city', models.CharField(blank=True, max_length=100, null=True)), ('department', models.CharField(blank=True, max_length=100, null=True)), ('position', models.CharField(blank=True, max_length=100, null=True)), ('phone_number', models.CharField(blank=True, max_length=100, null=True)), ('country', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.Country')), ], options={ 'verbose_name': 'User profile', 'verbose_name_plural': 'User profiles', }, ), migrations.CreateModel( name='Region', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', enumfields.fields.EnumIntegerField( enum=api.models.RegionName)), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='SituationReport', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('name', models.CharField(max_length=100)), ('document', models.FileField(blank=True, null=True, storage=api.storage.AzureStorage(), upload_to=api.models.sitrep_document_path)), ('document_url', models.URLField(blank=True)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Event')), ], ), migrations.CreateModel( name='Snippet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('snippet', models.CharField(max_length=300)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Event')), ], ), migrations.CreateModel( name='Source', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('spec', models.TextField(blank=True)), ('field_report', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.FieldReport')), ], ), migrations.CreateModel( name='SourceType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40)), ], ), migrations.AddField( model_name='source', name='stype', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='api.SourceType'), ), migrations.AddField( model_name='fieldreport', name='regions', field=models.ManyToManyField(blank=True, to='api.Region'), ), migrations.AddField( model_name='fieldreport', name='user', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='user', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='event', name='regions', field=models.ManyToManyField(to='api.Region'), ), migrations.AddField( model_name='country', name='region', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.Region'), ), migrations.AddField( model_name='appeal', name='country', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.Country'), ), migrations.AddField( model_name='appeal', name='dtype', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.DisasterType'), ), migrations.AddField( model_name='appeal', name='event', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='appeals', to='api.Event'), ), migrations.AddField( model_name='appeal', name='region', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='api.Region'), ), migrations.AddField( model_name='actionstaken', name='field_report', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.FieldReport'), ), ]
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_number', models.CharField(max_length=9, unique=True)), ('address', models.CharField(max_length=255, null=True)), ('full_name', models.CharField(max_length=255, null=True)), ('passport', models.CharField(blank=True, max_length=100, 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()), ], ), ]
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')), ('phone_number', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None, unique=True)), ('full_name', models.CharField(default='', max_length=60)), ('dob', models.DateField(default=None, null=True)), ('bio', models.TextField(blank=True, default='')), ('address', models.CharField(default='', max_length=120)), ('location', django.contrib.gis.db.models.fields.PointField( default=django.contrib.gis.geos.point.Point(0, 0), srid=4326)), ('is_location', models.BooleanField(default=False)), ('photo', models.FileField(null=True, upload_to='')), ('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.PhoneNumberUserManager()), ], ), migrations.CreateModel( name='PhoneToken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone_number', phonenumber_field.modelfields.PhoneNumberField(editable=False, max_length=128, region=None)), ('otp', models.CharField(editable=False, max_length=40)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('attempts', models.IntegerField(default=0)), ('used', models.BooleanField(default=False)), ], options={ 'verbose_name': 'OTP Token', 'verbose_name_plural': 'OTP Tokens', }, ), migrations.CreateModel( name='VoiceMessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('file', models.FileField(upload_to='')), ('from_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to=settings.AUTH_USER_MODEL)), ('to_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='LikeMessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('updated', models.DateTimeField(auto_now=True)), ('is_like', models.BooleanField(default=True)), ('message', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='likes', to='api.VoiceMessage')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='likes', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='CallInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(default=django.utils.timezone.now)), ('status', models.CharField(default='', max_length=60)), ('duration', models.IntegerField(default=0)), ('from_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='call_sender', to=settings.AUTH_USER_MODEL)), ('to_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='call_receiver', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Days', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('day', models.CharField(max_length=10)), ], ), migrations.CreateModel( name='Verification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.IntegerField(default=0)), ('email', models.EmailField(max_length=254, unique=True)), ('reference', models.CharField(max_length=150)), ('authorization_code', models.CharField(max_length=150)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserWallet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('available_balance', models.FloatField(default=0.0)), ('total_balance', models.FloatField(default=0.0)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='StudentSchedule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('from_hour', models.CharField(max_length=10)), ('from_minute', models.CharField(max_length=10)), ('to_hour', models.CharField(max_length=10)), ('to_minute', models.CharField(max_length=10)), ('days', models.ManyToManyField(blank=True, null=True, to='api.Days')), ('tutor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tutor', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Request', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_requested', models.DateTimeField(auto_now_add=True)), ('declined', models.BooleanField(default=False)), ('accepted', models.BooleanField(default=False)), ('requester', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pending_requests', to=settings.AUTH_USER_MODEL)), ('schedule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.StudentSchedule')), ('tutor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='requests', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Rating', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('rate', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)), ('tutor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ratings_tutor', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_pic', models.ImageField(blank=True, default='default/default.jpg', null=True, upload_to=api.models.get_upload_file_name)), ('credentials', models.FileField(blank=True, null=True, upload_to=api.models.get_upload_file_name_credentials)), ('video', models.FileField(blank=True, null=True, upload_to=api.models.get_upload_file_name_videos)), ('desc', models.TextField(blank=True, max_length=255, null=True)), ('field', models.CharField(blank=True, max_length=255)), ('hourly_rate', models.CharField(default=0, max_length=10000000)), ('major_course', models.CharField(blank=True, max_length=255, null=True)), ('other_courses', models.CharField(blank=True, max_length=255, null=True)), ('state', models.CharField(blank=True, max_length=255)), ('address', models.CharField(blank=True, max_length=255, null=True)), ('rating', models.ManyToManyField(blank=True, to='api.Rating')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='CreditCardInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('card_holder_name', models.CharField(max_length=255, null=True)), ('card_number', models.CharField(max_length=255, null=True)), ('cvv', models.CharField(max_length=255, null=True)), ('expiry_month', models.IntegerField(null=True)), ('expiry_year', models.IntegerField(null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='BankInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bank_name', models.CharField(blank=True, max_length=255, null=True)), ('account_name', models.CharField(blank=True, max_length=255, null=True)), ('account_number', models.IntegerField(blank=True, null=True)), ('routing_number', models.IntegerField(blank=True, null=True)), ('social_security_number', models.IntegerField(blank=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] 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 = [] operations = [ migrations.CreateModel( name='ChineseCharacterImage', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('img_set_type', models.CharField(choices=[('tr', 'Тренировочная'), ('ts', 'Тестовая')], max_length=2, verbose_name='Выборка')), ('img_width', models.PositiveIntegerField(editable=False)), ('img_height', models.PositiveIntegerField(editable=False)), ('img', django_resized.forms.ResizedImageField( crop=None, force_format='PNG', keep_meta=True, quality=95, size=[50, 100], upload_to=api.models.image_path, verbose_name='Изображение')), ], options={ 'verbose_name': 'Изображение иероглифа', 'verbose_name_plural': 'Изображения иероглифов', 'ordering': ['img_set_type', 'img_class', 'id'], }, ), migrations.CreateModel( name='ImageClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('label', models.CharField(choices=[('京', '京'), ('渝', '渝'), ('沪', '沪'), ('津', '津'), ('皖', '皖'), ('闽', '闽'), ('甘', '甘'), ('粤', '粤'), ('贵', '贵'), ('琼', '琼'), ('冀', '冀'), ('黑', '黑'), ('豫', '豫'), ('鄂', '鄂'), ('湘', '湘'), ('苏', '苏'), ('赣', '赣'), ('吉', '吉'), ('辽', '辽'), ('青', '青'), ('陕', '陕'), ('鲁', '鲁'), ('晋', '晋'), ('川', '川'), ('云', '云'), ('浙', '浙'), ('桂', '桂'), ('蒙', '蒙'), ('宁', '宁'), ('藏', '藏'), ('新', '新')], max_length=1, unique=True, verbose_name='Символ')), ], options={ 'verbose_name': 'Иероглифический символ', 'verbose_name_plural': 'Иероглифические символы', 'ordering': ['label'], }, ), migrations.CreateModel( name='NeuralNetworkModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=api.models.model_path, verbose_name='Файл')), ('version', models.CharField(max_length=5, unique=True, verbose_name='Версия')), ('img_width', models.PositiveIntegerField(editable=False)), ('img_height', models.PositiveIntegerField(editable=False)), ('img_classes', models.ManyToManyField(to='api.ImageClass')), ], options={ 'verbose_name': 'Модель', 'verbose_name_plural': 'Модели', 'ordering': ['-version'], }, ), migrations.AddField( model_name='chinesecharacterimage', name='img_class', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.ImageClass', verbose_name='Класс'), ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0038_payment_target'), ] operations = [ migrations.CreateModel( name='PaymentGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=42)), ], bases=(models.Model, django_modelapiview.JSONMixin), ), migrations.AddField( model_name='user', name='score', field=models.IntegerField(default=0), ), migrations.AddField( model_name='user', name='title', field=models.CharField(default='', max_length=255), preserve_default=False, ), migrations.AlterField( model_name='payment', name='group', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='payments', to='api.PaymentGroup'), ), migrations.AlterField( model_name='payment', name='payments', field=django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=dict), ), migrations.RenameModel( old_name='GroupMembership', new_name='PaymentGroupMembership', ), migrations.AlterField( model_name='PaymentGroupMembership', name='group', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.PaymentGroup'), ), migrations.DeleteModel(name='Group', ), migrations.AddField( model_name='PaymentGroup', name='users', field=models.ManyToManyField(blank=True, related_name='payment_groups', through='api.PaymentGroupMembership', to=settings.AUTH_USER_MODEL), ), ]
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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')), ('patronymic', models.CharField(max_length=100, verbose_name='Отчество')), ('position', models.CharField(max_length=100, verbose_name='Должность')), ('department', models.CharField(blank=True, max_length=100, null=True, verbose_name='Подразделение')), ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='Дата рождения')), ('education', models.CharField(blank=True, max_length=100, null=True, verbose_name='Образование')), ('experience', models.PositiveIntegerField(blank=True, null=True, verbose_name='Стаж')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'Пользователь', 'verbose_name_plural': 'Пользователи', }, managers=[ ('objects', api.models.UserManager()), ], ), ]
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')), ('api_key', models.CharField( default=api.models.generate_api_key, help_text='The API key associated with this user.', max_length=40, verbose_name='API Key')), ('container_limit', models.IntegerField( default=10, help_text= 'The total number of containers the user may have', verbose_name='Container Limit')), ('floating_ip_limit', models.IntegerField( default=3, help_text= 'The total number of floating IPs the user may have', verbose_name='Floating IP Limit')), ('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='Action', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField(help_text='The unique ID for the action.', max_length=100, verbose_name='Unique ID')), ('status', models.IntegerField( help_text='The current status of the action.', verbose_name='Status')), ('type', models.CharField( help_text= 'This is the type of action that the object represents. For example, this could be "transfer" to represent the state of an image transfer action.', max_length=20, verbose_name='Type')), ('started_at', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the action was initiated.', verbose_name='Started At')), ('completed_at', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the action was completed.', verbose_name='Completed At')), ], ), migrations.CreateModel( name='BackupWindow', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the backup will start.', verbose_name='Start')), ('end', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the backup will end.', verbose_name='End')), ], ), migrations.CreateModel( name='Container', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField(help_text='The unique ID for the container.', max_length=100, verbose_name='Unique ID')), ('name', models.CharField( help_text= 'The human-readable name set for the Container instance.', max_length=60, verbose_name='Name')), ('memory', models.IntegerField( help_text='Memory of the Container in megabytes.', verbose_name='Memory')), ('vcpus', models.IntegerField(help_text='The number of virtual CPUs.', verbose_name='CPUs')), ('disk', models.IntegerField( help_text="The size of the Container's disk in gigabytes.", verbose_name='Disk')), ('locked', models.BooleanField( help_text= 'A boolean value indicating whether the Container has been locked, preventing actions by users.', verbose_name='Locked')), ('created_at', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the Container was created.', verbose_name='Created At')), ('status', models.IntegerField( choices=[(0, b'new'), (1, b'active'), (2, b'off'), (3, b'archive')], help_text= 'A status string indicating the state of the Droplet instance. This may be "new", "active", "off", or "archive".', verbose_name='Status')), ], ), migrations.CreateModel( name='Domain', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= 'The name of the domain itself. This should follow the standard domain format of domain.TLD. For instance, example.com is a valid domain name.', max_length=60, verbose_name='Name')), ('ttl', models.IntegerField( help_text= 'This value is the time to live for the records on this domain, in seconds. This defines the time frame that clients can cache queried information before a refresh should be requested.', verbose_name='TTL')), ('zone_file', models.TextField( help_text= 'This attribute contains the complete contents of the zone file for the selected domain. Individual domain record resources should be used to get more granular control over records. However, this attribute can also be used to get information about the SOA record, which is created automatically and is not accessible as an individual record resource.', verbose_name='Zone File')), ('owner', models.ForeignKey(help_text='The owner of the domain.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Owner')), ], ), migrations.CreateModel( name='DomainRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField( help_text='The unique ID for the domain record.', max_length=100, verbose_name='Unique ID')), ('name', models.CharField( help_text='The name to use for the DNS record.', max_length=60, verbose_name='Name')), ('type', models.IntegerField( choices=[(0, b'A'), (1, b'AAAA'), (2, b'CNAME'), (3, b'MX'), (4, b'TXT'), (5, b'SRV'), (6, b'NS')], help_text= 'The type of the DNS record (ex: A, CNAME, TXT, ...).', verbose_name='Type')), ('data', models.CharField( help_text='The value to use for the DNS record.', max_length=60, verbose_name='Value')), ('priority', models.IntegerField( help_text='The priority for SRV and MX records.', null=True, verbose_name='Priority')), ('port', models.IntegerField(help_text='The port for SRV records.', null=True, verbose_name='Port')), ('weight', models.IntegerField(help_text='The weight for SRV records.', null=True, verbose_name='Weight')), ('domain', models.ForeignKey( help_text='The domain, that this record belongs to.', on_delete=django.db.models.deletion.CASCADE, to='api.Domain', verbose_name='Domain')), ('owner', models.ForeignKey(help_text='The owner of the domain record.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Owner')), ], ), migrations.CreateModel( name='Feature', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('feature', models.CharField( help_text= 'A feature (f.e. if a Container can be backed up)', max_length=20, verbose_name='Feature')), ], ), migrations.CreateModel( name='FloatingIP', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField( help_text='The unique ID for the floating IP.', max_length=100, verbose_name='Unique ID')), ('ip', models.CharField( help_text= 'The public IP address of the Floating IP. It also serves as its identifier.', max_length=45, verbose_name='IP')), ('container', models.ForeignKey( help_text= 'The Container that the Floating IP has been assigned to.', on_delete=django.db.models.deletion.CASCADE, to='api.Container', verbose_name='Container')), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField(help_text='The unique ID for the image.', max_length=100, verbose_name='Unique ID')), ('name', models.CharField( help_text= 'The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.', max_length=60, verbose_name='Name')), ('type', models.IntegerField( choices=[(0, b'snapshot'), (1, b'backup')], help_text= 'The kind of image, describing the duration of how long the image is stored. This is either "snapshot" or "backup".', verbose_name='Type')), ('distribution', models.CharField( help_text= 'This attribute describes the base distribution used for this image.', max_length=100, verbose_name='Distribution')), ('slug', models.CharField( help_text= 'A uniquely identifying string that is associated with each of the provided public images. These can be used to reference a public image as an alternative to the numeric id.', max_length=100, verbose_name='Slug')), ('public', models.BooleanField( help_text= 'This is a boolean value that indicates whether the image in question is public or not. An image that is public is available to all accounts. A non-public image is only accessible from your account.', verbose_name='Public')), ('min_disk_size', models.IntegerField( help_text= "The minimum 'disk' required for a size to use this image.", verbose_name='Minimum Disk Size')), ('size_gigabytes', models.IntegerField( help_text='The size of the image in gigabytes.', verbose_name='Size')), ('created_at', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the Image was created.', verbose_name='Created At')), ('owner', models.ForeignKey(help_text='The owner of this image.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Owner')), ], ), migrations.CreateModel( name='Kernel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(help_text='The name of the kernel.', max_length=100, verbose_name='Name')), ('version', models.CharField(help_text='The version of the kernel.', max_length=100, verbose_name='Version')), ], ), migrations.CreateModel( name='Network', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('version', models.IntegerField( choices=[(0, b'v4'), (1, b'v6')], help_text='The version of the network (can be v4 or v6)', verbose_name='Version')), ('netmask', models.CharField(help_text='The netmask of the network.', max_length=45, verbose_name='Netmaks')), ('gateway', models.CharField(help_text='The gateway of the network.', max_length=45, verbose_name='Gateway')), ('type', models.IntegerField( choices=[(0, b'public'), (1, b'private')], help_text= 'The type of the network (can be public or private)', verbose_name='Type')), ], ), migrations.CreateModel( name='Region', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= 'The display name of the region. This will be a full name that is used in the control panel and other interfaces.', max_length=20, verbose_name='Name')), ('slug', models.CharField( help_text= 'A human-readable string that is used as a unique identifier for each region.', max_length=4, verbose_name='Slug')), ('available', models.BooleanField( help_text= 'This is a boolean value that represents whether new Containers can be created in this region.', verbose_name='Available')), ('features', models.ManyToManyField( help_text='The features available in this region.', to='api.Feature', verbose_name='Features')), ], ), migrations.CreateModel( name='Resource', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('key', models.IntegerField(help_text='The key (id) of the resource.', verbose_name='Key')), ('value', models.CharField( help_text= 'The value for the resource (f.e. the type of the resource)', max_length=80, verbose_name='Value')), ], ), migrations.CreateModel( name='Size', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.CharField( help_text= 'A human-readable string that is used to uniquely identify each size.', max_length=10, verbose_name='Slug')), ('available', models.BooleanField( help_text= 'This is a boolean value that represents whether new Containers can be created with this size.', verbose_name='Available')), ('transfer', models.DecimalField( decimal_places=1, help_text= 'The amount of transfer bandwidth that is available for Containers created in this size. This only counts traffic on the public interface. The value is given in terabytes.', max_digits=6, verbose_name='Bandwith')), ('price_monthly', models.DecimalField( decimal_places=1, help_text= 'This attribute describes the monthly cost of this Container size if the Container is kept for an entire month.', max_digits=5, verbose_name='Price Monthly')), ('price_hourly', models.DecimalField( decimal_places=1, help_text= 'This describes the price of the Container size as measured hourly.', max_digits=8, verbose_name='Price Hourly')), ('memory', models.IntegerField( help_text= 'The amount of RAM allocated to Containers created of this size. The value is represented in megabytes.', verbose_name='Memory')), ('vcpus', models.IntegerField( help_text= 'The number of virtual CPUs allocated to Containers of this size.', verbose_name='CPUs')), ('disk', models.IntegerField( help_text= 'The amount of disk space set aside for Containers of this size. The value is represented in gigabytes.', verbose_name='Disk')), ], ), migrations.CreateModel( name='SSHKey', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField(help_text='The unique ID for the SSH key.', max_length=100, verbose_name='Unique ID')), ('name', models.CharField( help_text= 'This is the human-readable display name for the given SSH key. This is used to easily identify the SSH keys when they are displayed.', max_length=60, verbose_name='Name')), ('fingerprint', models.CharField( help_text= 'This attribute contains the fingerprint value that is generated from the public key. This is a unique identifier that will differentiate it from other keys using a format that SSH recognizes.', max_length=512, verbose_name='Fingerprint')), ('public_key', models.TextField( help_text= "This attribute contains the entire public key string that was uploaded. This is what is embedded into the root user's authorized_keys file if you choose to include this SSH key during Container creation.", verbose_name='Public Key')), ('owner', models.ForeignKey( help_text='The user, that this SSH key belongs to.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Owner')), ], ), migrations.CreateModel( name='Storage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('uuid', models.CharField( help_text='The unique ID for the storage volume.', max_length=100, verbose_name='Unique ID')), ('name', models.CharField( help_text= 'A human-readable name for the Storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters.', max_length=64, verbose_name='Name')), ('description', models.CharField( help_text= 'An optional free-form text field to describe a Storage volume.', max_length=120, verbose_name='Description')), ('size_gigabytes', models.IntegerField( help_text= 'The size of the Storage volume in GiB (1024^3).', verbose_name='Size')), ('created_at', models.DateTimeField( help_text= 'A time value given in ISO8601 combined date and time format that represents when the Storage volume was created.', verbose_name='Created At')), ('containers', models.ForeignKey( help_text='The Containers the volume is attached to.', on_delete=django.db.models.deletion.CASCADE, to='api.Container', verbose_name='Containers')), ('region', models.ForeignKey( help_text= 'The region that the Storage volume is located in.', on_delete=django.db.models.deletion.CASCADE, to='api.Region', verbose_name='Region')), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField( help_text= 'The name of the tag. The supported characters for names include alphanumeric characters, dashes, and underscores.', max_length=80, verbose_name='Name')), ('resources', models.ManyToManyField( help_text='The resource associated with this tag.', to='api.Resource', verbose_name='Resources')), ], ), migrations.AddField( model_name='region', name='sizes', field=models.ManyToManyField( help_text='The sizes available in this region.', to='api.Size', verbose_name='Sizes'), ), migrations.AddField( model_name='image', name='regions', field=models.ManyToManyField( help_text= 'This attribute is an array of the regions that the image is available in.', to='api.Region', verbose_name='Regions'), ), migrations.AddField( model_name='floatingip', name='region', field=models.ForeignKey( help_text= 'The region that the Floating IP is reserved to. When you query a Floating IP, the entire region object will be returned.', on_delete=django.db.models.deletion.CASCADE, to='api.Region', verbose_name='Region'), ), migrations.AddField( model_name='container', name='base_image', field=models.ForeignKey( help_text= 'The base image used to create the Container instance.', on_delete=django.db.models.deletion.CASCADE, related_name='base_image', to='api.Image', verbose_name='Base Image'), ), migrations.AddField( model_name='container', name='features', field=models.ForeignKey( help_text='A collection of features enabled on this Container.', on_delete=django.db.models.deletion.CASCADE, to='api.Feature', verbose_name='Features'), ), migrations.AddField( model_name='container', name='images', field=models.ManyToManyField( help_text= 'A collection of the backups and shapshots associated with this Container.', related_name='images', to='api.Image', verbose_name='Images'), ), migrations.AddField( model_name='container', name='kernel', field=models.ForeignKey( help_text= 'The current kernel. This will initially be set to the kernel of the base image when the Container is created.', null=True, on_delete=django.db.models.deletion.CASCADE, to='api.Kernel', verbose_name='Kernel'), ), migrations.AddField( model_name='container', name='networks', field=models.ManyToManyField( help_text= 'The details of the network that are configured for the Container instance.', to='api.Network', verbose_name='Networks'), ), migrations.AddField( model_name='container', name='next_backup_window', field=models.OneToOneField( help_text= "The details of the Container's backups feature, if backups are configured for the Container.", null=True, on_delete=django.db.models.deletion.CASCADE, to='api.BackupWindow', verbose_name='Next Backup Window'), ), migrations.AddField( model_name='container', name='owner', field=models.ForeignKey( help_text='The owner of the Container.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Owner'), ), migrations.AddField( model_name='container', name='region', field=models.ForeignKey( help_text= 'The region that the Container instance is deployed in.', on_delete=django.db.models.deletion.CASCADE, to='api.Region', verbose_name='Region'), ), migrations.AddField( model_name='container', name='size', field=models.ForeignKey( help_text='The current size object describing the Container.', on_delete=django.db.models.deletion.CASCADE, to='api.Size', verbose_name='Size'), ), migrations.AddField( model_name='container', name='tags', field=models.ManyToManyField( help_text= 'A collection of Tags the Container has been tagged with.', to='api.Tag', verbose_name='Tags'), ), migrations.AddField( model_name='container', name='volumes', field=models.ManyToManyField( help_text= 'A collection containing each Storage volume attached to the Container.', to='api.Storage', verbose_name='Volumes'), ), migrations.AddField( model_name='action', name='region', field=models.ForeignKey( help_text='The region where the action occurred.', on_delete=django.db.models.deletion.CASCADE, to='api.Region', verbose_name='Region'), ), migrations.AddField( model_name='action', name='resource', field=models.OneToOneField( help_text='The resource that the action is associated with.', on_delete=django.db.models.deletion.CASCADE, to='api.Resource', verbose_name='Resource'), ), migrations.AddField( model_name='action', name='user', field=models.ForeignKey( help_text='The user associated with this action.', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='User'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('booking', '__first__'), ('resource_inventory', '__first__'), ] operations = [ migrations.CreateModel( name='AccessRelation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(default=0)), ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)), ('lab_token', models.CharField(default='null', max_length=50)), ('message', models.TextField(default='')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='HostHardwareRelation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(default=0)), ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)), ('lab_token', models.CharField(default='null', max_length=50)), ('message', models.TextField(default='')), ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='HostNetworkRelation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(default=0)), ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)), ('lab_token', models.CharField(default='null', max_length=50)), ('message', models.TextField(default='')), ('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resource_inventory.Host')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(default=0)), ('delta', models.TextField()), ('complete', models.BooleanField(default=False)), ('booking', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to='booking.Booking')), ], ), migrations.CreateModel( name='OpnfvApiConfig', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('installer', models.CharField(max_length=100)), ('scenario', models.CharField(max_length=100)), ('delta', models.TextField()), ('roles', models.ManyToManyField(to='resource_inventory.Host')), ], ), migrations.CreateModel( name='SoftwareRelation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(default=0)), ('task_id', models.CharField(default=api.models.get_task_uuid, max_length=37)), ('lab_token', models.CharField(default='null', max_length=50)), ('message', models.TextField(default='')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Job')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TaskConfig', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='AccessConfig', fields=[ ('taskconfig_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')), ('access_type', models.CharField(max_length=50)), ('revoke', models.BooleanField(default=False)), ('context', models.TextField(default='')), ('delta', models.TextField()), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], bases=('api.taskconfig', ), ), migrations.CreateModel( name='HardwareConfig', fields=[ ('taskconfig_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')), ('image', models.CharField(default='defimage', max_length=100)), ('power', models.CharField(default='off', max_length=100)), ('hostname', models.CharField(default='hostname', max_length=100)), ('ipmi_create', models.BooleanField(default=False)), ('delta', models.TextField()), ], bases=('api.taskconfig', ), ), migrations.CreateModel( name='NetworkConfig', fields=[ ('taskconfig_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')), ('delta', models.TextField()), ('interfaces', models.ManyToManyField(to='resource_inventory.Interface')), ], bases=('api.taskconfig', ), ), migrations.CreateModel( name='SoftwareConfig', fields=[ ('taskconfig_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.TaskConfig')), ('opnfv', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.OpnfvApiConfig')), ], bases=('api.taskconfig', ), ), migrations.AddField( model_name='hostnetworkrelation', name='job', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Job'), ), migrations.AddField( model_name='hosthardwarerelation', name='job', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Job'), ), migrations.AddField( model_name='accessrelation', name='job', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Job'), ), migrations.AddField( model_name='softwarerelation', name='config', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='api.SoftwareConfig'), ), migrations.AddField( model_name='hostnetworkrelation', name='config', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='api.NetworkConfig'), ), migrations.AddField( model_name='hosthardwarerelation', name='config', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='api.HardwareConfig'), ), migrations.AddField( model_name='accessrelation', name='config', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='api.AccessConfig'), ), ]