class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] 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= 'Не больше 32 символов. Только лат. символы и цифры', max_length=32, unique=True, validators=[core.models.UsernameValidator()], verbose_name='username')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('balance', models.IntegerField(default=0, verbose_name='Баланс')), ('is_seller', models.BooleanField( default=False, help_text='Является ли пользователь продавцом', verbose_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')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'Пользователь', 'verbose_name_plural': 'Пользователи', }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=core.models.my_upload_to, verbose_name='Файл')), ('name', models.CharField(db_index=True, max_length=255, verbose_name='Имя файла')), ('mime', models.CharField(db_index=True, max_length=16, verbose_name='Тип Mime')), ('ctime', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='Записано')), ('size', models.PositiveIntegerField(db_index=True, verbose_name='Размер')), ('md5', models.CharField(db_index=True, max_length=32, verbose_name='MD5')), ], options={ 'verbose_name': 'Файл', 'verbose_name_plural': 'Файлы', }, ), migrations.CreateModel( name='FileSeq', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ 'verbose_name': 'Последовательность файлов', 'verbose_name_plural': 'Последовательности файлов', 'ordering': ('id', ), }, ), migrations.CreateModel( name='Org', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('inn', models.CharField(max_length=12, unique=True, verbose_name='VAP')), ('name', models.CharField(max_length=40, unique=True, verbose_name='Short name')), ('fullname', models.CharField(db_index=True, max_length=64, verbose_name='Full name')), ], options={ 'verbose_name': 'Организация', 'verbose_name_plural': 'Организации', 'ordering': ('name', ), }, ), migrations.CreateModel( name='FileSeqItem', fields=[ ('file', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='core.file', verbose_name='File')), ('order', models.PositiveSmallIntegerField(db_index=True, verbose_name='#')), ('fileseq', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.fileseq', verbose_name='File sequence')), ], options={ 'verbose_name': 'Файл последовательности', 'verbose_name_plural': 'Файлы последовательности', 'ordering': ('file', 'order'), }, ), migrations.AddField( model_name='fileseq', name='files', field=models.ManyToManyField(through='core.FileSeqItem', to='core.File', verbose_name='Файлы'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('street_address', models.CharField(max_length=100)), ('apartment_address', models.CharField(max_length=100)), ('country', django_countries.fields.CountryField(max_length=2)), ('zip', models.CharField(max_length=100)), ('address_type', models.CharField(choices=[('B', 'Billing'), ('S', 'Shipping')], max_length=1)), ('default', models.BooleanField(default=False)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Addresses', }, ), migrations.CreateModel( name='Coupon', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=15, unique=True)), ('amount', models.FloatField()), ], ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('price', models.FloatField()), ('discount_price', models.FloatField(blank=True, null=True)), ('category', models.CharField(choices=[('Bk', 'Books'), ('Mi', 'Musical Instruments'), ('St', 'Statues')], max_length=2)), ('label', models.CharField(choices=[('P', 'primary'), ('S', 'secondary'), ('D', 'danger')], max_length=1)), ('slug', models.SlugField(blank=True)), ('description', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=core.models.upload_image_path)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ref_code', models.CharField(blank=True, max_length=20, null=True)), ('start_date', models.DateTimeField(auto_now_add=True)), ('ordered_date', models.DateTimeField()), ('ordered', models.BooleanField(default=False)), ('being_delivered', models.BooleanField(default=False)), ('received', models.BooleanField(default=False)), ('refund_requested', models.BooleanField(default=False)), ('refund_granted', models.BooleanField(default=False)), ('billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='billing_address', to='core.Address')), ('coupon', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Coupon')), ], ), migrations.CreateModel( name='Refund', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('reason', models.TextField()), ('accepted', models.BooleanField(default=False)), ('email', models.EmailField(max_length=254)), ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Order')), ], ), migrations.CreateModel( name='Payment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('stripe_charge_id', models.CharField(max_length=50)), ('amount', models.FloatField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='OrderItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ordered', models.BooleanField(default=False)), ('quantity', models.IntegerField(default=1)), ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Item')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='order', name='items', field=models.ManyToManyField(to='core.OrderItem'), ), migrations.AddField( model_name='order', name='payment', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Payment'), ), migrations.AddField( model_name='order', name='shipping_address', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='shipping_address', to='core.Address'), ), migrations.AddField( model_name='order', name='user', field=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')), ('email', models.EmailField( help_text= 'Your email address will not be made public and will not be used for communications. It will only be used as your authentication identifier.', max_length=254, unique=True)), ('github', models.CharField( blank=True, help_text= 'Your GitHub username if you have one and want to link to it', max_length=100, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator ])), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Competitor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_public', models.BooleanField()), ('name', models.SlugField()), ('last_version', models.PositiveIntegerField()), ], ), migrations.CreateModel( name='Environment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('slug', models.SlugField(unique=True)), ('description', models.TextField()), ('num_matches_in_duel', models.PositiveIntegerField()), ('memory_limit', models.CharField(max_length=50)), ('cpu_limit', models.FloatField()), ('image', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Revision', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('version_number', models.PositiveIntegerField()), ('created_at', models.DateTimeField(auto_now_add=True)), ('zip_file', models.FileField( upload_to=core.models.zip_file_path, validators=[ django.core.validators.FileExtensionValidator(['zip']) ])), ('publish_state', models.CharField(choices=[('PUBLISH_SKIPPED', ''), ('PUBLISH_SCHEDULED', ''), ('PUBLISH_RUNNING', ''), ('PUBLISH_FAILED', ''), ('PUBLISH_COMPLETED', '')], max_length=100)), ('publish_started_at', models.DateTimeField(null=True)), ('publish_ended_at', models.DateTimeField(null=True)), ('publish_error_msg', models.CharField(blank=True, max_length=200)), ('publish_url', models.CharField(blank=True, max_length=200, validators=[ django.core.validators.RegexValidator( '^https://github.com/') ])), ('image_state', models.CharField(choices=[('IMAGE_SCHEDULED', ''), ('IMAGE_RUNNING', ''), ('IMAGE_FAILED', ''), ('IMAGE_COMPLETED', '')], default='IMAGE_SCHEDULED', max_length=100)), ('image_started_at', models.DateTimeField(null=True)), ('image_ended_at', models.DateTimeField(null=True)), ('image_error_msg', models.CharField(blank=True, max_length=200)), ('image_name', models.CharField(blank=True, max_length=200)), ('image_logs', models.FilePathField( null=True, path='/app/data/media/revision_image_logs/')), ('test_state', models.CharField(choices=[('TEST_SCHEDULED', ''), ('TEST_RUNNING', ''), ('TEST_FAILED', ''), ('TEST_COMPLETED', '')], default='TEST_SCHEDULED', max_length=100)), ('test_started_at', models.DateTimeField(null=True)), ('test_ended_at', models.DateTimeField(null=True)), ('test_error_msg', models.CharField(blank=True, max_length=200)), ('test_logs', models.FilePathField( null=True, path='/app/data/media/revision_test_logs/')), ('competitor', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.Competitor')), ], ), migrations.CreateModel( name='Tournament', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('edition', models.PositiveIntegerField()), ('started_at', models.DateTimeField(auto_now_add=True)), ('state', models.CharField(choices=[('RUNNING', ''), ('FAILED', ''), ('COMPLETED', '')], default='RUNNING', max_length=100)), ('ended_at', models.DateTimeField(null=True)), ('environment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Environment')), ], ), migrations.CreateModel( name='TournamentParticipant', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('wins', models.PositiveIntegerField()), ('losses', models.PositiveIntegerField()), ('draws', models.PositiveIntegerField()), ('points', models.PositiveIntegerField()), ('total_score', models.FloatField()), ('ranking', models.PositiveIntegerField()), ('revision', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Revision')), ('tournament', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Tournament')), ], ), migrations.AddField( model_name='tournament', name='participants', field=models.ManyToManyField(through='core.TournamentParticipant', to='core.Revision'), ), migrations.CreateModel( name='Duel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state', models.CharField(choices=[('SCHEDULED', ''), ('RUNNING', ''), ('FAILED', ''), ('COMPLETED', '')], default='SCHEDULED', max_length=100)), ('created_at', models.DateTimeField(auto_now_add=True)), ('started_at', models.DateTimeField(null=True)), ('ended_at', models.DateTimeField(null=True)), ('logs', models.FilePathField(null=True, path='/app/data/media/duel_logs/')), ('results', models.FilePathField(null=True, path='/app/data/media/duel_results/')), ('result', models.CharField(blank=True, choices=[('ERROR', ''), ('PLAYER_1_WIN', ''), ('PLAYER_2_WIN', ''), ('DRAW', '')], max_length=100)), ('error_msg', models.CharField(blank=True, max_length=200)), ('num_matches', models.PositiveIntegerField(null=True)), ('player_1_errors', models.PositiveIntegerField(null=True)), ('player_2_errors', models.PositiveIntegerField(null=True)), ('other_errors', models.PositiveIntegerField(null=True)), ('player_1_wins', models.PositiveIntegerField(null=True)), ('player_2_wins', models.PositiveIntegerField(null=True)), ('draws', models.PositiveIntegerField(null=True)), ('player_1_score', models.FloatField(null=True)), ('player_2_score', models.FloatField(null=True)), ('player_1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player_1', to='core.Revision')), ('player_2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player_2', to='core.Revision')), ('tournament', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Tournament')), ], ), migrations.AddField( model_name='competitor', name='environment', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Environment'), ), migrations.AddField( model_name='competitor', name='submitter', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddConstraint( model_name='revision', constraint=models.UniqueConstraint(fields=('competitor', 'version_number'), name='unique_competitor'), ), migrations.AddConstraint( model_name='competitor', constraint=models.UniqueConstraint(fields=('environment', 'name'), name='unique_environment'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('problemset', '0015_auto_20170602_2036'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Submission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('source_file', models.FileField( upload_to=core.models.source_directory_path)), ('status', models.IntegerField(choices=[(0, 'Error'), (1, 'Pending'), (2, 'Tests passed'), (3, 'Wrong answer')], default=1)), ('language', models.IntegerField(choices=[(0, 'C++'), (1, 'Python')])), ('datetime', models.DateTimeField(default=django.utils.timezone.now)), ], ), migrations.CreateModel( name='SubmissionError', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.IntegerField()), ], ), migrations.AddField( model_name='submission', name='error', field=models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, to='core.SubmissionError'), ), migrations.AddField( model_name='submission', name='problem', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='problemset.Problem'), ), migrations.AddField( model_name='submission', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('birth_date', models.DateField(blank=True, null=True, verbose_name='Date of birth')), ('about', models.TextField(blank=True, max_length=500, verbose_name='About')), ('avatar', models.ImageField(default=None, upload_to=core.models.avatar_path)), ('friends', models.ManyToManyField(blank=True, related_name='friends', to=settings.AUTH_USER_MODEL)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='user_profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField(blank=True, max_length=1000)), ('image', models.ImageField(upload_to=core.models.posts_path)), ('date_pub', models.DateTimeField(default=django.utils.timezone.now)), ('date_edit', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('likes', models.ManyToManyField(blank=True, related_name='users_likes_it', 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.TextField(max_length=700)), ('date_publish', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('in_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.post')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Application', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(blank=True, default='application', max_length=200)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('handle', models.CharField(blank=True, max_length=200)), ('version_code', models.IntegerField(blank=True)), ('version_name', models.CharField(blank=True, max_length=200)), ('icon_phash', models.IntegerField(blank=True, null=True)), ('app_uid', models.CharField(blank=True, max_length=200)), ('creator', models.CharField(blank=True, max_length=200)), ('rules', models.TextField(blank=True, null=True)), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='Device', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=200, unique=True)), ('description', models.TextField(blank=True)), ('brand', models.CharField(max_length=200)), ('version', models.CharField(blank=True, max_length=200)), ('serial', models.CharField(max_length=200, unique=True)), ('label', models.CharField(blank=True, max_length=200)), ('website', models.URLField(blank=True)), ('raw_parameters', models.TextField(blank=True)), ('rules', models.TextField(blank=True, null=True)), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='DNSQuery', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('address', models.CharField(default='', editable=False, max_length=200)), ('domain', models.CharField(blank=True, default='', max_length=200)), ('country', models.CharField(blank=True, default='', max_length=200)), ('country_code', models.CharField(blank=True, default='', max_length=200)), ('city', models.CharField(blank=True, default='', max_length=200)), ('region', models.CharField(blank=True, default='', max_length=200)), ('latitude', models.CharField(blank=True, default='', max_length=200)), ('longitude', models.CharField(blank=True, default='', max_length=200)), ('organization', models.CharField(blank=True, default='', max_length=200)), ], options={ 'ordering': ('domain', ), }, ), migrations.CreateModel( name='Experiment', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=200)), ('description', models.TextField(blank=True)), ('rules', models.TextField(blank=True, null=True)), ('report', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)), ('application', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Application')), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='File', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=200)), ('sha256', models.CharField(blank=True, max_length=200, unique=True)), ('size', models.IntegerField(blank=True)), ('file', models.FileField(upload_to=core.models.path_and_rename)), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='NetworkAnalysis', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='Session', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=200)), ('description', models.TextField(blank=True)), ('experiment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Experiment')), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='APKFile', fields=[ ('file_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.File')), ], bases=('core.file', ), ), migrations.CreateModel( name='BluetoothDump', fields=[ ('file_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.File')), ], bases=('core.file', ), ), migrations.CreateModel( name='FlowFile', fields=[ ('file_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.File')), ], bases=('core.file', ), ), migrations.CreateModel( name='IoTDevice', fields=[ ('device_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Device')), ], bases=('core.device', ), ), migrations.CreateModel( name='PCAPFile', fields=[ ('file_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.File')), ], bases=('core.file', ), ), migrations.CreateModel( name='Smartphone', fields=[ ('device_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Device')), ('imei', models.CharField(blank=True, max_length=200, unique=True)), ('phone_number', models.CharField(blank=True, max_length=200, unique=True)), ], bases=('core.device', ), ), migrations.AddField( model_name='networkanalysis', name='session', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Session'), ), migrations.AddField( model_name='dnsquery', name='network_analysis', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.NetworkAnalysis'), ), migrations.AddField( model_name='session', name='bluetooth_dump', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.BluetoothDump'), ), migrations.AddField( model_name='session', name='flow_file', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.FlowFile'), ), migrations.AddField( model_name='session', name='pcap_file', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.PCAPFile'), ), migrations.AddField( model_name='experiment', name='iot_device', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.IoTDevice'), ), migrations.AddField( model_name='experiment', name='smartphone', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Smartphone'), ), migrations.AddField( model_name='application', name='apk', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.APKFile'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('auth', '0009_alter_user_last_name_max_length'), ('taggit', '0002_auto_20150616_2121'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('updated_at', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, help_text='!! must not be edited after publish !!', populate_from=['name'], unique=True)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='core.Category')), ], options={ 'verbose_name_plural': 'categories', 'db_table': 'categories', }, ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('updated_at', models.DateTimeField(auto_now=True)), ('name', models.CharField(max_length=255)), ('mime', models.CharField(default='', max_length=64)), ('image', models.ImageField(upload_to=core.models._upload_to_image, verbose_name='Image')), ('groups', models.ManyToManyField(related_name='images', to='auth.Group')), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='images', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'images', }, ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('updated_at', models.DateTimeField(auto_now=True)), ('external_link', models.URLField( blank=True, help_text= '\n !! if this value is existance,\n atag link will be set external site !!\n ', max_length=255, null=True)), ('slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, help_text='!! must not be edited after publish !!', populate_from=['created_at', 'category_slug', 'title'], unique=True)), ('title', models.CharField(max_length=255)), ('content', tinymce.models.HTMLField(blank=True, null=True, verbose_name='Content')), ('image', models.ImageField(blank=True, null=True, upload_to=core.models._upload_to_post, verbose_name='Image')), ('publish', models.BooleanField(default=False)), ('publish_at', models.DateField(blank=True, null=True)), ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='core.Category')), ], options={ 'db_table': 'posts', }, ), migrations.CreateModel( name='PostsTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('post_id', models.IntegerField(db_index=True)), ('content_object', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts_tags', to='core.Post')), ('tag', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_poststag_items', to='taggit.Tag')), ], options={ 'db_table': 'posts_tags', }, ), migrations.AddField( model_name='post', name='tags', field=taggit.managers.TaggableManager( blank=True, help_text='A comma-separated list of tags.', through='core.PostsTag', to='taggit.Tag', verbose_name='Tags'), ), migrations.AddField( model_name='post', name='user', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, related_name='posts', to=settings.AUTH_USER_MODEL), ), migrations.AlterUniqueTogether( name='category', unique_together={('slug', 'parent')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] 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=254, unique=True, verbose_name='email')), ('name', models.CharField(max_length=60, verbose_name='name')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('is_admin', models.BooleanField(default=False, verbose_name='admin')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', core.models.UserManager()), ], ), migrations.CreateModel( name='Classroom', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField()), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('classroom', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Classroom')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Beneficiary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('beneficiary_name', models.CharField(max_length=64)), ('beneficiary_phone', models.CharField(max_length=15)), ('beneficiary_address', models.CharField(max_length=255)), ('beneficiary_email', models.EmailField(max_length=254)), ('beneficiary_bank', models.CharField(max_length=64)), ('beneficiary_account', models.IntegerField()), ('swift', models.CharField(max_length=24)), ('iban', models.CharField(max_length=24)), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone', models.CharField(max_length=15)), ('date_of_birth', models.DateField()), ('address', models.CharField(max_length=255)), ('country', django_countries.fields.CountryField(max_length=2)), ('state', models.CharField(max_length=36)), ('city', models.CharField(max_length=36)), ('marital_status', models.CharField(choices=[('S', 'Single'), ('M', 'Married'), ('D', 'Divorced')], max_length=1)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1)), ('pin', models.IntegerField()), ('image', models.ImageField(height_field=300, upload_to='profile_pics', width_field=300)), ('ip_address', models.GenericIPAddressField()), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('transaction_ref', models.CharField(default=core.models.generate_transaction_ref, max_length=16)), ('transaction_amount', models.FloatField()), ('transaction_fee', models.FloatField()), ('transaction_date', models.DateTimeField(default=django.utils.timezone.now)), ('beneficiary', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Beneficiary')), ], ), migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('account_name', models.CharField(max_length=64)), ('account_number', models.IntegerField()), ('account_type', models.CharField(choices=[('S', 'Savings'), ('C', 'Current'), ('F', 'Fixed Deposit')], max_length=1)), ('account_balance', models.FloatField()), ('tac', models.CharField(default=core.models.generate_random_digits, max_length=4)), ('tax', models.CharField(default=core.models.generate_random_digits, max_length=4)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='HashTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hashtag', models.CharField( max_length=50, validators=[core.validators.HashTagValidator()])), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(max_length=150)), ('posted_on', models.DateTimeField(auto_now_add=True)), ('image_obj', models.ImageField( upload_to=core.models.get_user_image_folder)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ImageComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment_body', models.CharField(max_length=250)), ('posted_on', models.DateTimeField(auto_now_add=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ImageLike', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Place', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('place_name', models.CharField(max_length=50)), ('place_slug', models.SlugField()), ('longitude', models.DecimalField(decimal_places=6, max_digits=9)), ('latitude', models.DecimalField(decimal_places=6, max_digits=9)), ], options={ 'ordering': ('place_name', ), }, ), migrations.CreateModel( name='Video', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(max_length=150)), ('posted_on', models.DateTimeField(auto_now_add=True)), ('video_obj', models.FileField( upload_to=core.models.get_user_video_folder)), ('views', models.PositiveIntegerField(default=0)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='VideoComment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment_body', models.CharField(max_length=250)), ('posted_on', models.DateTimeField(auto_now_add=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='VideoLike', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Usuario', fields=[ ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('id', models.AutoField(primary_key=True, serialize=False)), ('nome', models.CharField(blank=True, max_length=50, null=True)), ('ra', models.IntegerField(blank=True, null=True, unique=True)), ('email', models.CharField(blank=True, max_length=100, null=True)), ('password', models.CharField(blank=True, max_length=150, null=True)), ('perfil', models.CharField(blank=True, default='C', max_length=1, null=True)), ('ativo', models.BooleanField(default=True)), ], options={ 'abstract': False, }, managers=[ ('objects', core.models.UsuarioManager()), ], ), migrations.CreateModel( name='Curso', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sigla', models.CharField(max_length=5, unique=True)), ('nome', models.CharField(max_length=50, unique=True)), ], options={ 'db_table': 'Curso', }, ), migrations.CreateModel( name='Disciplina', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=240, unique=True)), ('carga_horaria', models.SmallIntegerField()), ('teoria', models.DecimalField(decimal_places=2, max_digits=3)), ('pratica', models.DecimalField(decimal_places=2, max_digits=3)), ('ementa', models.TextField()), ('competencias', models.TextField()), ('habilidades', models.TextField()), ('conteudo', models.TextField()), ('bibliografia_complementar', models.TextField()), ('bibliografia_basica', models.TextField()), ], options={ 'db_table': 'Disciplina', }, ), migrations.CreateModel( name='DisciplinaOfertada', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ano', models.SmallIntegerField()), ('semestre', models.CharField(max_length=1)), ('disciplina', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='disciplinasOfertadas', to='core.Disciplina')), ], options={ 'db_table': 'DisciplinaOfertada', }, ), migrations.CreateModel( name='GradeCurricular', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ano', models.SmallIntegerField()), ('semestre', models.CharField(max_length=1)), ('curso', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gradesCurriculares', to='core.Curso')), ], options={ 'db_table': 'GradeCurricular', }, ), migrations.CreateModel( name='Matricula', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ano', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Mat_DO_A', to='core.DisciplinaOfertada')), ('disciplina', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Mat_DO_D', to='core.DisciplinaOfertada')), ('semestre', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Mat_DO_S', to='core.DisciplinaOfertada')), ], options={ 'db_table': 'Matricula', }, ), migrations.CreateModel( name='Periodo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('numero', models.SmallIntegerField()), ('disciplinas', models.ManyToManyField(db_table='PeriodoDisicplina', related_name='periodos', to='core.Disciplina')), ('gradeCurricular', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='periodos', to='core.GradeCurricular')), ], options={ 'db_table': 'Periodo', }, ), migrations.CreateModel( name='Questao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('numero', models.IntegerField(verbose_name='Numero')), ('entrega', models.DateField(verbose_name='Entrega')), ('arquivo', models.FileField(upload_to=core.models.monta_arquivo)), ], ), migrations.CreateModel( name='Turma', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('turno', models.CharField(max_length=15)), ('turma_sigla', models.CharField(max_length=1, unique=True)), ('cursos', models.ManyToManyField(db_table='CursoTurma', related_name='turmas', to='core.Curso')), ('disciplinaOfertada', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='turmas', to='core.DisciplinaOfertada')), ], options={ 'db_table': 'Turma', }, ), migrations.CreateModel( name='Aluno', fields=[ ('usuario_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('celular', models.CharField(blank=True, max_length=50, null=True)), ], options={ 'abstract': False, }, bases=('core.usuario',), ), migrations.CreateModel( name='Professor', fields=[ ('usuario_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('apelido', models.CharField(max_length=30, null=True, unique=True)), ], options={ 'abstract': False, }, bases=('core.usuario',), ), migrations.AddField( model_name='questao', name='turma', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Turma'), ), migrations.AddField( model_name='matricula', name='turma', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='Matricula_Turma', to='core.Turma'), ), migrations.AddField( model_name='turma', name='professor', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='turmas', to='core.Professor'), ), migrations.AddField( model_name='matricula', name='ra', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='Matriculas', to='core.Aluno'), ), migrations.AddField( model_name='aluno', name='turma', field=models.ForeignKey(db_column='turma', on_delete=django.db.models.deletion.CASCADE, related_name='turma_aluno', to='core.Turma'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('wagtailcore', '0023_alter_page_revision_on_delete_behaviour'), ('taggit', '0002_auto_20150616_2121'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('wagtailimages', '0010_change_on_delete_behaviour'), ('wagtaildocs', '0004_capitalizeverbose'), ] operations = [ migrations.CreateModel( name='BaseTemplate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=255)), ('filename', models.CharField(blank=True, max_length=255)), ], ), migrations.CreateModel( name='GeneralSiteSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('template_dir', models.CharField(blank=True, max_length=255)), ('google_analytics_property', models.CharField(blank=True, max_length=255)), ('base_template', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='core.BaseTemplate')), ('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.Site')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='OvercastImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='title')), ('file', models.ImageField(height_field='height', upload_to=wagtail.wagtailimages.models.get_upload_to, verbose_name='file', width_field='width')), ('width', models.IntegerField(editable=False, verbose_name='width')), ('height', models.IntegerField(editable=False, verbose_name='height')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='created at')), ('focal_point_x', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_y', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_width', models.PositiveIntegerField(blank=True, null=True)), ('focal_point_height', models.PositiveIntegerField(blank=True, null=True)), ('file_size', models.PositiveIntegerField(editable=False, null=True)), ('credit', models.CharField(blank=True, max_length=255)), ('tags', taggit.managers.TaggableManager(blank=True, help_text=None, through='taggit.TaggedItem', to='taggit.Tag', verbose_name='tags')), ('uploaded_by_user', models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploaded by user')), ], options={ 'abstract': False, }, bases=(models.Model, wagtail.wagtailadmin.taggable.TagSearchable), ), migrations.CreateModel( name='OvercastRendition', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.ImageField(height_field='height', upload_to='images', width_field='width')), ('width', models.IntegerField(editable=False)), ('height', models.IntegerField(editable=False)), ('focal_point_key', models.CharField(blank=True, default='', editable=False, max_length=255)), ('filter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailimages.Filter')), ('image', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='renditions', to='core.OvercastImage')), ], ), migrations.CreateModel( name='StandardPage', fields=[ ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('streamfield', wagtail.wagtailcore.fields.StreamField([(b'h2', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), (b'h3', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), (b'h4', wagtail.wagtailcore.blocks.CharBlock(classname='title', icon='title')), (b'intro', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), (b'paragraph', wagtail.wagtailcore.blocks.RichTextBlock(icon='pilcrow')), (b'aligned_image', wagtail.wagtailcore.blocks.StructBlock([(b'image', wagtail.wagtailimages.blocks.ImageChooserBlock()), (b'alignment', core.models.ImageFormatChoiceBlock()), (b'caption', wagtail.wagtailcore.blocks.CharBlock()), (b'attribution', wagtail.wagtailcore.blocks.CharBlock(required=False))], label='Aligned image')), (b'bustout', wagtail.wagtailcore.blocks.StructBlock([(b'image', wagtail.wagtailimages.blocks.ImageChooserBlock()), (b'text', wagtail.wagtailcore.blocks.RichTextBlock())])), (b'pullquote', wagtail.wagtailcore.blocks.StructBlock([(b'quote', wagtail.wagtailcore.blocks.CharBlock(classname='quote title')), (b'attribution', wagtail.wagtailcore.blocks.CharBlock())])), (b'raw_html', wagtail.wagtailcore.blocks.RawHTMLBlock(icon='code', label='Raw HTML')), (b'embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='code'))])), ('feed_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.OvercastImage')), ('header_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='core.OvercastImage')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='StandardPageContentBlock', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('content', wagtail.wagtailcore.fields.RichTextField()), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='content_block', to='core.StandardPage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='StandardPageRelatedLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sort_order', models.IntegerField(blank=True, editable=False, null=True)), ('link_external', models.URLField(blank=True, verbose_name='External link')), ('title', models.CharField(help_text='Link title', max_length=255)), ('link_document', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtaildocs.Document')), ('link_page', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='wagtailcore.Page')), ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='related_links', to='core.StandardPage')), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.AlterUniqueTogether( name='overcastrendition', unique_together=set([('image', 'filter', 'focal_point_key')]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('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='FriendRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('timestamp', models.DateTimeField(auto_now_add=True)), ('from_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='from_user', to=settings.AUTH_USER_MODEL)), ('to_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='to_user', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Gallery', 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='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(unique=True)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, editable=False)), ('modified_at', models.DateTimeField()), ('friends', models.ManyToManyField(blank=True, to='core.Profile')), ('user', models.OneToOneField( 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='UploadedImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('image', models.ImageField(null=True, upload_to=core.models.image_file_path)), ('gallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='core.Gallery')), ('tags', models.ManyToManyField(to='core.Tag')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Space', fields=[ ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('privacy', models.CharField( choices=[('PUBLIC', 'Public'), ('PRIVATE', 'Private')], db_index=True, default='PUBLIC', help_text= 'Whether files inside space can be accessed publicly', max_length=10)), ('name', models.SlugField( max_length=32, unique=True, validators=[common.validators.SpaceNameValidator])), ('created_on', models.DateTimeField(auto_now_add=True, db_index=True)), ('updated_on', models.DateTimeField(auto_now=True, db_index=True)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='folders', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Space', 'verbose_name_plural': 'Spaces', 'ordering': ['-id'], 'default_permissions': [], }, bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), ), migrations.CreateModel( name='Folder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=256)), ('path', django.contrib.postgres.fields.ArrayField( base_field=models.CharField(max_length=256), db_index=True, editable=False, help_text= 'to be used when querying files or folders by path instead of the more efficient id', size=None)), ('created_on', models.DateTimeField(auto_now_add=True, db_index=True)), ('updated_on', models.DateTimeField(auto_now=True, db_index=True)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='core.folder')), ('space', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='folders', to='core.space')), ], options={ 'verbose_name': 'Folder', 'verbose_name_plural': 'Folders', 'ordering': ['-id'], 'default_permissions': [], }, bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), ), migrations.CreateModel( name='File', fields=[ ('id', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)), ('name', models.CharField(db_index=True, max_length=256)), ('content_type', models.CharField(db_index=True, max_length=144)), ('content_length', models.IntegerField(default=0)), ('content', models.FileField( upload_to=core.models.UploadToPathAndRename())), ('metadata', models.JSONField(blank=True, default=dict)), ('created_on', models.DateTimeField(auto_now_add=True, db_index=True)), ('updated_on', models.DateTimeField(auto_now=True, db_index=True)), ('folder', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='files', to='core.folder')), ('parent', models.ForeignKey(blank=True, editable=False, help_text='For processed files parent', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='core.file')), ], options={ 'verbose_name': 'File', 'verbose_name_plural': 'Files', 'ordering': ['-id'], 'default_permissions': [], }, bases=(django_lifecycle.mixins.LifecycleModelMixin, models.Model), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='BlackListFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=core.models.get_black_list_path, verbose_name='\u6587\u4ef6')), ('size', models.BigIntegerField(default=0, verbose_name='\u5927\u5c0f')), ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='\u5907\u6ce8')), ], options={ 'verbose_name': '\u9ed1\u540d\u5355', 'verbose_name_plural': '\u9ed1\u540d\u5355', }, ), migrations.CreateModel( name='Job', fields=[ ('id', models.CharField(default=core.models.gen_job_id, max_length=32, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default='\u626b\u63cf\u4efb\u52a1', max_length=30, verbose_name='\u4efb\u52a1\u540d\u79f0')), ('port', models.IntegerField(verbose_name='\u626b\u63cf\u7aef\u53e3')), ('bandwidth', models.IntegerField(default=100, verbose_name='\u5e26\u5bbd')), ('priority', models.IntegerField(choices=[(0, '\u4f4e'), (1, '\u4e2d'), (2, '\u9ad8'), (3, '\u6781\u9ad8')], default=1, verbose_name='\u4f18\u5148\u7ea7')), ('output_path', models.CharField(blank=True, max_length=255, null=True, verbose_name='\u8f93\u51fa\u6587\u4ef6')), ('log_path', models.CharField(blank=True, max_length=255, null=True, verbose_name='\u65e5\u5fd7\u6587\u4ef6')), ('status', models.IntegerField(choices=[(0, '\u7b49\u5f85\u6267\u884c'), (1, '\u6b63\u5728\u6267\u884c'), (2, '\u6267\u884c\u5b8c\u6210'), (3, '\u6267\u884c\u9519\u8bef')], default=0, verbose_name='\u72b6\u6001')), ('progress', models.CharField(blank=True, max_length=3, null=True, verbose_name='\u6267\u884c\u8fdb\u5ea6')), ('left_time', models.CharField(blank=True, max_length=15, null=True, verbose_name='\u5269\u4f59\u65f6\u95f4')), ('verbosity', models.IntegerField(default=3, verbose_name='\u65e5\u5fd7\u7ea7\u522b')), ('creation_time', models.DateTimeField( default=django.utils.timezone.now, verbose_name='\u521b\u5efa\u65f6\u95f4')), ('start_time', models.DateTimeField( blank=True, null=True, verbose_name='\u542f\u52a8\u65f6\u95f4')), ('end_time', models.DateTimeField( blank=True, null=True, verbose_name='\u7ed3\u675f\u65f6\u95f4')), ('hit_rate', models.CharField(blank=True, max_length=10, null=True, verbose_name='\u547d\u4e2d\u7387')), ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='\u5907\u6ce8')), ('black_list_file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.BlackListFile', verbose_name='\u9ed1\u540d\u5355')), ], options={ 'verbose_name': '\u4efb\u52a1', 'verbose_name_plural': '\u4efb\u52a1', }, ), migrations.CreateModel( name='WhiteListFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=core.models.get_white_list_path, verbose_name='\u6587\u4ef6')), ('size', models.BigIntegerField(default=0, verbose_name='\u5927\u5c0f')), ('remark', models.CharField(blank=True, max_length=255, null=True, verbose_name='\u5907\u6ce8')), ], options={ 'verbose_name': '\u767d\u540d\u5355', 'verbose_name_plural': '\u767d\u540d\u5355', }, ), migrations.AddField( model_name='job', name='white_list_file', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.WhiteListFile', verbose_name='\u767d\u540d\u5355'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] 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')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('phone_number', models.CharField( blank=True, help_text='Phone number of the user', max_length=15, unique=True, validators=[ django.core.validators.RegexValidator( message= "Phone number must be entered in the format: '999999999'", regex='^\\+?1?\\d{9,14}$') ], verbose_name='phone_number')), ('first_name', models.CharField(blank=True, help_text="User's first name", max_length=255, null=True, verbose_name='first_name')), ('last_name', models.CharField(blank=True, help_text="User's last name", max_length=255, null=True, verbose_name='last_name')), ('active', models.BooleanField(default=True, help_text='Is user active', verbose_name='is_active')), ('staff', models.BooleanField(default=False, help_text='Is user a staff member', verbose_name='is_staff')), ('admin', models.BooleanField(default=False, help_text='Is user a superuser/admin', verbose_name='is_admin')), ('email', models.EmailField(blank=True, help_text='User email Id', max_length=255, null=True, unique=True, verbose_name='email_id')), ('gender', models.CharField(blank=True, choices=[('M', 'M - MALE'), ('F', 'F - FEMALE'), ('O', 'O - OTHER')], help_text='User gender', max_length=255, null=True, verbose_name='gender')), ('user_type', models.CharField(blank=True, choices=[('R', 'R - REQUESTOR'), ('G', 'G - GIGSTER')], help_text='Is user a Requestor/Gigster', max_length=255, null=True, verbose_name='user_type')), ('user_rating', models.FloatField(blank=True, help_text='User overall Rating', null=True, verbose_name='User Rating')), ('suspended', models.BooleanField( default=False, help_text='Is user suspended by the admin', verbose_name='is_user_suspended')), ('suspended_date', models.DateTimeField( auto_now=True, help_text='Auto added when the user is suspended', null=True, verbose_name='Suspended Date')), ('city', models.CharField(blank=True, help_text="User's City", max_length=255, null=True, verbose_name='City')), ], options={ 'verbose_name': 'User', 'verbose_name_plural': 'Users', 'db_table': 'Users', 'managed': True, }, ), migrations.CreateModel( name='GigsterProject', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('gigster_project_choice', models.IntegerField(choices=[(1, 'A - ACCEPT'), (2, 'R - REJECT')], null=True, verbose_name='gigster_project_choice')), ('gigster_rating', models.DecimalField(blank=True, decimal_places=1, max_digits=2, null=True, verbose_name='gigster_rating')), ('project_status', models.IntegerField(blank=True, choices=[(1, 'O - OPEN'), (2, 'A - ACCEPTED'), (3, 'C - CLOSED '), (4, 'S - STARTED'), (5, 'E - ENDED'), (6, 'A - APPROVED'), (7, 'R - RATED'), (8, 'P - PAID')], null=True)), ('pay_status', models.IntegerField(blank=True, choices=[(1, 'P - PAID'), (2, 'U - UNPAID')], null=True)), ], options={ 'verbose_name': 'Gigster Project', 'verbose_name_plural': 'Gigster Projects', 'db_table': 'Gigster_Project', 'managed': True, }, ), migrations.CreateModel( name='GigsterSkills', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('experience', models.IntegerField(blank=True, choices=[(1, 'NO EXPERIENCE'), (2, '3-6 MONTHS EXPERIENCE '), (3, '6+ MONTHS EXPERIENCE ')], null=True, verbose_name='experience')), ('certificate', models.ImageField(blank=True, null=True, upload_to=core.models.upload_certificate)), ('experience_in_word', models.TextField(blank=True, null=True, verbose_name='experience_in_word')), ], options={ 'verbose_name': 'Gigster Skill', 'verbose_name_plural': 'Gigster Skills', 'db_table': 'Gigster Skills', 'managed': True, }, ), migrations.CreateModel( name='PhoneOTP', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('phone_number', models.CharField( blank=True, help_text='Phone number to be validated', max_length=15, validators=[ django.core.validators.RegexValidator( message= "Phone number must be entered in the format: '999999999'", regex='^\\+?1?\\d{9,14}$') ], verbose_name='phone_number')), ('otp', models.CharField( help_text='otp to be send to the Phone number', max_length=6, verbose_name='OTP')), ('count', models.IntegerField(default=0, help_text='Number of OTP send.', verbose_name='Attempted count')), ('is_verified', models.BooleanField( default=False, help_text= 'If it is true, this means user has validated otp correctly', verbose_name='is_verified')), ], options={ 'verbose_name': 'Phone OTP', 'verbose_name_plural': 'Phone OTPs', 'db_table': 'PhoneOTP', 'managed': True, }, ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('project_category', models.IntegerField(blank=True, choices=[(1, 'Events')], null=True)), ('project_title', models.CharField(blank=True, max_length=255, null=True)), ('project_type', models.IntegerField(blank=True, choices=[(1, 'S - SINGLE-DAY-JOB'), (2, 'M - MULTI-DAY-JOB')], null=True)), ('no_of_gigsters_required', models.CharField(blank=True, max_length=255, null=True)), ('gender_of_gigsters_required', models.IntegerField(blank=True, choices=[(1, 'M - MALE'), (2, 'F - FEMALE'), (3, 'N - NO PARTICULAR CHOICE')], null=True)), ('requirements', models.TextField(blank=True, null=True)), ('special_instruction', models.TextField(blank=True, null=True)), ('project_location', models.TextField(blank=True, null=True)), ('arrival_instructions', models.TextField(blank=True, null=True)), ('project_details', models.TextField(blank=True, null=True)), ('project_active', models.BooleanField(default=False)), ('duration', models.CharField(blank=True, max_length=255, null=True)), ('pay', models.CharField(blank=True, max_length=255, null=True)), ('requestor_rating', models.DecimalField(blank=True, decimal_places=1, max_digits=2, null=True)), ('project_subcategory', models.CharField(blank=True, max_length=255, null=True)), ('pay_status', models.IntegerField(blank=True, choices=[(1, 'P - PAID'), (2, 'U - UNPAID')], null=True)), ('project_status', models.IntegerField(blank=True, choices=[(0, 'P - PENDING'), (1, 'O - OPEN'), (2, 'F - FILLED'), (3, 'C - CLOSED '), (4, 'S- STARTED'), (5, 'E- ENDED'), (6, 'A - APPROVED'), (7, 'R - RATED')], default=0, null=True)), ], options={ 'verbose_name': 'Project', 'verbose_name_plural': 'Projects', 'db_table': 'Project', 'managed': True, }, ), migrations.CreateModel( name='Requestor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('company_name', models.CharField(blank=True, help_text="Requestor's Company name ", max_length=255, null=True, verbose_name='Company_name')), ('company_location', models.TextField(blank=True, help_text="Requestor's Company Address", null=True, verbose_name='Company_location')), ('postal_code', models.CharField(blank=True, help_text='Pin Code', max_length=255, null=True, verbose_name='Postal_code')), ('company_description', models.TextField(blank=True, help_text='Company Description', null=True, verbose_name='Company_description')), ('company_website', models.CharField(blank=True, help_text='Company Website', max_length=255, null=True, verbose_name='Company_website')), ('company_type', models.IntegerField(blank=True, choices=[ (1, 'Private Limited Company'), (2, 'Partnership'), (3, 'Limited Liability Partnership'), (4, 'Proprietorship'), (5, 'One Person Company'), (6, 'Section 8 Company') ], help_text='Company type of User', null=True, verbose_name='company_type')), ('designation', models.CharField(blank=True, help_text='Designation of Requestor', max_length=255, null=True, verbose_name='Requestor_designation')), ('linkedin_profile', models.URLField(blank=True, help_text='Requestor Linkedin Profile', max_length=255, null=True, verbose_name='Requestor_linkedin')), ('is_valid', models.BooleanField( default=False, help_text='Is Requestor verified by the admin')), ], options={ 'verbose_name': 'Requestor', 'verbose_name_plural': 'Requestors', 'db_table': 'Requestor', 'managed': True, }, ), migrations.CreateModel( name='Skills', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('skill_name', models.CharField(blank=True, max_length=255, null=True, verbose_name='Skill')), ], options={ 'verbose_name': 'Skill', 'verbose_name_plural': 'Skills', 'db_table': 'Skills', 'managed': True, }, ), migrations.CreateModel( name='UserDevices', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('mac_address', models.CharField(max_length=255, verbose_name='mac_address')), ('platform', models.IntegerField(blank=True, choices=[(1, 'A- Android'), (2, 'I- IOS')], null=True, verbose_name='Platform')), ('version', models.CharField(blank=True, max_length=255, null=True, verbose_name='version')), ('device_id', models.BigIntegerField(default=1, verbose_name='device_id')), ('registration_source', models.IntegerField( blank=True, choices=[(1, 'PLAYSTORE - Android Playstore source'), (2, 'APPSTORE - Apple App Store'), (3, 'ADMIN- Added to the system by the Admin')], null=True, verbose_name='registration_source')), ], options={ 'verbose_name': 'User Device', 'verbose_name_plural': 'User Devices', 'db_table': 'user_devices', 'managed': True, }, ), migrations.CreateModel( name='Gigster', fields=[ ('created_at', models.DateTimeField( auto_now_add=True, help_text='Auto added at the time of creation only.', null=True, verbose_name='Created Date')), ('updated_at', models.DateTimeField( auto_now=True, help_text='Auto added everytime model is updated.', null=True, verbose_name='Updated Date')), ('gigster', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('vehicles_owned', models.IntegerField(blank=True, choices=[(1, 'B - BIKE'), (2, 'S - SCOOTY'), (3, 'C - CAR')], null=True)), ('dob', models.DateField(blank=True, null=True)), ('bio', models.TextField(blank=True, help_text="Gigster's bio", null=True)), ('aadhar_front', models.ImageField(blank=True, null=True, upload_to=core.models.upload_aadhar_front)), ('aadhar_back', models.ImageField(blank=True, null=True, upload_to=core.models.upload_aadhar_back)), ('pan_card', models.ImageField(blank=True, null=True, upload_to=core.models.upload_pan_card)), ('profile_photo', models.ImageField( blank=True, null=True, upload_to=core.models.upload_gigster_profile_photo)), ('driving_licence', models.ImageField( blank=True, null=True, upload_to=core.models.upload_driving_licence)), ('rating', models.FloatField(blank=True, help_text='Gigster overall Rating', null=True, verbose_name='Gigster Rating')), ], options={ 'verbose_name': 'Gigster', 'verbose_name_plural': 'Gigsters', 'db_table': 'Gigster', 'managed': True, }, ), migrations.AddField( model_name='userdevices', name='user', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='requestor', name='user', field=models.OneToOneField( help_text='Instance of User Model', on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='project', name='requestor', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='core.Requestor'), ), migrations.AddField( model_name='gigsterskills', name='skill', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='core.Skills'), ), migrations.AddField( model_name='gigsterproject', name='project', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='core.Project'), ), migrations.AddField( model_name='gigsterskills', name='gigster', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='core.Gigster'), ), migrations.AddField( model_name='gigsterproject', name='gigster', field=models.ForeignKey( default=1, on_delete=django.db.models.deletion.CASCADE, to='core.Gigster'), ), migrations.AddField( model_name='gigster', name='skills', field=models.ManyToManyField(through='core.GigsterSkills', to='core.Skills'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='ActiveWallet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('result', models.FileField(blank=True, editable=False, null=True, upload_to=core.models.upload_path)), ('status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('finished', 'Finished')], default='pending', max_length=20)), ], options={ 'verbose_name_plural': 'Carteras Activas', 'verbose_name': 'Cartera Activa', }, ), migrations.CreateModel( name='Salary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('salary_csv', models.FileField(help_text='El archivo debe tener dos columnas: DNI;Sueldo', upload_to='')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Sueldos', 'verbose_name': 'Sueldo', }, ), migrations.CreateModel( name='Snapshot', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('dump', models.FileField(blank=True, null=True, upload_to='')), ('generate', models.BooleanField(default=True)), ('status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('downloading', 'Downloading'), ('cancelled', 'Cancelled'), ('finished', 'Finished')], default='pending', max_length=20)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Snapshots', 'verbose_name': 'Snapshot', }, ), migrations.CreateModel( name='SnapshotRestore', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('database_name', models.CharField(default=core.models.generate_dbname, editable=False, max_length=50)), ('database_status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('active', 'Active'), ('inactive', 'Inactive')], default='pending', max_length=20)), ('status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('finished', 'Finished')], default='pending', max_length=20)), ('snapshot', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Snapshot')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Snapshots Restore', 'verbose_name': 'Snapshot Restore', }, ), migrations.AddField( model_name='activewallet', name='salary', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Salary'), ), migrations.AddField( model_name='activewallet', name='snapshot_restore', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.SnapshotRestore'), ), migrations.AddField( model_name='activewallet', name='user', field=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=255, unique=True)), ('username', models.CharField(max_length=25, unique=True)), ('full_name', models.CharField(blank=True, max_length=50)), ('bio', models.TextField(blank=True)), ('date_joined', models.DateTimeField(auto_now_add=True)), ('profile_pic', models.ImageField( default='avatar.png', upload_to=core.models.user_profile_pic_file_path)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('followers', models.ManyToManyField(blank=True, related_name='user_followers', to=settings.AUTH_USER_MODEL)), ('following', models.ManyToManyField(blank=True, related_name='user_following', to=settings.AUTH_USER_MODEL)), ('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 = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Modulo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tipo', models.CharField(max_length=56, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Creado ')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Actualizado ')), ], options={ 'verbose_name': 'Modulo', 'verbose_name_plural': 'Modulos', }, ), migrations.CreateModel( name='Plantila', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('archivo', models.FileField(max_length=126, upload_to='Plantillas/')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Creado ')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Actualizado ')), ], options={ 'verbose_name': 'Plantilla', 'verbose_name_plural': 'Plantillas', }, ), migrations.CreateModel( name='Perfil', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nombre', models.CharField(max_length=56)), ('apellido_paterno', models.CharField(max_length=56)), ('apellido_materno', models.CharField(max_length=56)), ('email_institucional', models.CharField( max_length=126, validators=[ django.core.validators.RegexValidator( message= 'El formato del correo debe ser @tectijuana.edu.mx', regex='(^[a-zA-Z0-9_.+-][email protected]+$)') ])), ('foto', models.ImageField(blank=True, max_length=126, null=True, upload_to=core.models.rename_folder_photo)), ('estado', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Creado ')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Actualizado ')), ('modulo', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.modulo')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Perfil', 'verbose_name_plural': 'Perfiles', }, ), migrations.CreateModel( name='Expediente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('matricula', models.CharField(max_length=56)), ('nombre', models.CharField(max_length=56)), ('apellido_paterno', models.CharField(max_length=56)), ('apellido_materno', models.CharField(max_length=56)), ('estado', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Creado ')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Actualizado ')), ('perfil', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.perfil')), ], options={ 'verbose_name': 'Expediente', 'verbose_name_plural': 'Expedientes', }, ), migrations.CreateModel( name='Credito', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('directorio', models.FileField( blank=True, max_length=126, null=True, upload_to=core.models.rename_folder_credito)), ('nombre', models.CharField(blank=True, max_length=126, null=True)), ('estado', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='Creado ')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='Actualizado ')), ('matricula', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.expediente')), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Credito', 'verbose_name_plural': 'Creditos', }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('contenttypes', '0002_remove_content_type_name'), ('core', '0003_auto_20171220_1259'), ] operations = [ migrations.CreateModel( name='TaggedUserItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, default='', help_text='Name', max_length=255)), ('note', models.TextField(blank=True, help_text='Note', null=True)), ('created', models.DateTimeField(auto_now_add=True, help_text='Created', null=True)), ('updated', models.DateTimeField(auto_now=True, help_text='Last updated', null=True)), ('object_id', models.PositiveIntegerField()), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')), ('user', models.ForeignKey(on_delete=models.SET( core.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=(models.Model, core.models.DictDocumentMixin), ), migrations.RemoveField( model_name='taggeditem', name='content_type', ), migrations.RemoveField( model_name='taggeditem', name='user', ), migrations.AddField( model_name='scoreditem', name='created', field=models.DateTimeField(auto_now_add=True, help_text='Created', null=True), ), migrations.AddField( model_name='scoreditem', name='name', field=models.CharField(db_index=True, default='', help_text='Name', max_length=255), ), migrations.AddField( model_name='scoreditem', name='note', field=models.TextField(blank=True, help_text='Note', null=True), ), migrations.AddField( model_name='scoreditem', name='updated', field=models.DateTimeField(auto_now=True, help_text='Last updated', null=True), ), migrations.AlterField( model_name='score', name='created', field=models.DateTimeField(auto_now_add=True, help_text='Created', null=True), ), migrations.AlterField( model_name='score', name='name', field=models.CharField(db_index=True, default='', help_text='Name', max_length=255), ), migrations.AlterField( model_name='score', name='updated', field=models.DateTimeField(auto_now=True, help_text='Last updated', null=True), ), migrations.CreateModel( name='ImageUser', fields=[ ('taggeduseritem_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.TaggedUserItem')), ('img', models.ImageField(upload_to=core.models.user_directory_path)), ], options={ 'abstract': False, }, bases=('core.taggeduseritem', ), ), migrations.DeleteModel(name='Image', ), migrations.DeleteModel(name='TaggedItem', ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0011_update_proxy_permissions"), ] operations = [ migrations.CreateModel( name="User", fields=[ ( "id", models.UUIDField( default=uuid.uuid4, editable=False, primary_key=True, serialize=False, ), ), ( "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( help_text="email do usuário", max_length=254, unique=True, verbose_name="email address", ), ), ( "password", models.CharField( help_text="senha do usuário", max_length=128, verbose_name="senha", ), ), ( "_picture", models.ImageField( blank=True, help_text="imagem de perfil", null=True, upload_to=users.utils.picture_path, verbose_name="imagem de perfil", ), ), ( "is_staff", models.BooleanField( default=False, help_text="usuário tem acesso à interface admin?", verbose_name="staff status", ), ), ( "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": "Usuário", "verbose_name_plural": "Usuários", "ordering": ["email"], }, bases=(models.Model, core.models.UserOwnerMixin), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Backup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', private_storage.fields.PrivateFileField( storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_backup, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_backup_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_backup_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Backup', 'verbose_name_plural': 'Backups', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, unique=True)), ('description', models.TextField(blank=True, max_length=100)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, upload_to='images/')), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_group_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_group_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Group', 'verbose_name_plural': 'Groups', 'ordering': ['name'], }, ), migrations.CreateModel( name='Guide', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('guide', ckeditor_uploader.fields.RichTextUploadingField( blank=True, null=True, verbose_name='Text')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_guide, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_guide_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_guide_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Guide', 'verbose_name_plural': 'Guides', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='HistoricalKey', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', encrypted_model_fields.fields.EncryptedCharField( blank=True, null=True, verbose_name='Password')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', models.TextField(blank=True, max_length=100, null=True, verbose_name='File')), ('slug', models.SlugField()), ('history_id', models.AutoField(primary_key=True, serialize=False)), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_date', models.DateTimeField()), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('created_by', models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ('history_user', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('last_modified_by', models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical Key', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='Key', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', encrypted_model_fields.fields.EncryptedCharField( blank=True, null=True, verbose_name='Password')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_key, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_key_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_key_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Key', 'verbose_name_plural': 'Keys', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='Set', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('description', models.TextField(blank=True, max_length=100)), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_set_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Group')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_set_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ], options={ 'verbose_name': 'Set', 'verbose_name_plural': 'Sets', 'ordering': ['name'], }, ), migrations.CreateModel( name='Survey', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(max_length=50, verbose_name='Name')), ('note', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('survey', ckeditor_uploader.fields.RichTextUploadingField( blank=True, null=True, verbose_name='Text')), ('file', private_storage.fields.PrivateFileField( blank=True, null=True, storage=private_storage.storage.files. PrivateFileSystemStorage( base_url='/media-private/', location= '/home/javier/PycharmProjects/tesis/tesis/media/groups/' ), upload_to=core.models.upload_survey, verbose_name='File')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_survey_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_survey_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('set', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Set')), ], options={ 'verbose_name': 'Survey', 'verbose_name_plural': 'Surveys', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyDevice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Name')), ('ip', models.IntegerField(blank=True, null=True, verbose_name='Ip')), ('connection', models.CharField(blank=True, max_length=50, null=True, verbose_name='Connection')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Password')), ('type', models.CharField(blank=True, max_length=50, null=True, verbose_name='Type')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveydevice_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveydevice_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey Server', 'verbose_name_plural': 'Surveys Servers', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyGeneral', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('number', models.CharField(max_length=50, verbose_name='Name')), ('responsable', models.CharField(blank=True, max_length=50, null=True, verbose_name='Responsable')), ('company', models.CharField(blank=True, max_length=50, null=True, verbose_name='Company')), ('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='Address')), ('telephone', models.CharField(blank=True, max_length=50, null=True, verbose_name='Telephone')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('webpage', models.CharField(blank=True, max_length=50, null=True, verbose_name='Webpage')), ('person_incharge', models.CharField(blank=True, max_length=50, null=True, verbose_name='Person in charge')), ('workhours', models.CharField(blank=True, max_length=50, null=True, verbose_name='Workhours')), ('downtime', models.CharField(blank=True, max_length=50, null=True, verbose_name='Downtime')), ('business_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Business Name')), ('tax_residence', models.CharField(blank=True, max_length=50, null=True, verbose_name='Tax Residence')), ('cuit', models.CharField(blank=True, max_length=50, null=True, verbose_name='CUIT')), ('category', models.CharField(blank=True, max_length=50, null=True, verbose_name='Category')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observation')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveygeneral_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveygeneral_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey General', 'verbose_name_plural': 'Surveys Generals', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyServer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Name')), ('ip', models.IntegerField(blank=True, null=True, verbose_name='Ip')), ('connection', models.CharField(blank=True, max_length=50, null=True, verbose_name='Connection')), ('username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Username')), ('password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Password')), ('services', models.CharField(blank=True, max_length=50, null=True, verbose_name='Services')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Note')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyserver_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyserver_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey Server', 'verbose_name_plural': 'Surveys Servers', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('first_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Last Name')), ('Department', models.CharField(blank=True, max_length=50, null=True, verbose_name='Department')), ('job_title', models.CharField(blank=True, max_length=50, null=True, verbose_name='Job Title')), ('phone_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Phone Number')), ('intern_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='Intern Number')), ('country', models.CharField(blank=True, max_length=50, null=True, verbose_name='Country')), ('city', models.CharField(blank=True, max_length=50, null=True, verbose_name='City')), ('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='Address')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observations')), ('slug', models.SlugField()), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyuser_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyuser_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey User', 'verbose_name_plural': 'Surveys Users', 'ordering': ['last_modified_at'], }, ), migrations.CreateModel( name='SurveyWorkStation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='created_at')), ('last_modified_at', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='last_modified_at')), ('number', models.CharField(max_length=50, verbose_name='Name')), ('first_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='Last Name')), ('charge', models.CharField(blank=True, max_length=50, null=True, verbose_name='Charge')), ('telephone', models.CharField(blank=True, max_length=50, null=True, verbose_name='Telephone')), ('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email')), ('user_location', models.CharField(blank=True, max_length=50, null=True, verbose_name='User Location')), ('files_location', models.CharField(blank=True, max_length=50, null=True, verbose_name='Files Location')), ('windows_username', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Username')), ('windows_password', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Password')), ('windows_version', models.CharField(blank=True, max_length=50, null=True, verbose_name='Windows Version')), ('software_additional', models.CharField(blank=True, max_length=50, null=True, verbose_name='Software Additional')), ('email_type', models.CharField(blank=True, max_length=50, null=True, verbose_name='Email Type')), ('server_connections', models.CharField(blank=True, max_length=50, null=True, verbose_name='Server Connections')), ('observations', models.TextField(blank=True, max_length=200, null=True, verbose_name='Observation')), ('slug', models.SlugField()), ('created_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyworkstation_created', to=settings.AUTH_USER_MODEL, verbose_name='Created by')), ('last_modified_by', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='core_surveyworkstation_last_modified', to=settings.AUTH_USER_MODEL, verbose_name='Last modified by')), ('survey', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Survey')), ], options={ 'verbose_name': 'Survey WorkStation', 'verbose_name_plural': 'Surveys WorkStations', 'ordering': ['last_modified_at'], }, ), migrations.AddField( model_name='key', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), migrations.AddField( model_name='historicalkey', name='set', field=models.ForeignKey( blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='core.Set'), ), migrations.AddField( model_name='guide', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), migrations.AddField( model_name='backup', name='set', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Set'), ), ]
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='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=core.models.upload_path)), ('userPro', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='userPro', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.CharField(max_length=140)), ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to=settings.AUTH_USER_MODEL)), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='FriendRequest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('approved', models.BooleanField(default=False)), ('askFrom', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='askFrom', to=settings.AUTH_USER_MODEL)), ('askTo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='askTo', to=settings.AUTH_USER_MODEL)), ], options={ 'unique_together': {('askFrom', 'askTo')}, }, ), ]
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')), ('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')), ('address', models.CharField(blank=True, max_length=200, null=True)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('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', core.models.CustomUserManager()), ], ), ]
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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email')), ('first_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='\u0418\u043c\u044f')), ('last_name', models.CharField( blank=True, max_length=60, null=True, verbose_name='\u0424\u0430\u043c\u0438\u043b\u0438\u044f') ), ('is_staff', models.BooleanField( default=False, verbose_name= '\u041f\u0435\u0440\u0441\u043e\u043d\u0430\u043b?')), ('is_active', models.BooleanField( default=False, verbose_name='\u0410\u043a\u0442\u0438\u0432\u0435\u043d?' )), ('date_joined', models.DateTimeField( auto_now_add=True, verbose_name= '\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438' )), ('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': '\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c', 'verbose_name_plural': '\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438', }, managers=[ ('objects', core.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('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=core.models.recipe_image_file_path)), ('ingredients', models.ManyToManyField(to='core.Ingredient')), ('tags', models.ManyToManyField(to='core.Tag')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='CustomUsuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='E-mail')), ('imagem', models.FileField(blank=True, max_length=50, upload_to='', verbose_name='Imagem')), ('first_name', models.CharField(max_length=150, verbose_name='Primeiro nome')), ('last_name', models.CharField(max_length=150, verbose_name='Ultimo nome')), ('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', core.models.UsuarioManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_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')), ('group', models.CharField(max_length=40)), ('department', models.CharField(max_length=40)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='applygrained', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(db_index=True, max_length=50)), ('work_id', models.CharField(max_length=50, null=True)), ('status', models.IntegerField(blank=True, null=True)), ('permissions', core.models.JSONField()), ], ), migrations.CreateModel( name='DatabaseList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('connection_name', models.CharField(max_length=50)), ('computer_room', models.CharField(max_length=50)), ('ip', models.CharField(max_length=100)), ('username', models.CharField(max_length=150)), ('port', models.IntegerField()), ('password', models.CharField(max_length=50)), ('before', models.TextField(null=True)), ('after', models.TextField(null=True)), ('url', models.TextField(blank=True)), ], ), migrations.CreateModel( name='globalpermissions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('authorization', models.CharField(db_index=True, max_length=50, null=True)), ('inception', core.models.JSONField(null=True)), ('ldap', core.models.JSONField(null=True)), ('message', core.models.JSONField(null=True)), ('other', core.models.JSONField(null=True)), ], ), migrations.CreateModel( name='grained', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(db_index=True, max_length=50)), ('permissions', core.models.JSONField()), ], ), migrations.CreateModel( name='query_order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(db_index=True, max_length=50, null=True)), ('username', models.CharField(max_length=100, null=True)), ('date', models.CharField(max_length=50)), ('timer', models.CharField(max_length=50)), ('instructions', models.TextField(null=True)), ('query_per', models.SmallIntegerField(default=0, null=True)), ('connection_name', models.CharField(max_length=50, null=True)), ('computer_room', models.CharField(max_length=50, null=True)), ('export', models.SmallIntegerField(default=0, null=True)), ('audit', models.CharField(max_length=100, null=True)), ('time', models.CharField(max_length=100, null=True)), ], ), migrations.CreateModel( name='querypermissions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(db_index=True, max_length=50, null=True)), ('username', models.CharField(max_length=100, null=True)), ('statements', models.TextField()), ], ), migrations.CreateModel( name='SqlDictionary', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('BaseName', models.CharField(max_length=100)), ('TableName', models.CharField(max_length=100)), ('Field', models.CharField(max_length=100)), ('Type', models.CharField(max_length=100)), ('Extra', models.TextField()), ('TableComment', models.CharField(max_length=100)), ('Name', models.CharField(max_length=100, null=True)), ], ), migrations.CreateModel( name='SqlOrder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('work_id', models.CharField(blank=True, max_length=50)), ('username', models.CharField(blank=True, max_length=50)), ('status', models.IntegerField(blank=True)), ('type', models.SmallIntegerField(blank=True)), ('backup', models.SmallIntegerField(blank=True)), ('bundle_id', models.IntegerField(db_index=True, null=True)), ('date', models.CharField(blank=True, max_length=100)), ('basename', models.CharField(blank=True, max_length=50)), ('sql', models.TextField(blank=True)), ('text', models.CharField(max_length=100)), ('assigned', models.CharField(blank=True, max_length=50)), ('delay', models.IntegerField(default=0, null=True)), ], ), migrations.CreateModel( name='SqlRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state', models.CharField(max_length=100)), ('sql', models.TextField(blank=True)), ('error', models.TextField(null=True)), ('workid', models.CharField(max_length=50, null=True)), ('affectrow', models.CharField(max_length=100, null=True)), ('sequence', models.CharField(max_length=50, null=True)), ('execute_time', models.CharField(max_length=150, null=True)), ('backup_dbname', models.CharField(max_length=100, null=True)), ('SQLSHA1', models.TextField(null=True)), ], ), migrations.CreateModel( name='Todolist', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=50)), ('content', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Usermessage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('to_user', models.CharField(max_length=50)), ('from_user', models.CharField(max_length=50)), ('content', models.TextField(max_length=500)), ('time', models.CharField(max_length=50)), ('state', models.CharField(max_length=10)), ('title', models.CharField(max_length=100)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='登録メールアドレス')), ('email_for_notice', models.EmailField(max_length=254, verbose_name='通知用メールアドレス')), ('full_name', models.CharField(blank=True, max_length=150, null=True, verbose_name='名前')), ('bb_api_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='bitbank API KEY')), ('bb_api_secret_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='bitbank API SECRET KEY')), ('cc_api_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='coincheck API KEY')), ('cc_api_secret_key', models.CharField(blank=True, max_length=255, null=True, verbose_name='coincheck API SECRET KEY')), ('notify_if_filled', models.BooleanField(default=True, verbose_name='約定通知')), ('use_alert', models.BooleanField(default=True, verbose_name='アラートメール通知')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='管理者')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='利用開始')), ('remaining_days', models.IntegerField(blank=True, default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='残日数')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': '利用者', 'verbose_name_plural': '1.利用者', }, managers=[ ('objects', core.models.UserManager()), ], ), migrations.CreateModel( name='Alert', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('market', models.CharField(default='bitbank', max_length=50, verbose_name='取引所')), ('symbol', models.CharField(default='btc_jpy', max_length=50, verbose_name='通貨')), ('rate', models.FloatField(validators=[django.core.validators.MinValueValidator(0)], verbose_name='通知レート')), ('over_or_under', models.CharField(max_length=50, verbose_name='上下')), ('alerted_at', models.DateTimeField(null=True, verbose_name='通知日時')), ('comment', models.CharField(blank=True, default='', max_length=255, verbose_name='コメント')), ('is_active', models.BooleanField(null=True, verbose_name='有効')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '通知設定', 'verbose_name_plural': '4.通知設定', }, ), migrations.CreateModel( name='BankInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bank', models.CharField(default='xxx銀行', max_length=20, verbose_name='金融機関名')), ('branch', models.CharField(default='xxx支店', max_length=20, verbose_name='支店名')), ('meigi', models.CharField(default='xxxxx', max_length=50, verbose_name='口座名義人')), ('type', models.CharField(choices=[('普通', '普通'), ('当座', '当座')], default='普通', max_length=20, verbose_name='口座種別')), ('number', models.CharField(default='00000', max_length=20, verbose_name='口座番号')), ], options={ 'verbose_name': '口座情報', 'verbose_name_plural': '6.口座情報', }, ), migrations.CreateModel( name='Inquiry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject', models.CharField(max_length=255, verbose_name='件名')), ('body', models.CharField(max_length=255, verbose_name='内容')), ('email_for_reply', models.EmailField(max_length=254, verbose_name='通知用メールアドレス')), ('attachment_1', models.FileField(blank=True, null=True, upload_to='attachments', verbose_name='ファイル1')), ('attachment_2', models.FileField(blank=True, null=True, upload_to='attachments', verbose_name='ファイル2')), ('attachment_3', models.FileField(blank=True, null=True, upload_to='attachments', verbose_name='ファイル3')), ('closed', models.BooleanField(default=False, verbose_name='解決済')), ('date_initiated', models.DateTimeField(auto_now_add=True, verbose_name='問い合せ日時')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '問い合せ', 'verbose_name_plural': '5.問い合せ', }, ), migrations.CreateModel( name='Order', fields=[ ('auto_id', models.AutoField(primary_key=True, serialize=False)), ('market', models.CharField(max_length=50, verbose_name='取引所')), ('symbol', models.CharField(max_length=50, verbose_name='通貨')), ('side', models.CharField(max_length=50, verbose_name='売/買')), ('type', models.CharField(max_length=50, verbose_name='注文方法')), ('price', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='注文価格')), ('stop_price', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='ストップ価格')), ('trail_width', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='トレール幅')), ('trail_price', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='トレール金額')), ('amount', models.FloatField(null=True, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='注文数量')), ('remaining', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='未約定数量')), ('filled', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='約定済数量')), ('average', models.FloatField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0.0)], verbose_name='約定平均価格')), ('status', models.CharField(max_length=50, null=True, verbose_name='ステータス')), ('error_message', models.CharField(blank=True, default=None, max_length=50, null=True, verbose_name='エラー内容')), ('id', models.CharField(blank=True, max_length=50, null=True, verbose_name='取引ID')), ('timestamp', unixtimestampfield.fields.UnixTimeStampField(blank=True, null=True, verbose_name='注文時刻unixtime')), ('updated_at', unixtimestampfield.fields.UnixTimeStampField(auto_now=True, verbose_name='更新日時unixtimestamp')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='利用者')), ], options={ 'verbose_name': '取引履歴', 'verbose_name_plural': '3.取引履歴', }, ), migrations.CreateModel( name='Relation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('market', models.CharField(default='bitbank', max_length=50, verbose_name='取引所')), ('symbol', models.CharField(max_length=50, verbose_name='通貨')), ('special_order', models.CharField(max_length=50, verbose_name='特殊注文')), ('placed_at', models.DateTimeField(auto_now_add=True, verbose_name='注文日時')), ('is_locked', models.BooleanField(default=False, verbose_name='ロック中')), ('is_active', models.BooleanField(default=True, verbose_name='有効')), ('order_1', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='new_order', to='core.Order', verbose_name='新規注文')), ('order_2', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='settle_order_1', to='core.Order', verbose_name='決済注文1')), ('order_3', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='settle_order_2', to='core.Order', verbose_name='決済注文2')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '発注一覧', 'verbose_name_plural': '2.発注一覧', }, ), ]