class Migration(migrations.Migration): dependencies = [ ('core', '0038_auto_20201006_1112'), ] operations = [ migrations.AddField( model_name='country', name='country_image', field=models.FileField( null=True, upload_to=core.models.get_country_image_path), ), migrations.AddField( model_name='hotel', name='hotel_image2', field=models.FileField(null=True, upload_to=core.models.get_hotel_image_path), ), migrations.AlterField( model_name='hotel', name='description', field=models.TextField(blank=True, max_length=2000, null=True), ), migrations.AlterField( model_name='trip', name='catering_option', field=models.CharField(choices=[('Bed & Breakfast', 'BB'), ('Half board', 'HB'), ('Full board', 'FB'), ('All inclusive', 'Al'), ('Overnight', 'OV'), ('Self catering', 'SC'), ('Program package', 'PP'), ('ZPR', 'ZPR')], max_length=20), ), migrations.AlterField( model_name='trip', name='price_for_adult', field=models.DecimalField(decimal_places=0, max_digits=6), ), migrations.AlterField( model_name='trip', name='price_for_child', field=models.DecimalField(decimal_places=0, max_digits=6), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(max_length=100, verbose_name='Identificador')), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('preco', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='Preço')), ('disponivelEstoque', models.BooleanField(default=False, verbose_name='Disponível no estoque')), ('quantidadeEstoque', models.IntegerField(verbose_name='Quantidade no estoque')), ('afiliadoComissao', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Comissão do afiliado')), ('desconto', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Desconto')), ('emPromocao', models.BooleanField(default=False, verbose_name='Em promoção')), ('tipo', models.CharField(choices=[(core.models.ProductType('Digital'), 'Digital'), (core.models.ProductType('Físico'), 'Físico')], max_length=5, verbose_name='Tipo')), ('tamanho', models.DecimalField(decimal_places=2, max_digits=15, verbose_name='Tamanho [MB]')), ('formato', models.CharField(choices=[(core.models.ProductFileFormat('PDF'), 'PDF'), (core.models.ProductFileFormat('MP4'), 'MP4')], max_length=5, verbose_name='Formato')), ('dataCriacao', models.DateTimeField(auto_now_add=True, verbose_name='Criado em')), ('dataModificacao', models.DateTimeField(auto_now=True, verbose_name='Última modificação')), ('produtorId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='meusProdutos', to='accounts.User', verbose_name='Produtor Principal')), ('segundoProdutorId', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='produtosAfiliacao', to='accounts.User', verbose_name='Segundo Produtor')), ], options={ 'verbose_name': 'Produto', 'verbose_name_plural': 'Produtos', 'ordering': ['nome'], }, ), migrations.CreateModel( name='ProductAffiliated', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('affiliatedId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.User', verbose_name='Id do Afiliado')), ('productId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Product', verbose_name='Id do Produto')), ], options={ 'verbose_name': 'Afiliado a um produto', 'verbose_name_plural': 'Afiliados a um produto', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='MenuItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='name')), ('price', models.DecimalField( decimal_places=2, max_digits=6, validators=[django.core.validators.MinValueValidator(0)], verbose_name='price')), ('nutrition_value', models.IntegerField( validators=[django.core.validators.MinValueValidator(0)], verbose_name='nutrition value')), ('picture', models.ImageField( upload_to=core.models.image_file_name_generator, verbose_name='picture')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0004_movrotativo'), ] operations = [ migrations.CreateModel( name='Mensalista', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('inicio', models.DateField()), ('valor_mes', models.DecimalField(decimal_places=2, max_digits=6)), ('veiculo', models.ForeignKey(on_delete=models.SET( core.models.get_sentinel_user), to='core.veiculo')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('description', models.TextField(blank=True, max_length=120, null=True)), ('price', models.DecimalField(decimal_places=2, max_digits=4)), ('image', models.ImageField(upload_to=core.models.upload_image_path)), ('size', models.IntegerField(default=32)), ], ), ]
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')), ('first_name', models.CharField(max_length=30, verbose_name='Nome')), ('last_name', models.CharField(max_length=30, verbose_name='Sobrenome')), ('slug', models.SlugField(max_length=30, verbose_name='Nome Fantasia')), ('age', models.PositiveIntegerField(verbose_name='Idade')), ('description', models.TextField(max_length=250, verbose_name='Descrição')), ('profile_picture', models.ImageField(upload_to=core.models.upload_image_path, verbose_name='Foto do Perfil')), ('cacheForHours', models.DecimalField(decimal_places=2, max_digits=6, verbose_name='Cachê/Hr')), ('weight', models.FloatField(verbose_name='Peso(kg)')), ('height', models.FloatField(verbose_name='Altura(m)')), ('bust', models.FloatField(verbose_name='Busto(cm)')), ('waist', models.FloatField(verbose_name='Cintura(cm)')), ('butt', models.FloatField(verbose_name='Bunda(cm)')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Criado em ')), ('modified', models.DateTimeField(auto_now=True, verbose_name='Modificado em ')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0003_parametros'), ] operations = [ migrations.CreateModel( name='MovRotativo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('checkin', models.DateTimeField()), ('checkout', models.DateTimeField(blank=True, null=True)), ('valor_hora', models.DecimalField(decimal_places=2, max_digits=5)), ('pago', models.BooleanField(default=False)), ('veiculo', models.ForeignKey(on_delete=models.SET( core.models.get_sentinel_user), to='core.veiculo')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0005_user_is_buyer'), ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('description', models.TextField(max_length=1000)), ('category', models.CharField(max_length=255)), ('price', models.DecimalField(decimal_places=2, max_digits=10)), ('in_stock', models.BooleanField(default=True)), ('image', models.ImageField(blank=True, null=True, upload_to=core.models.item_image_file_path)), ('uploaded_date', models.DateField(auto_now_add=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('stars', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(5)])), ('review', models.TextField(max_length=1000)), ('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)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0002_ingredient_tag'), ] operations = [ 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='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', models.EmailField(max_length=255, unique=True)), ('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 = [ ('accounts', '0001_initial'), ] operations = [ migrations.CreateModel( name='Artist', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('slug', models.SlugField(unique=True)), ('thumbnail', models.ImageField(default='artists/default.png', upload_to='artists')), ('bio', models.TextField(null=True, verbose_name='Artist Bio')), ], ), migrations.CreateModel( name='Genre', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('thumbnail', models.ImageField(default='genres/default.png', upload_to='genres')), ], ), migrations.CreateModel( name='Song', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('audio_id', models.CharField(max_length=50, unique=True)), ('title', models.CharField(max_length=200, verbose_name='Song name')), ('description', models.TextField()), ('thumbnail', models.ImageField(upload_to='thumbnails')), ('song', models.FileField(max_length=500, upload_to=core.models.song_directory_path)), ('size', models.IntegerField(default=0)), ('playtime', models.CharField(default='0.00', max_length=10)), ('type', models.CharField(max_length=10)), ('price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)), ('featured', models.BooleanField(default=False)), ('created_at', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Created At')), ('artists', models.ManyToManyField(related_name='songs', to='core.Artist')), ('genre', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='core.genre')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.user')), ], ), migrations.CreateModel( name='Favorite', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('song', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.song')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.user')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20190528_0447'), ] operations = [ migrations.CreateModel( name='Cart', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip_address', models.GenericIPAddressField(blank=True, null=True)), ('is_ordered', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Items', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveSmallIntegerField( choices=[(1, '1'), (2, '2'), (3, '3')], validators=[core.models.validate_quantity])), ('unit_price', models.DecimalField(decimal_places=2, max_digits=18, verbose_name='unit price')), ('cart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Cart')), ('product', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.Product')), ('product_img', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.ProductImage')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0012_auto_20170501_1600'), ] operations = [ migrations.AddField( model_name='map', name='opacity', field=models.DecimalField(decimal_places=2, default=0.7, help_text='The opacity for regions.', max_digits=5), ), migrations.AlterField( model_name='map', name='description', field=models.TextField(blank=True, help_text='Map description.', null=True), ), migrations.AlterField( model_name='map', name='end_color', field=core.models.ColorField(default='ffeda0', help_text='The color to fill regions with the lowest value.', max_length=6), ), migrations.AlterField( model_name='map', name='grades', field=models.PositiveSmallIntegerField(default=8, help_text='How many grades you would like to have'), ), migrations.AlterField( model_name='map', name='slug', field=models.SlugField(editable=False, help_text='The slug that will be user for urls.'), ), migrations.AlterField( model_name='map', name='start_color', field=core.models.ColorField(default='bd0026', help_text='The color to fill regions with the highest value.', max_length=6), ), migrations.AlterField( model_name='map', name='title', field=models.CharField(help_text='Map title.', max_length=256), ), migrations.AlterField( model_name='map', name='unit', field=models.CharField(help_text='The unit that will be used for the map.', max_length=64), ), migrations.AlterField( model_name='map', name='user', field=models.ForeignKey(help_text='Map owner.', on_delete=django.db.models.deletion.CASCADE, related_name='maps', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ('properties', '0001_initial'), ] operations = [ migrations.CreateModel( name='Contract', fields=[ ('id', models.CharField( default=core.models.get_hash_id, editable=False, max_length=16, primary_key=True, serialize=False, validators=[core.validators.validate_hash_id])), ('created', models.DateTimeField( auto_now_add=True, help_text='contract creation date and time')), ('start_date', models.DateField(help_text='starting date for the contract')), ('end_date', models.DateField(help_text='ending date for the contract')), ('rent', models.DecimalField( decimal_places=2, help_text= 'monthly value in pounds that should be payed by tenant', max_digits=10)), ('property', models.ForeignKey( help_text='property associated with the contract', on_delete=django.db.models.deletion.CASCADE, to='properties.Property')), ('tenant', models.ForeignKey( help_text='tenant associated with the contract', on_delete=django.db.models.deletion.CASCADE, to='accounts.Tenant')), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Listing', fields=[ ('listing_id', models.AutoField(primary_key=True, serialize=False)), ('amount', models.IntegerField()), ('price', models.DecimalField(decimal_places=2, max_digits=9)), ('photo', models. ImageField(storage=django.core.files.storage.FileSystemStorage( base_url='/media/listing/', location= '/Users/yananw/Desktop/MarketPlace/server/marketplace/media/listing/' ), upload_to=core.models.image_directory_path)), ('name', models.CharField(max_length=100)), ('categories', django_mysql.models.ListCharField( models.CharField(max_length=20), max_length=126, size=6)), ('description', models.TextField()), ('listed_on', models.DateTimeField(auto_now_add=True)), ('seller_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Order', fields=[ ('order_id', models.AutoField(primary_key=True, serialize=False)), ('date', models.DateTimeField(auto_now_add=True)), ('buyer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('listing', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Listing')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Chassi', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('numero', models.CharField(help_text='Máximo 16 caracteres', max_length=16, verbose_name='Chassi')), ], options={ 'verbose_name': 'Chassi', 'verbose_name_plural': 'Chassis', }, ), migrations.CreateModel( name='Montadora', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=50, verbose_name='Nome')), ], options={ 'verbose_name': 'Montadora', 'verbose_name_plural': 'Montadoras', }, ), migrations.CreateModel( name='Carro', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('modelo', models.CharField(help_text='Máximo 30 caracteres', max_length=30, verbose_name='Modelo')), ('preco', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='Preço')), ('chassi', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='core.Chassi')), ('montadora', models.ForeignKey(on_delete=models.SET(core.models.set_default_montadora), to='core.Montadora')), ], options={ 'verbose_name': 'Carro', 'verbose_name_plural': 'Carros', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0009_auto_20161207_0943'), ] operations = [ migrations.AlterField( model_name='transaction', name='invoice_date', field=models.DateField(default=datetime.datetime(2016, 12, 7, 10, 21, 1, 427811), verbose_name='Invoice date'), ), migrations.AlterField( model_name='transaction', name='vat_ammount', field=models.DecimalField(decimal_places=2, default='core.models.calculate_ammount', max_digits=8), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Pessoa', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('criacao', models.DateTimeField(auto_now_add=True, verbose_name='Criação')), ('alteracao', models.DateTimeField(auto_now=True, verbose_name='Alteração')), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('idade', models.IntegerField(verbose_name='Idade')), ('peso', models.DecimalField(decimal_places=2, max_digits=4, verbose_name='Peso')), ('genero', models.CharField(choices=[('m', 'Masculino'), ('f', 'Feminino'), ('o', 'Outro')], max_length=9, verbose_name='Gênero')), ('foto', models.ImageField(upload_to=core.models.get_auto_path, verbose_name='Foto')), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0014_auto_20180221_1918'), ] operations = [ migrations.CreateModel( name='CouponCode', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_name', models.CharField(max_length=100)), ('code', models.CharField( max_length=20, unique=True, validators=[ django.core.validators.RegexValidator( message= 'Code can only contain capitol letters and numbers with no spaces. Must be between 4 and 20 characters.', regex='^[A-Z0-9]{4,20}$') ])), ('value', models.DecimalField(decimal_places=2, default=25.0, max_digits=5)), ('redeem_by', models.DateField(default=core.models.one_year_from_now)), ('duration', models.CharField( choices=[('once', 'once'), ('forever', 'forever')], help_text= 'This describes if the coupon should be applied once, orevery time the subscription is renewed', max_length=100)), ('is_percentage', models.BooleanField(default=False)), ], ) ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Cliente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('criados', models.DateField(auto_now_add=True, verbose_name='Criação')), ('modificado', models.DateField(auto_now=True, verbose_name='Atualização')), ('ativo', models.BooleanField(default=True, verbose_name='Ativo?')), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('age', models.IntegerField(verbose_name='Idade')), ('endereco', models.CharField(max_length=200, verbose_name='Endereço')), ('salario', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='Salário')), ('bio', models.TextField(max_length=200, verbose_name='Bio')), ('imagem', stdimage.models.StdImageField( upload_to=core.models.get_file_path, verbose_name='Foto')), ], options={ 'verbose_name': 'Cliente', 'verbose_name_plural': 'Clientes', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0016_auto_20200906_1405'), ] operations = [ migrations.CreateModel( name='BoxOffice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.DecimalField(decimal_places=2, max_digits=20)), ('country', models.ForeignKey(default=core.models.Country, on_delete=django.db.models.deletion.CASCADE, to='core.country')), ], ), migrations.AddField( model_name='movie', name='boxoffices', field=models.ManyToManyField(related_name='movies', to='core.BoxOffice'), ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0011_auto_20191206_2153'), ] operations = [ migrations.AddField( model_name='bovid', name='image', field=models.ImageField( null=True, upload_to=core.models.bovid_image_file_path), ), migrations.AlterField( model_name='bovid', name='price', field=models.DecimalField(decimal_places=2, default=0.0, max_digits=6), ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0004_influencer'), ] operations = [ migrations.AddField( model_name='influencer', name='profile_image', field=models.ImageField( null=True, upload_to=core.models.influencer_image_file_path), ), migrations.AlterField( model_name='influencer', name='score', field=models.DecimalField(decimal_places=2, default=0, max_digits=5), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('core', '0009_mutationlog_client_mutation_details'), ] operations = [ migrations.CreateModel( name='Payment', fields=[ ('validity_from', core.fields.DateTimeField(db_column='ValidityFrom', default=datetime.datetime.now)), ('validity_to', core.fields.DateTimeField(blank=True, db_column='ValidityTo', null=True)), ('legacy_id', models.IntegerField(blank=True, db_column='LegacyID', null=True)), ('id', models.BigAutoField(db_column='PaymentID', primary_key=True, serialize=False)), ('uuid', models.CharField(db_column='PaymentUUID', default=uuid.uuid4, max_length=36, unique=True)), ('expected_amount', models.DecimalField(blank=True, db_column='ExpectedAmount', decimal_places=2, max_digits=18, null=True)), ('received_amount', models.DecimalField(blank=True, db_column='ReceivedAmount', decimal_places=2, max_digits=18, null=True)), ('officer_code', models.CharField(blank=True, db_column='OfficerCode', max_length=50, null=True)), ('phone_number', models.CharField(blank=True, db_column='PhoneNumber', max_length=12, null=True)), ('request_date', core.fields.DateField(blank=True, db_column='RequestDate', null=True)), ('received_date', core.fields.DateField(blank=True, db_column='ReceivedDate', null=True)), ('status', models.IntegerField(blank=True, choices=[(-3, 'STATUS_REJECTEDPOSTED_3'), (-2, 'STATUS_REJECTEDPOSTED_2'), (-1, 'STATUS_REJECTEDPOSTED_1'), (1, 'STATUS_NOTYETCONFIRMED'), (2, 'STATUS_POSTED'), (3, 'STATUS_ASSIGNED'), (4, 'STATUS_UNMATCHED'), (5, 'STATUS_PAYMENTMATCHED')], db_column='PaymentStatus', null=True)), ('transaction_no', models.CharField(blank=True, db_column='TransactionNo', max_length=50, null=True)), ('origin', models.CharField(blank=True, db_column='PaymentOrigin', max_length=50, null=True)), ('matched_date', core.fields.DateField(blank=True, db_column='MatchedDate', null=True)), ('receipt_no', models.CharField(blank=True, db_column='ReceiptNo', max_length=100, null=True)), ('payment_date', core.fields.DateField(blank=True, db_column='PaymentDate', null=True)), ('rejected_reason', models.CharField(blank=True, db_column='RejectedReason', max_length=255, null=True)), ('date_last_sms', core.fields.DateField(blank=True, db_column='DateLastSMS', null=True)), ('language_name', models.CharField(blank=True, db_column='LanguageName', max_length=10, null=True)), ('type_of_payment', models.CharField(blank=True, choices=[('B', 'Bank transfer'), ('C', 'Cash'), ('M', 'Mobile phone'), ('F', 'Funding')], db_column='TypeOfPayment', max_length=50, null=True)), ('transfer_fee', models.DecimalField(blank=True, db_column='TransferFee', decimal_places=2, max_digits=18, null=True)), ], options={ 'db_table': 'tblPayment', 'managed': False, }, ), migrations.CreateModel( name='PaymentDetail', fields=[ ('validity_from', core.fields.DateTimeField(db_column='ValidityFrom', default=datetime.datetime.now)), ('validity_to', core.fields.DateTimeField(blank=True, db_column='ValidityTo', null=True)), ('legacy_id', models.IntegerField(blank=True, db_column='LegacyID', null=True)), ('id', models.BigAutoField(db_column='PaymentDetailsID', primary_key=True, serialize=False)), ('product_code', models.CharField(blank=True, db_column='ProductCode', max_length=8, null=True)), ('insurance_number', models.CharField(blank=True, db_column='InsuranceNumber', max_length=12, null=True)), ('policy_stage', models.CharField(blank=True, db_column='PolicyStage', max_length=1, null=True)), ('amount', models.DecimalField(blank=True, db_column='Amount', decimal_places=2, max_digits=18, null=True)), ('enrollment_date', core.fields.DateField(blank=True, db_column='enrollmentDate', null=True)), ('expected_amount', models.DecimalField(blank=True, db_column='ExpectedAmount', decimal_places=2, max_digits=18, null=True)), ('audit_user_id', models.IntegerField(blank=True, db_column='AuditedUserId', null=True)), ], options={ 'db_table': 'tblPaymentDetails', 'managed': False, }, ), migrations.CreateModel( name='PaymentMutation', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('mutation', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='payments', to='core.MutationLog')), ('payment', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='mutations', to='payment.Payment')), ], options={ 'db_table': 'payment_PaymentMutation', 'managed': True, }, bases=(models.Model, core.models.ObjectMutation), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Scan', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('started_at', models.DateTimeField(blank=True, null=True)), ('finished_at', models.DateTimeField(blank=True, null=True)), ('name', models.CharField(max_length=255)), ('status', models.CharField(choices=[ (core.models.Status['COMPLETED'], 'completed'), (core.models.Status['FAILED'], 'failed') ], max_length=50)), ('scanners', django.contrib.postgres.fields.ArrayField( base_field=models.CharField(blank=True, max_length=50, null=True), size=None)), ('severity_counts', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)), ], ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=255)), ('email', models.EmailField(max_length=254)), ('first_name', models.CharField(max_length=255)), ('last_name', models.CharField(max_length=255)), ], ), migrations.CreateModel( name='Vulnerability', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('severity', models.CharField(choices=[ (core.models.Severity['INFORMATION'], 'information'), (core.models.Severity['MEDIUM'], 'medium'), (core.models.Severity['HIGH'], 'high'), (core.models.Severity['LOW'], 'low') ], max_length=50)), ('name', models.CharField(max_length=255)), ('description', models.TextField()), ('solution', models.TextField()), ('references', django.contrib.postgres.fields.ArrayField( base_field=models.URLField(blank=True, null=True), size=None)), ('cvss_base_score', models.DecimalField(decimal_places=1, max_digits=2)), ('scans', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='vulnerabilities', to='core.scan')), ], ), migrations.AddField( model_name='scan', name='requested_by', field=models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='user', to='core.user'), ), migrations.CreateModel( name='Asset', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('description', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), ('scan', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='assets_scanned', to='core.scan')), ('vulnerability', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='affected_assets', to='core.vulnerability')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Author', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('birthday', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Book', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, verbose_name='Book name')), ('author_email', models.EmailField(blank=True, max_length=75, verbose_name='Author email')), ('imported', models.BooleanField(default=False)), ('published', models.DateField(blank=True, null=True, verbose_name='Published')), ('published_time', models.TimeField(blank=True, null=True, verbose_name='Time published')), ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='core.Author')), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Census', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('state_code', models.IntegerField(blank=True, null=True)), ('state', models.CharField(blank=True, max_length=30, null=True)), ('dist_code', models.IntegerField(blank=True, null=True)), ('dist_name', models.CharField(blank=True, max_length=30, null=True)), ('sub_dist_name', models.IntegerField(blank=True, null=True)), ('sub_dist_code', models.CharField(blank=True, max_length=30, null=True)), ('vil_code', models.IntegerField(blank=True, null=True)), ('vil_name', models.CharField(blank=True, max_length=30, null=True)), ('cdb_code', models.IntegerField(blank=True, null=True)), ('cdb_name', models.CharField(blank=True, max_length=30, null=True)), ('gram_pan_code', models.IntegerField(blank=True, null=True)), ('gram_pan_name', models.CharField(blank=True, max_length=30, null=True)), ('ref_year', models.IntegerField(blank=True, null=True)), ('sub_dist_hquarter_name', models.CharField(blank=True, max_length=30, null=True)), ('sub_dist_hquarter_distance', models.IntegerField(blank=True, null=True)), ('dist_hquarter_name', models.CharField(blank=True, max_length=30, null=True)), ('dist_hquarter_dist', models.IntegerField(blank=True, null=True)), ('nearest_stat_town_name', models.CharField(blank=True, max_length=30, null=True)), ('nearest_stat_town_dist', models.IntegerField(blank=True, null=True)), ('within_state_ut_name', models.CharField(blank=True, max_length=30, null=True)), ('within_state_ut_dist', models.IntegerField(blank=True, null=True)), ('outside_state_ut_name', models.CharField(blank=True, max_length=30, null=True)), ('outside_state_ut_dist', models.CharField(blank=True, max_length=30, null=True)), ('tot_geograph_area', models.IntegerField(blank=True, null=True)), ('tot_households', models.IntegerField(blank=True, null=True)), ('tot_population', models.IntegerField(blank=True, null=True)), ('tot_male_population', models.IntegerField(blank=True, null=True)), ('tot_female_population', models.IntegerField(blank=True, null=True)), ('tot_sc_population', models.IntegerField(blank=True, null=True)), ('tot_scm_population', models.IntegerField(blank=True, null=True)), ('tot_scf_population', models.IntegerField(blank=True, null=True)), ('tot_st_population', models.IntegerField(blank=True, null=True)), ('tot_stm_population', models.IntegerField(blank=True, null=True)), ('tot_stf_population', models.IntegerField(blank=True, null=True)), ('gov_preprim_sch_status', models.IntegerField(blank=True, null=True)), ('gov_preprim_sch_nos', models.IntegerField(blank=True, null=True)), ('pvt_preprim_sch_status', models.IntegerField(blank=True, null=True)), ('pvt_preprim_sch_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_preprim', models.IntegerField(blank=True, null=True)), ('nfaci_village_town_preprim', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_preprim', models.CharField(blank=True, max_length=2, null=True)), ('gov_prim_sch_status', models.IntegerField(blank=True, null=True)), ('gov_prim_sch_nos', models.IntegerField(blank=True, null=True)), ('pvt_prim_sch_status', models.IntegerField(blank=True, null=True)), ('pvt_prim_sch_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_prim', models.IntegerField(blank=True, null=True)), ('nfaci_village_town_prim', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_prim', models.CharField(blank=True, max_length=2, null=True)), ('gov_mid_sch_status', models.NullBooleanField()), ('gov_mid_sch_nos', models.IntegerField(blank=True, null=True)), ('pvt_mid_sch_status', models.NullBooleanField()), ('pvt_mid_sch_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_mid', models.NullBooleanField()), ('nfaci_village_town_mid', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_mid', models.CharField(blank=True, max_length=2, null=True)), ('gov_sec_sch_status', models.NullBooleanField()), ('gov_sec_sch_nos', models.IntegerField(blank=True, null=True)), ('pvt_sec_sch_status', models.NullBooleanField()), ('pvt_sec_sch_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_sec', models.NullBooleanField()), ('nfaci_village_town_sec', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_sec', models.CharField(blank=True, max_length=2, null=True)), ('gov_sen_sec_sch_status', models.NullBooleanField()), ('gov_sen_sec_sch_nos', models.IntegerField(blank=True, null=True)), ('pvt_sen_sec_sch_status', models.NullBooleanField()), ('pvt_sen_sec_sch_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_sen_sec', models.NullBooleanField()), ('nfaci_village_town_sen_sec', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_sen_sec', models.CharField(blank=True, max_length=2, null=True)), ('gov_deg_col_status', models.NullBooleanField()), ('gov_deg_col_nos', models.IntegerField(blank=True, null=True)), ('pvt_deg_col_status', models.NullBooleanField()), ('pvt_deg_col_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_deg_col', models.NullBooleanField()), ('nfaci_village_town_deg_col', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_deg_col', models.CharField(blank=True, max_length=2, null=True)), ('gov_eng_col_status', models.NullBooleanField()), ('gov_eng_col_nos', models.IntegerField(blank=True, null=True)), ('pvt_eng_col_status', models.NullBooleanField()), ('pvt_eng_col_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_eng_col', models.NullBooleanField()), ('nfaci_village_town_eng_col', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_eng_col', models.CharField(blank=True, max_length=2, null=True)), ('gov_med_col_status', models.NullBooleanField()), ('gov_med_col_nos', models.IntegerField(blank=True, null=True)), ('pvt_med_col_status', models.NullBooleanField()), ('pvt_med_col_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_med_col', models.NullBooleanField()), ('nfaci_village_town_med_col', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_med_col', models.CharField(blank=True, max_length=2, null=True)), ('gov_mgmt_inst_status', models.NullBooleanField()), ('gov_mgmt_inst_nos', models.IntegerField(blank=True, null=True)), ('pvt_mgmt_inst_status', models.NullBooleanField()), ('pvt_mgmt_inst_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_mgmt_inst', models.NullBooleanField()), ('nfaci_village_town_mgmt_inst', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_mgmt_inst', models.CharField(blank=True, max_length=2, null=True)), ('gov_polytech_status', models.NullBooleanField()), ('gov_polytech_nos', models.IntegerField(blank=True, null=True)), ('pvt_polytech_status', models.NullBooleanField()), ('pvt_polytech_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_polytech', models.NullBooleanField()), ('nfaci_village_town_polytech', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_polytech', models.CharField(blank=True, max_length=2, null=True)), ('gov_voc_training_status', models.NullBooleanField()), ('gov_voc_training_nos', models.IntegerField(blank=True, null=True)), ('pvt_voc_training_status', models.CharField(blank=True, max_length=30, null=True)), ('pvt_voc_training_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_voc_training', models.NullBooleanField()), ('nfaci_village_town_voc_training', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_voc_training', models.CharField(blank=True, max_length=2, null=True)), ('gov_nonformal_training_status', models.NullBooleanField()), ('gov_nonformal_training_nos', models.IntegerField(blank=True, null=True)), ('pvt_nonformal_training_status', models.NullBooleanField()), ('pvt_nonformal_training_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_nonformal_training', models.NullBooleanField()), ('nfaci_village_town_nonformal_training', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_nonformal_training', models.CharField(blank=True, max_length=2, null=True)), ('gov_sch_for_dasabled_status', models.NullBooleanField()), ('gov_sch_for_dasabled_nos', models.IntegerField(blank=True, null=True)), ('pvt_sch_for_dasabled_status', models.NullBooleanField()), ('pvt_sch_for_dasabled_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_sch_for_dasabled', models.NullBooleanField()), ('nfaci_village_town_sch_for_dasabled', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_sch_for_dasabled', models.CharField(blank=True, max_length=2, null=True)), ('gov_others_status', models.NullBooleanField()), ('gov_others_nos', models.IntegerField(blank=True, null=True)), ('pri_others_status', models.NullBooleanField()), ('pri_others_nos', models.IntegerField(blank=True, null=True)), ('nfaci_status_others', models.NullBooleanField()), ('nfaci_village_town_others', models.CharField(blank=True, max_length=30, null=True)), ('ina_distcode_others', models.CharField(blank=True, max_length=2, null=True)), ], options={ 'db_table': 'census', }, ), migrations.CreateModel( name='CensusRest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vil_code', models.IntegerField(blank=True, null=True)), ('com_health_centre_nos', models.IntegerField(blank=True, null=True)), ('com_health_centre_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('com_health_centre_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('com_health_centre_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('com_health_centre_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_com_health_centre', models.CharField(blank=True, max_length=2, null=True)), ('prim_health_centre_nos', models.IntegerField(blank=True, null=True)), ('prim_health_centre_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('prim_health_centre_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('prim_health_centre_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('prim_health_centre_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_prim_health_centre', models.CharField(blank=True, max_length=2, null=True)), ('prim_health_subcent_nos', models.IntegerField(blank=True, null=True)), ('prim_health_subcent_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('prim_health_subcent_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('prim_health_subcent_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('prim_health_subcent_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_prim_health_subcent', models.CharField(blank=True, max_length=2, null=True)), ('mat_child_wel_centre_nos', models.IntegerField(blank=True, null=True)), ('mat_child_wel_centre_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('mat_child_wel_centre_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('mat_child_wel_centre_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('mat_child_wel_centre_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_mat_child_wel_centre', models.CharField(blank=True, max_length=2, null=True)), ('tb_clinic_nos', models.IntegerField(blank=True, null=True)), ('tb_clinic_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('tb_clinic_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('tb_clinic_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('tb_clinic_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_tb_clinic', models.CharField(blank=True, max_length=2, null=True)), ('hosp_allopath_nos', models.IntegerField(blank=True, null=True)), ('hosp_allopath_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('hosp_allopath_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('hosp_allopath_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('hosp_allopath_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_hosp_allopath', models.CharField(blank=True, max_length=2, null=True)), ('hosp_alt_medicine_nos', models.IntegerField(blank=True, null=True)), ('hosp_alt_medicine_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('hosp_alt_medicine_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('hosp_alt_medicine_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('hosp_alt_medicine_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_hosp_alt_medicine', models.CharField(blank=True, max_length=2, null=True)), ('dispensary_nos', models.IntegerField(blank=True, null=True)), ('dispensary_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('dispensary_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('dispensary_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('dispensary_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_dispensary', models.CharField(blank=True, max_length=2, null=True)), ('vet_hospital_nos', models.IntegerField(blank=True, null=True)), ('vet_hospital_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('vet_hospital_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('vet_hospital_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('vet_hospital_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_vet_hospital', models.CharField(blank=True, max_length=2, null=True)), ('mob_health_clinic_nos', models.IntegerField(blank=True, null=True)), ('mob_health_clinic_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('mob_health_clinic_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('mob_health_clinic_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('mob_health_clinic_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_mob_health_clinic', models.CharField(blank=True, max_length=2, null=True)), ('fam_welfare_centre_nos', models.IntegerField(blank=True, null=True)), ('fam_welfare_centre_doct_tot_nos', models.IntegerField(blank=True, null=True)), ('fam_welfare_centre_doct_inpos_nos', models.IntegerField(blank=True, null=True)), ('fam_welfare_centre_staff_tot_nos', models.IntegerField(blank=True, null=True)), ('fam_welfare_centre_staff_inpos_nos', models.IntegerField(blank=True, null=True)), ('ina_distcode_mob_fam_welfare_centre', models.CharField(blank=True, max_length=2, null=True)), ('ngvt_med_fac_out_pat_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_in_out_pat_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_charitable_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_med_practitioner_mbbs_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_med_practitioner_otherdeg_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_med_practitioner_nodeg_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_med_practitioner_faithhealer_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_medicine_shop_nos', models.IntegerField(blank=True, null=True)), ('ngvt_med_fac_others_nos', models.IntegerField(blank=True, null=True)), ('tap_water_treated_status', models.NullBooleanField()), ('tap_water_treated_fn_round_year', models.NullBooleanField()), ('tap_water_treated_fn_summer_months', models.NullBooleanField()), ('tap_water_untreated_status', models.NullBooleanField()), ('tap_water_untreated_fn_round_year', models.NullBooleanField()), ('tap_water_untreated_fn_summer_months', models.NullBooleanField()), ('cov_well_status', models.NullBooleanField()), ('cov_well_fn_round_year', models.NullBooleanField()), ('cov_well_fn_summer_months', models.NullBooleanField()), ('uncov_well_status', models.NullBooleanField()), ('uncov_well_fn_round_year', models.NullBooleanField()), ('uncov_well_fn_summer_months', models.NullBooleanField()), ('han_pump_status', models.NullBooleanField()), ('han_pump_fn_round_year', models.NullBooleanField()), ('han_pump_fn_summer_months', models.NullBooleanField()), ('tub_wells_borehole_status', models.NullBooleanField()), ('tub_wells_fn_round_year', models.NullBooleanField()), ('tub_wells_fn_summer_months', models.NullBooleanField()), ('spring_status', models.NullBooleanField()), ('spring_fn_round_year', models.NullBooleanField()), ('spring_fn_summer_months', models.NullBooleanField()), ('river_canal_status', models.NullBooleanField()), ('river_canal_fn_round_year', models.NullBooleanField()), ('river_canal_fn_summer_months', models.NullBooleanField()), ('tank_pond_lake_status', models.NullBooleanField()), ('tank_pond_lake_fn_round_year', models.NullBooleanField()), ('tank_pond_lake_fn_summer_months', models.NullBooleanField()), ('others_status', models.NullBooleanField()), ('others_fn_round_year', models.NullBooleanField()), ('others_fn_summer_months', models.NullBooleanField()), ('closed_drainage_status', models.NullBooleanField()), ('open_drainage_status', models.NullBooleanField()), ('no_drainage_status', models.NullBooleanField(db_column='no _drainage_status')), ('op_pucca_drainage_cov_w_tiles_slabs_status', models.NullBooleanField()), ('op_pucca_drainage_uncovered_status', models.NullBooleanField()), ('op_kuccha_drainage_status', models.NullBooleanField()), ('drainage_discharge_status', models.NullBooleanField()), ('area_covered_tot_sanitation_campaign_status', models.NullBooleanField()), ('com_toilet_complex_w_bath_gen_public', models.NullBooleanField()), ('com_toilet_complex_no_bath_gen_public', models.NullBooleanField()), ('rural_prod_cent_sanitary_hw_outlet_availability', models.NullBooleanField()), ('rural_prod_mart_sanitary_hw_outlet_availability', models.NullBooleanField()), ('com_waste_disposal_system', models.NullBooleanField()), ('com_biogas_recycle_of_waste', models.NullBooleanField()), ('no_system_garbage_onroads', models.NullBooleanField()), ('post_office_status', models.NullBooleanField()), ('ina_dist_post_office', models.CharField(blank=True, max_length=30, null=True)), ('sub_post_office_status', models.NullBooleanField()), ('ina_dist_sub_post_office', models.CharField(blank=True, max_length=2, null=True)), ('post_telegraph_office_status', models.NullBooleanField()), ('ina_dist_post_telegraph_office', models.CharField(blank=True, max_length=2, null=True)), ('vil_pin_code_status', models.NullBooleanField()), ('ina_dist_vil_pin_code', models.CharField(blank=True, max_length=2, null=True)), ('pin_code', models.IntegerField(blank=True, null=True)), ('tel_landlines_status', models.NullBooleanField()), ('ina_dist_tel_landlines', models.CharField(blank=True, max_length=2, null=True)), ('pco_status', models.NullBooleanField()), ('ina_dist_pco', models.CharField(blank=True, max_length=2, null=True)), ('mob_phone_coverage_status', models.NullBooleanField()), ('ina_dist_mob_phone_coverage', models.CharField(blank=True, max_length=2, null=True)), ('internet_cafe_status', models.NullBooleanField()), ('ina_dist_internet_cafe', models.CharField(blank=True, max_length=2, null=True)), ('pri_courier_facility_status', models.NullBooleanField()), ('ina_dist_pri_courier_facility', models.CharField(blank=True, max_length=2, null=True)), ('pub_bus_service_status', models.NullBooleanField()), ('ina_dist_pub_bus_service', models.CharField(blank=True, max_length=2, null=True)), ('pri_bus_service_status', models.NullBooleanField()), ('ina_dist_pri_bus_service', models.CharField(blank=True, max_length=2, null=True)), ('railway_station_status', models.NullBooleanField()), ('ina_dist_railway_station', models.CharField(blank=True, max_length=2, null=True)), ('auto_modified_autos_status', models.NullBooleanField()), ('ina_dist_auto_modified_autos', models.CharField(blank=True, max_length=2, null=True)), ('taxi_status', models.NullBooleanField()), ('ina_dist_taxi', models.CharField(blank=True, max_length=2, null=True)), ('van_status', models.NullBooleanField()), ('ina_dist_van', models.CharField(blank=True, max_length=2, null=True)), ('tractor_status', models.NullBooleanField()), ('ina_dist_tractor', models.CharField(blank=True, max_length=2, null=True)), ('cycle_pulled_rickshaws_manual_status', models.NullBooleanField()), ('ina_dist_cycle_pulled_rickshaws_manual', models.CharField(blank=True, max_length=2, null=True)), ('cycle_pulled_rickshaws_machine_status', models.NullBooleanField()), ('ina_dist_cycle_pulled_rickshaws_machine', models.CharField(blank=True, max_length=2, null=True)), ('carts_by_animals_status', models.NullBooleanField()), ('ina_dist_carts_by_animals', models.CharField(blank=True, max_length=2, null=True)), ('sea_river_ferry_service_status', models.NullBooleanField()), ('ina_dist_sea_river_ferry_service', models.CharField(blank=True, max_length=2, null=True)), ('nat_highway_status', models.NullBooleanField()), ('ina_dist_nat_highway', models.CharField(blank=True, max_length=2, null=True)), ('state_highway_status', models.NullBooleanField()), ('ina_dist_state_highway', models.CharField(blank=True, max_length=2, null=True)), ('major_district_road_status', models.NullBooleanField()), ('ina_dist_major_district_road', models.CharField(blank=True, max_length=2, null=True)), ('oth_district_road_status', models.NullBooleanField()), ('ina_dist_oth_district_road', models.CharField(blank=True, max_length=2, null=True)), ('black_topped_pucca_road_staus', models.NullBooleanField()), ('ina_dist_black_topped_pucca_road', models.CharField(blank=True, max_length=2, null=True)), ('gravel_kuchha_roads_status', models.NullBooleanField()), ('ina_dist_gravel_kuchha_roads', models.CharField(blank=True, max_length=2, null=True)), ('water_bounded_macadam_status', models.NullBooleanField()), ('ina_dist_wat_bounded_macadam', models.CharField(blank=True, max_length=2, null=True)), ('all_weather_road_status', models.NullBooleanField()), ('ina_dist_all_weather_road', models.CharField(blank=True, max_length=2, null=True)), ('navigable_waterways_river_canal_status', models.NullBooleanField()), ('ina_dist_navigable_waterways_river_canal', models.CharField(blank=True, max_length=2, null=True)), ('footpath_status', models.NullBooleanField()), ('ina_dist_footpath', models.CharField(blank=True, max_length=2, null=True)), ('atm_status', models.NullBooleanField()), ('ina_dist_atm', models.CharField(blank=True, max_length=2, null=True)), ('commercial_bank_status', models.NullBooleanField()), ('ina_dist_commercial_bank', models.CharField(blank=True, max_length=2, null=True)), ('cooperative_bank_status', models.NullBooleanField()), ('ina_dist_cooperative_bank', models.CharField(blank=True, max_length=2, null=True)), ('agri_credit_societies_status', models.NullBooleanField()), ('ina_dist_agri_credit_societies', models.CharField(blank=True, max_length=2, null=True)), ('selfhelp_group_status', models.NullBooleanField()), ('ina_dist_selfhelp_group', models.CharField(blank=True, max_length=2, null=True)), ('public_distribution_system_status', models.NullBooleanField()), ('ina_dist_public_distribution_system', models.CharField(blank=True, max_length=2, null=True)), ('mandis_regular_market_status', models.NullBooleanField()), ('ina_dist_mandis_regular_market', models.CharField(blank=True, max_length=2, null=True)), ('weekly_haat_status', models.NullBooleanField()), ('ina_dist_weekly_haat', models.CharField(blank=True, max_length=2, null=True)), ('agri_marketing_society_status', models.NullBooleanField()), ('ina_dist_agri_marketing_society', models.CharField(blank=True, max_length=2, null=True)), ('nutritional_centres_icds_status', models.NullBooleanField()), ('ina_dist_nutritional_centres_icds', models.CharField(blank=True, max_length=2, null=True)), ('nutritional_centres_anganwadi_status', models.NullBooleanField()), ('ina_dist_nutritional_centres_anganwadi', models.CharField(blank=True, max_length=2, null=True)), ('nutritional_centres_others_status', models.NullBooleanField()), ('ina_dist_nutritional_centres_others', models.CharField(blank=True, max_length=2, null=True)), ('asha_status', models.NullBooleanField()), ('ina_dist_asha', models.CharField(blank=True, max_length=2, null=True)), ('community_centre_with_tv', models.NullBooleanField()), ('ina_dist_community_centre_with_tv', models.CharField(blank=True, max_length=2, null=True)), ('sports_field_status', models.NullBooleanField()), ('ina_dist_sports_field', models.CharField(blank=True, max_length=2, null=True)), ('sports_club_status', models.NullBooleanField()), ('ina_dist_sports_club', models.CharField(blank=True, max_length=2, null=True)), ('cinema_video_hall_status', models.NullBooleanField()), ('ina_dist_cinema_video_hall', models.CharField(blank=True, max_length=2, null=True)), ('public_library_status', models.NullBooleanField()), ('ina_dist_public_library', models.CharField(blank=True, max_length=2, null=True)), ('pub_reading_room_status', models.NullBooleanField()), ('ina_dist_pub_reading_room', models.CharField(blank=True, max_length=2, null=True)), ('daily_newspaper_supply_status', models.NullBooleanField()), ('ina_dist_daily_newspaper_supply', models.CharField(blank=True, max_length=2, null=True)), ('assembly_polling_station_status', models.NullBooleanField()), ('ina_dist_assembly_polling_station', models.CharField(blank=True, max_length=2, null=True)), ('birth_death_registration_office', models.NullBooleanField()), ('ina_dist_birth_death_registration_office', models.CharField(blank=True, max_length=2, null=True)), ('power_supply_dom_use', models.NullBooleanField()), ('power_supply_dom_use_summer_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_dom_use_winter_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_agri_use', models.NullBooleanField()), ('power_supply_agri_use_summer_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_agri_use_winter_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_comm_use', models.NullBooleanField()), ('power_supply_comm_use_summer_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_comm_use_winter_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_for_all_users', models.NullBooleanField()), ('power_supply_for_all_users_summer_hrspd', models.IntegerField(blank=True, null=True)), ('power_supply_for_all_users_winter_hrspd', models.IntegerField(blank=True, null=True)), ('agri_commodities_first', models.CharField(blank=True, max_length=30, null=True)), ('manufacturers_commodities_first', models.CharField(blank=True, max_length=30, null=True)), ('handicrafts_commodities_first', models.CharField(blank=True, max_length=30, null=True)), ('agri_commodities_second', models.CharField(blank=True, max_length=30, null=True)), ('manufacturers_commodities_second', models.CharField(blank=True, max_length=30, null=True)), ('handicrafts_commodities_second', models.CharField(blank=True, max_length=30, null=True)), ('agri_commodities_third', models.CharField(blank=True, max_length=30, null=True)), ('manufacturers_commodities_third', models.CharField(blank=True, max_length=30, null=True)), ('handicrafts_commodities_third', models.CharField(blank=True, max_length=30, null=True)), ('forest_area', models.CharField(blank=True, max_length=30, null=True)), ('non_agri_use_area', models.CharField(blank=True, max_length=30, null=True)), ('barren_uncoltivable_area', models.CharField(blank=True, max_length=30, null=True)), ('permanent_pastures_other_grazing_area', models.CharField(blank=True, max_length=30, null=True)), ('land_misc_tree_crops_area', models.CharField(blank=True, max_length=30, null=True)), ('culturable_wasteland_area', models.CharField(blank=True, max_length=30, null=True)), ('fallows_land_otherthan_current_fallows_area', models.CharField(blank=True, max_length=30, null=True)), ('current_fallows_area', models.CharField(blank=True, max_length=30, null=True)), ('net_area_sown', models.CharField(blank=True, max_length=30, null=True)), ('tot_unirrigatedland_area', models.CharField(blank=True, max_length=30, null=True)), ('area_irrigated_by_source', models.CharField(blank=True, max_length=30, null=True)), ('canals_area', models.CharField(blank=True, max_length=30, null=True)), ('wells_tube_wells_area', models.CharField(blank=True, max_length=30, null=True)), ('tanks_lakes_area', models.CharField(blank=True, max_length=30, null=True)), ('waterfall_area', models.CharField(blank=True, max_length=30, null=True)), ('other_source_area', models.CharField(blank=True, max_length=30, null=True)), ('nearest_town_name', models.CharField(blank=True, max_length=30, null=True)), ('dist_nearest_town', models.IntegerField(blank=True, null=True)), ], options={ 'db_table': 'census_rest', }, ), migrations.CreateModel( name='Child', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Entry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Parent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_private', models.BooleanField(default=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='WithDefault', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, default='foo_bar', max_length=75, verbose_name='Default')), ], ), migrations.CreateModel( name='WithDynamicDefault', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default=core.models.random_name, max_length=100, verbose_name='Dyn Default')), ], ), migrations.CreateModel( name='WithFloatField', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('f', models.FloatField(blank=True, null=True)), ], ), migrations.AddField( model_name='child', name='parent', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='core.Parent'), ), migrations.AddField( model_name='book', name='categories', field=models.ManyToManyField(blank=True, to='core.Category'), ), ]
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')), ('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')), ('first_name', models.CharField(max_length=30, verbose_name='first name')), ('last_name', models.CharField(max_length=30, verbose_name='last name')), ('email', models.EmailField(error_messages={ 'unique': 'A user with that email address already exists.' }, max_length=100, unique=True, verbose_name='email address')), ('email_confirmed', 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={ 'ordering': ('email', ), }, managers=[ ('objects', core.models.CustomManager()), ], ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('max_capacity', models.IntegerField()), ('description', models.TextField(blank=True, verbose_name='group description')), ('logo', models.ImageField(default='group_logo.png', upload_to='group_images')), ('contribution_amount', models.DecimalField(decimal_places=2, max_digits=10)), ('contribution_frequency', models.CharField(choices=[('weekly', 'Weekly')], default='weekly', max_length=10)), ('current_balance', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=10)), ('is_public', models.BooleanField(default=False)), ('admin', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='managed_groups', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Transaction', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('value', models.DecimalField(decimal_places=2, max_digits=10)), ('running_balance', models.DecimalField(decimal_places=2, max_digits=10)), ('txn_time', models.DateTimeField(auto_now_add=True, verbose_name='time of transaction')), ('beneficiary', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='txn_beneficiary', to='core.Group')), ('source', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='txn_source', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture', models.ImageField(default='default.png', upload_to='profile_pics')), ('current_balance', models.DecimalField(decimal_places=2, default=Decimal('0.00'), max_digits=10)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Payout', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('amount', models.DecimalField(decimal_places=2, max_digits=10)), ('running_balance', models.DecimalField(decimal_places=2, max_digits=10)), ('pyt_time', models.DateTimeField(auto_now_add=True, verbose_name='time of payout')), ('beneficiary', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='pyt_beneficiary', to=settings.AUTH_USER_MODEL)), ('source', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='pyt_source', to='core.Group')), ], ), migrations.CreateModel( name='Membership', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_invited', models.DateTimeField(auto_now_add=True)), ('date_joined', models.DateTimeField(blank=True, null=True)), ('group', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='memberships', to='core.Group')), ('inviter', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='membership_inviter', to=settings.AUTH_USER_MODEL)), ('member', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='memberships', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='group', name='members', field=models.ManyToManyField(related_name='coop_groups', through='core.Membership', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( name='PayFastOrder', 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)), ('m_payment_id', models.CharField(blank=True, max_length=100, null=True, unique=True)), ('pf_payment_id', models.CharField(blank=True, max_length=40, null=True, unique=True)), ('payment_status', models.CharField(blank=True, max_length=20, null=True)), ('item_name', models.CharField(max_length=100)), ('item_description', models.CharField(blank=True, max_length=255, null=True)), ('amount', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)), ('custom_str1', models.CharField(blank=True, max_length=255, null=True)), ('custom_str2', models.CharField(blank=True, max_length=255, null=True)), ('custom_str3', models.CharField(blank=True, max_length=255, null=True)), ('custom_str4', models.CharField(blank=True, max_length=255, null=True)), ('custom_str5', models.CharField(blank=True, max_length=255, null=True)), ('custom_int1', models.IntegerField(blank=True, null=True)), ('custom_int2', models.IntegerField(blank=True, null=True)), ('custom_int3', models.IntegerField(blank=True, null=True)), ('custom_int4', models.IntegerField(blank=True, null=True)), ('custom_int5', models.IntegerField(blank=True, null=True)), ('name_first', models.CharField(blank=True, max_length=100, null=True)), ('name_last', models.CharField(blank=True, max_length=100, null=True)), ('email_address', models.CharField(blank=True, max_length=100, null=True)), ('merchant_id', models.CharField(max_length=15)), ('merchant_key', models.CharField(max_length=40)), ('sitter_merchant_id', models.CharField(max_length=15)), ('sitter_percantage', models.FloatField(default=0.2)), ('setup', models.CharField(max_length=200)), ('signature', models.CharField(blank=True, max_length=32, null=True)), ('request_ip', models.GenericIPAddressField(blank=True, null=True)), ], options={ 'verbose_name': 'PayFast order', }, ), migrations.CreateModel( name='ServiceBooking', 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)), ('start_date', models.DateField()), ('end_date', models.DateField()), ('time_slot', models.PositiveIntegerField()), ('notified_sitter', models.BooleanField(default=False)), ('sitter_answer', models.BooleanField(default=False)), ('notified_owner_of_sitter_response', models.BooleanField(default=False)), ('sitter_confirmed', models.BooleanField(default=False)), ('owner_payed', models.BooleanField(default=False)), ('invoice_sent', models.BooleanField(default=False)), ('price', models.PositiveIntegerField(default=10, validators=[django.core.validators.MinValueValidator(10)])), ('price_in_cents', models.PositiveIntegerField(default=10, validators=[django.core.validators.MinValueValidator(10)])), ('number_of_pets', models.PositiveIntegerField(default=1)), ('reason_for_not_being_able', models.CharField(default='', max_length=500)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ServiceLocation', 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)), ('city', models.CharField(max_length=500)), ('province', models.CharField(max_length=500)), ('street_name', models.CharField(default='', max_length=500)), ('area_code', models.PositiveIntegerField()), ('street_number', models.CharField(default='', max_length=500)), ('lattitude', models.FloatField()), ('longitude', models.FloatField()), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ServicePhotos', 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)), ('profile_picture', imagekit.models.fields.ProcessedImageField(upload_to=core.models.image_directory_path_service_photos)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ServiceReviews', 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)), ('review_score', models.FloatField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(5)])), ('review_text', models.CharField(max_length=10000)), ], options={ 'abstract': False, }, ), migrations.RenameField( model_name='sitterservices', old_name='listing_name', new_name='service_name', ), migrations.RemoveField( model_name='sitterservices', name='price_currency', ), migrations.RemoveField( model_name='sitterservices', name='score', ), migrations.AddField( model_name='miisitter', name='id_number', field=models.PositiveIntegerField(default=0), ), migrations.AddField( model_name='miisitter', name='merchant_id', field=models.CharField(default='', max_length=40), ), migrations.AddField( model_name='miisitter', name='number_of_bookings', field=models.PositiveIntegerField(default=0), ), migrations.AddField( model_name='miisitter', name='review_score', field=models.FloatField(default=6.0), ), migrations.AddField( model_name='miisitter', name='validated', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='allowed_to_show', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='birds_allowed', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='cats_allowed', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='date_end', field=models.DateField(default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='date_start', field=models.DateField(default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='dogs_allowed', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='maximum_number_of_pets', field=models.PositiveIntegerField(default=5, validators=[django.core.validators.MaxValueValidator(12)]), ), migrations.AddField( model_name='sitterservices', name='number_of_reviews', field=models.PositiveIntegerField(default=0), ), migrations.AddField( model_name='sitterservices', name='other_pets_allowed', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='reptiles_allowed', field=models.BooleanField(default=False), ), migrations.AddField( model_name='sitterservices', name='review_score', field=models.FloatField(default=6, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(5)]), ), migrations.AddField( model_name='sitterservices', name='time_end_friday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_monday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_saturday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_sunday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_thursday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_tuesday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_end_wednesday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_friday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_monday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_saturday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_sunday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_thursday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_tuesday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='sitterservices', name='time_start_wednesday', field=models.PositiveIntegerField(default=9999), preserve_default=False, ), migrations.AddField( model_name='user', name='accepted_privacy', field=models.BooleanField(default=False), ), migrations.AddField( model_name='user', name='accepted_tcs', field=models.BooleanField(default=False), ), migrations.AddField( model_name='user', name='created_at', field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='user', name='updated_at', field=models.DateTimeField(auto_now=True), ), migrations.AlterField( model_name='pets', name='profile_picture', field=imagekit.models.fields.ProcessedImageField(upload_to=core.models.image_directory_path_pet), ), migrations.AlterField( model_name='sitterservices', name='price', field=models.PositiveIntegerField(default=10, validators=[django.core.validators.MinValueValidator(10)]), ), migrations.AlterField( model_name='sitterservices', name='profile_picture', field=imagekit.models.fields.ProcessedImageField(upload_to=core.models.image_directory_path_service), ), migrations.AlterField( model_name='sitterservices', name='type', field=models.CharField(choices=[('WALK', 'Walker'), ('BOARD', 'Boarding'), ('SIT', 'House Sitting'), ('DAYCARE', 'Daycare')], default='DAYCARE', max_length=50), ), migrations.AlterField( model_name='user', name='profile_picture', field=imagekit.models.fields.ProcessedImageField(upload_to=core.models.image_directory_path), ), migrations.DeleteModel( name='SitterBooking', ), migrations.AddField( model_name='servicereviews', name='reviewer', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='servicereviews', name='service', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.SitterServices'), ), migrations.AddField( model_name='servicephotos', name='service', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.SitterServices'), ), migrations.AddField( model_name='servicelocation', name='service', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.SitterServices'), ), migrations.AddField( model_name='servicebooking', name='requester', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='servicebooking', name='service', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.SitterServices'), ), migrations.AddField( model_name='payfastorder', name='booking', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.ServiceBooking'), ), migrations.AddField( model_name='payfastorder', name='user_pay', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ CreateExtension('postgis'), migrations.CreateModel( name='Provider', 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')), ('name', models.CharField(max_length=256)), ('email', models.CharField(max_length=256, unique=True)), ('phone', models.CharField(max_length=256)), ('language', models.CharField(max_length=256)), ('currency', models.CharField(max_length=256)), ('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={ 'verbose_name': 'Provider', 'verbose_name_plural': 'Providers', }, managers=[ ('objects', core.models.ProviderUserManager()), ], ), migrations.CreateModel( name='ServiceArea', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256)), ('price', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)), ('polygon', django.contrib.gis.db.models.fields.PolygonField(default=None, srid=4326)), ('provider', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Service Area', 'verbose_name_plural': 'Service Areas', }, ), ]
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)), ('image', models.ImageField( null=True, upload_to=core.models.product_image_file_path)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('is_supplier', 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='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('active', models.BooleanField(default=True)), ('image', models.ImageField(null=True, upload_to='products')), ('description', models.CharField(max_length=500, null=True)), ], ), migrations.CreateModel( name='Coupon', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='MainCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('active', models.BooleanField(default=True)), ('image', models.ImageField( null=True, upload_to=core.models.product_image_file_path)), ('description', models.CharField(max_length=500, null=True)), ], ), migrations.CreateModel( name='Payment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255)), ('stock', models.IntegerField()), ('price', models.DecimalField(decimal_places=2, max_digits=5)), ('description', models.TextField(blank=True, null=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('slug', models.SlugField(max_length=255, unique=True)), ('featured', models.BooleanField(default=False)), ('image', models.ImageField( null=True, upload_to=core.models.product_image_file_path)), ('category', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.Category')), ], ), migrations.CreateModel( name='Shipment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('delivery_term', models.CharField(choices=[('fast', 'Fast'), ('normal', 'Normal'), ('Collective', 'Collective')], default='Normal', max_length=12)), ('description', models.TextField(blank=True, null=True)), ('delivery_days', models.PositiveSmallIntegerField()), ('rate', models.FloatField()), ], ), 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='Supplier', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_name', models.CharField(max_length=255, null=True)), ('logo', models.ImageField( null=True, upload_to=core.models.product_image_file_path)), ('owner', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('review', models.TextField(blank=True, null=True)), ('rating', models.PositiveIntegerField(validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5) ])), ('image', models.ImageField( blank=True, null=True, upload_to=core.models.product_image_file_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reviews', to='core.Product')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='product', name='tags', field=models.ManyToManyField(to='core.Tag'), ), migrations.AddField( model_name='product', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( null=True, upload_to=core.models.product_image_file_path)), ('customer', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='category', name='main_category', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='core.MainCategory'), ), migrations.AddField( model_name='category', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.CreateModel( name='Cart', 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)), ('date_added', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Product')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('country', django_countries.fields.CountryField(blank=True, default='IQ', max_length=2, null=True)), ('fullname', models.CharField(blank=True, max_length=64, null=True)), ('house_number', models.CharField(max_length=30)), ('district', models.CharField(max_length=60)), ('mobile', models.CharField(max_length=17)), ('deliver_instructions', models.CharField(blank=True, max_length=255, null=True)), ('address_type', models.CharField(blank=True, max_length=100, null=True)), ('city', models.CharField(blank=True, max_length=100, null=True)), ('pincode', models.CharField(blank=True, max_length=10, null=True)), ('street', models.CharField(blank=True, max_length=200, null=True)), ('state', models.CharField(blank=True, max_length=255, null=True)), ('primary', models.BooleanField(default=False)), ('date_added', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='address', to=settings.AUTH_USER_MODEL)), ], ), ]