class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Pizza', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nom', models.CharField(max_length=255)), ('prixm', models.DecimalField(decimal_places=2, max_digits=5)), ('prixl', models.DecimalField(decimal_places=2, max_digits=5)), ('descf', models.TextField()), ('descb', models.TextField()), ('pimage', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Products', 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)), ('public_id', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ('product_code', models.CharField(max_length=255)), ('title', models.CharField(max_length=255)), ('image', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='image')), ('quantity', models.PositiveIntegerField(validators=[ django.core.validators.MaxValueValidator(10000) ])), ('unit_price', models.DecimalField(decimal_places=2, max_digits=18)), ('status', models.CharField(choices=[('available', 'DisponÃvel'), ('unavailable', 'IndisponÃvel'), ('deleted', 'Deletado')], default='unavailable', max_length=20)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created_at'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20200112_1447'), ] operations = [ migrations.RenameField( model_name='product', old_name='category_id', new_name='category', ), migrations.RenameField( model_name='product', old_name='vendor_id', new_name='vendor', ), migrations.AddField( model_name='product', name='dicount_price', field=models.DecimalField(decimal_places=2, default=20.0, max_digits=9), ), migrations.AddField( model_name='product', name='free_shipping', field=models.BooleanField(default=False), ), migrations.AddField( model_name='product', name='main_image', field=cloudinary.models.CloudinaryField(default='img.url', max_length=255, verbose_name='image'), ), migrations.AddField( model_name='product', name='rear_image', field=cloudinary.models.CloudinaryField(default='img.url', max_length=255, verbose_name='image'), ), migrations.AddField( model_name='product', name='side_image', field=cloudinary.models.CloudinaryField(default='img.url', max_length=255, verbose_name='image'), ), migrations.AddField( model_name='product', name='trending', field=models.BooleanField(default=False), ), ]
class Migration(migrations.Migration): dependencies = [ ('main', '0006_photo'), ] operations = [ migrations.AlterField( model_name='company', name='goal', field=models.DecimalField(decimal_places=2, max_digits=10), ), migrations.AlterField( model_name='userprofile', name='image', field=cloudinary.models.CloudinaryField(max_length=255, verbose_name='image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('products', '0005_auto_20200821_0851'), ] operations = [ migrations.AddField( model_name='product', name='cover', field=cloudinary.models.CloudinaryField(default=None, max_length=255), preserve_default=False, ), migrations.AlterField( model_name='product', name='price', field=models.DecimalField(decimal_places=2, max_digits=10), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('website', models.CharField(max_length=100)), ('locations', models.CharField(max_length=100)), ('sector_focus', models.CharField(max_length=100)), ('stage', models.CharField(max_length=100)), ('duration', models.CharField(max_length=100)), ('deal', models.CharField(max_length=100)), ('bio', models.TextField()), ('logo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('avg_rating', models.DecimalField(decimal_places=2, max_digits=3)), ('avg_mentorship', models.DecimalField(decimal_places=2, max_digits=3)), ('avg_hiring', models.DecimalField(decimal_places=2, max_digits=3)), ('avg_community', models.DecimalField(decimal_places=2, max_digits=3)), ('avg_corporate_fundraising', models.DecimalField(decimal_places=2, max_digits=3)), ('avg_fundraising', models.DecimalField(decimal_places=2, max_digits=3)), ('user', models.ForeignKey(default='admin', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Invoice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('invoice', models.CharField(max_length=50)), ('invoice_reference', models.CharField(blank=True, default=None, max_length=50)), ('car_plate', models.CharField(blank=True, default=None, max_length=8)), ('accounts_receivables', models.DecimalField(decimal_places=2, max_digits=7)), ('balance', models.CharField(choices=[('Credit', 'Credit'), ('Debit', 'Debit')], max_length=6)), ('accounts_payable', models.CharField(max_length=50)), ('inv_date', models.DateField()), ('submitter', models.CharField(default='Master', max_length=50)), ('financial_year', models.IntegerField(default=9999)), ('month', models.IntegerField(default=99)), ('cover', cloudinary.models.CloudinaryField(default='None', max_length=255)), ('log_date', models.DateTimeField(auto_now_add=True)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('slug', models.SlugField()), ('description', models.TextField(blank=True, null=True)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('thumbnail', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('vendor', models.CharField(blank=True, max_length=50, null=True)), ('size', models.CharField(blank=True, max_length=20, null=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='products', to='products.category')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Game', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True)), ('url', models.URLField(unique=True)), ('price', models.DecimalField(decimal_places=2, default=0, max_digits=8)), ('logo', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='logo')), ('banner', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='banner')), ('description', models.TextField(blank=True, max_length=1000)), ], ), migrations.CreateModel( name='GameReview', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('review_text', models.TextField(blank=True, max_length=500)), ('review_star', models.IntegerField(default=0)), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ], ), migrations.CreateModel( name='GameSale', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time_of_purchase', models.DateTimeField(auto_now_add=True)), ('ref', models.IntegerField()), ('pid', models.CharField(max_length=20)), ('price_paid', models.DecimalField(decimal_places=2, default=0, max_digits=8)), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ], ), migrations.CreateModel( name='PurchasedGame', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('game_state', models.CharField(blank=True, default='', max_length=10000)), ('high_score', models.IntegerField(default=0)), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ], ), migrations.CreateModel( name='RegUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('developer', models.BooleanField(default=False)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True)), ], ), migrations.AddField( model_name='purchasedgame', name='player', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.RegUser'), ), migrations.AddField( model_name='gamereview', name='reviewer', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.RegUser'), ), migrations.AddField( model_name='game', name='developer', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.RegUser'), ), migrations.AddField( model_name='game', name='tags', field=models.ManyToManyField(blank=True, to='gamestore.Tag'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='MoringaMerch', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40)), ('description', models.TextField()), ('price', models.DecimalField(decimal_places=2, max_digits=20)), ], ), migrations.CreateModel( name='Profile', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='auth.user')), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('biography', tinymce.models.HTMLField(blank=True)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='AwwwardsPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('description', models.CharField(max_length=500)), ('country', models.CharField(max_length=30)), ('date_posted', models.DateTimeField(auto_now=True)), ('project_link', models.URLField(max_length=300)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-date_posted'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='BlogPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=500)), ('body', models.CharField(blank=True, max_length=5000)), ('block_quote', models.CharField(max_length=1000, null=True)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('slug', models.CharField(blank=True, max_length=200, null=True)), ('date_created', models.DateTimeField(default=django.utils.timezone.now)), ('last_updated', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Category', fields=[ ('name', models.CharField(max_length=500, primary_key=True, serialize=False, unique=True)), ], options={ 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='Cause', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=2000)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('description', models.TextField(blank=True, max_length=5000)), ('hospital_address', models.CharField(max_length=2000, null=True)), ('reference_code', models.CharField(max_length=30, null=True)), ('target', models.DecimalField(decimal_places=2, max_digits=8)), ('donated', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)), ('approved', models.BooleanField(default=False)), ('donor_count', models.IntegerField(default=0)), ('date_created', models.DateTimeField(default=django.utils.timezone.now)), ('last_updated', models.DateTimeField(default=django.utils.timezone.now)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='DonationTransactionHistory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount_donated', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)), ('donor_name', models.CharField(blank=True, max_length=500, null=True)), ('date_created', models.DateTimeField(default=django.utils.timezone.now)), ('last_updated', models.DateTimeField(default=django.utils.timezone.now)), ('cause', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='app.cause')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('body', models.CharField(blank=True, max_length=1000)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('blog_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='app.blogpost')), ], ), migrations.AddField( model_name='blogpost', name='category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='app.category'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('address1', models.CharField(max_length=60, verbose_name='Address line 1')), ('address2', models.CharField(blank=True, max_length=60, verbose_name='Address line 2')), ('zip_code', models.CharField(max_length=12, verbose_name='ZIP or Postal code')), ('city', models.CharField(max_length=60)), ('country', models.CharField(choices=[('uk', 'United Kingdom'), ('us', 'United States of America'), ('jp', 'Japan'), ('id', 'Indonesia')], max_length=3)), ], options={ 'verbose_name_plural': 'Addresses', }, ), migrations.CreateModel( name='Brewery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=250, unique=True)), ('address', models.CharField(blank=True, max_length=200)), ('prefecture', models.CharField(blank=True, max_length=20, null=True)), ('phone', models.CharField(blank=True, max_length=50)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('description', models.TextField(blank=True, null=True)), ('slug', models.SlugField(blank=True, unique=True)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('lat', models.FloatField(blank=True, null=True)), ('long', models.FloatField(blank=True, null=True)), ('website', models.CharField(blank=True, max_length=100)), ('header', cloudinary.models.CloudinaryField(max_length=255, verbose_name='header')), ], options={ 'verbose_name_plural': 'Breweries', }, ), migrations.CreateModel( name='Cart', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(choices=[(10, 'Open'), (20, 'Submitted')], default=10)), ], ), migrations.CreateModel( name='CartLine', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ], ), migrations.CreateModel( name='Cluster', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(choices=[(10, 'New'), (20, 'Paid'), (30, 'Done')], default=10)), ('billing_name', models.CharField(max_length=60)), ('billing_address1', models.CharField(max_length=60)), ('billing_address2', models.CharField(blank=True, max_length=60)), ('billing_zip_code', models.CharField(max_length=12)), ('billing_city', models.CharField(max_length=60)), ('billing_country', models.CharField(max_length=3)), ('shipping_name', models.CharField(max_length=60)), ('shipping_address1', models.CharField(max_length=60)), ('shipping_address2', models.CharField(blank=True, max_length=60)), ('shipping_zip_code', models.CharField(max_length=12)), ('shipping_city', models.CharField(max_length=60)), ('shipping_country', models.CharField(max_length=3)), ('date_updated', models.DateTimeField(auto_now=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='OrderLine', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.IntegerField(choices=[(10, 'New'), (20, 'Processing'), (30, 'Sent'), (40, 'Cancelled')], default=10)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200)), ('lede', models.CharField(blank=True, max_length=200, null=True)), ('date', models.DateTimeField(blank=True, null=True)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('body', models.TextField()), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('description', models.TextField(blank=True, null=True)), ('short_description', models.TextField(blank=True, null=True)), ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)), ('slug', models.SlugField(max_length=100, null=True)), ('active', models.BooleanField(blank=True, default=True, null=True)), ('in_stock', models.BooleanField(blank=True, default=True, null=True)), ('date_updated', models.DateTimeField(auto_now=True, null=True)), ('abv', models.FloatField(blank=True, default=0, null=True)), ('sake_type', models.CharField(choices=[('jd', 'Junmai Daiginjo'), ('d', 'Daiginjo'), ('jg', 'Junmai Ginjo'), ('g', 'Ginjo'), ('j', 'Junmai'), ('h', 'Honjozo'), ('f', 'Futsu'), ('o', 'Other')], max_length=3)), ('volume', models.PositiveIntegerField(blank=True, null=True)), ('units_sold', models.PositiveIntegerField(blank=True, default=0, null=True)), ], ), migrations.CreateModel( name='ProductImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ], ), migrations.CreateModel( name='ProductTag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32)), ('slug', models.SlugField(max_length=48)), ('description', models.TextField(blank=True)), ('active', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Review', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateField(blank=True, null=True, verbose_name='Date published')), ('rating', models.IntegerField(choices=[(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5')], null=True)), ('content', models.TextField(verbose_name='Write your review here...')), ('lat', models.FloatField(blank=True, null=True)), ('long', models.FloatField(blank=True, null=True)), ('postcode', models.CharField(blank=True, max_length=128, null=True)), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_image', cloudinary.models.CloudinaryField( max_length=255, verbose_name='profile_image')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Asset', fields=[ ('title', models.CharField(max_length=128)), ('asset_id', models.AutoField(primary_key=True, serialize=False)), ('body', models.TextField()), ('image_link', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('online', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Catalog', fields=[ ('name', models.CharField(max_length=128)), ('catalog_id', models.AutoField(primary_key=True, serialize=False)), ('image_link', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('link', models.TextField( validators=[django.core.validators.URLValidator()])), ('online', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='Category', fields=[ ('name', models.CharField(max_length=128)), ('category_id', models.AutoField(primary_key=True, serialize=False)), ('image_link', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('online', models.BooleanField(default=True)), ('parent_category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='API.Category')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('product_id', models.CharField(blank=True, max_length=32, null=True)), ('description', models.TextField()), ('client_id', models.CharField(default=uuid.uuid4, max_length=128, unique=True)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('currency', models.CharField(choices=[('EUR', 'Euro'), ('USD', 'Dollar'), ('BGN', 'Leva')], max_length=5)), ('image_link', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True)), ('online', models.BooleanField(default=True)), ('views', models.IntegerField(default=0)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='API.Category')), ], ), migrations.CreateModel( name='Site', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.AddField( model_name='asset', name='site', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='API.Site'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Activity', fields=[ ('activity_id', models.BigAutoField(primary_key=True, serialize=False)), ('activity', models.CharField(db_index=True, max_length=100)), ], options={ 'verbose_name_plural': 'activities', }, ), migrations.CreateModel( name='ActivityType', fields=[ ('activity_type_id', models.BigIntegerField(primary_key=True, serialize=False)), ('activity_type', models.CharField(db_index=True, max_length=100)), ], ), migrations.CreateModel( name='UserActivity', fields=[ ('user_activity_id', models.BigAutoField(primary_key=True, serialize=False)), ('location', models.CharField(max_length=200)), ('lat', models.CharField(max_length=100)), ('lon', models.CharField(max_length=100)), ('monday', models.BooleanField(default=True)), ('tuesday', models.BooleanField(default=True)), ('wednesday', models.BooleanField(default=True)), ('thursday', models.BooleanField(default=True)), ('friday', models.BooleanField(default=True)), ('saturday', models.BooleanField(default=False)), ('sunday', models.BooleanField(default=False)), ('open_from', models.TimeField()), ('open_to', models.TimeField()), ('description', models.CharField(max_length=350)), ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.Activity')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserActivityAlbum', fields=[ ('user_activity_album_id', models.BigAutoField(primary_key=True, serialize=False)), ('photo', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('user_activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='main.UserActivity')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='M', max_length=1)), ('location', models.CharField(blank=True, max_length=100, null=True)), ('birth_date', models.DateField(blank=True, null=True)), ('join_date', models.DateField(auto_now_add=True)), ('phone', models.CharField(blank=True, max_length=20, null=True)), ('score', models.DecimalField(blank=True, decimal_places=4, max_digits=10, null=True)), ('profile_picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Deal', fields=[ ('deal_id', models.BigAutoField(primary_key=True, serialize=False)), ('request_date', models.DateTimeField(auto_now_add=True)), ('request_modified', models.DateTimeField(auto_now=True)), ('status', models.CharField(choices=[('R', 'Request'), ('A', 'Accepted'), ('D', 'Declined'), ('F', 'Finished')], default='R', max_length=1)), ('rating', models.IntegerField(default=5)), ('review', models.TextField(blank=True, null=True)), ('request_from', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('request_to', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='request_to', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='activity', name='activity_type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='main.ActivityType'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [('auth', '0009_alter_user_last_name_max_length')] operations = [ migrations.CreateModel( name='User', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'password', models.CharField(max_length=128, verbose_name='password'), ), ( 'last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login'), ), ( 'is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status', ), ), ( 'username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username', ), ), ( 'first_name', models.CharField(blank=True, max_length=30, verbose_name='first name'), ), ( 'last_name', models.CharField(blank=True, max_length=150, verbose_name='last name'), ), ( 'email', models.EmailField( blank=True, max_length=254, verbose_name='email address', ), ), ( 'is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status', ), ), ( 'is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active', ), ), ( 'date_joined', models.DateTimeField( default=django.utils.timezone.now, verbose_name='date joined', ), ), ( 'role', models.CharField( choices=[('Provider', 'provider'), ('Customer', 'customer')], max_length=256, ), ), ( 'phone_number', phonenumber_field.modelfields.PhoneNumberField( max_length=128), ), ( 'groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups', ), ), ( 'user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions', ), ), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[('objects', django.contrib.auth.models.UserManager())], ), migrations.CreateModel( name='Booking', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created'), ), ( 'modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified'), ), ( 'status', models.IntegerField( choices=[ (1, 'not started'), (2, 'started'), (3, 'completed'), (5, 'cancelled'), ], default=1, ), ), ('start', models.DateTimeField()), ( 'price', models.DecimalField(decimal_places=2, max_digits=10), ), ( 'customer', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='customer', to=settings.AUTH_USER_MODEL, ), ), ( 'provider', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='provider', to=settings.AUTH_USER_MODEL, ), ), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), migrations.CreateModel( name='Invoice', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created'), ), ( 'modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified'), ), ('paid', models.BooleanField()), ('order', models.CharField(max_length=256)), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), migrations.CreateModel( name='Job', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created'), ), ( 'modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified'), ), ('position', models.CharField(max_length=256)), ('description', models.TextField()), ( 'company_name', models.CharField(blank=True, max_length=256, null=True), ), ( 'application_url', models.URLField(blank=True, max_length=256, null=True), ), ('featured', models.BooleanField()), ('cost', models.FloatField()), ('hours', models.FloatField()), ('expires', models.DateTimeField()), ('filled', models.BooleanField()), ('num_to_apply', models.IntegerField()), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), migrations.CreateModel( name='JobApplication', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created'), ), ( 'modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified'), ), ('selected', models.BooleanField()), ( 'applicant', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), ( 'job', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Job', ), ), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), migrations.CreateModel( name='JobCategory', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ('name', models.CharField(max_length=256)), ( 'slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, populate_from='name'), ), ('description', models.TextField()), ( 'parent_category', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.JobCategory', ), ), ], options={ 'verbose_name': 'Category', 'verbose_name_plural': 'Categories' }, ), migrations.CreateModel( name='JobType', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ('name', models.CharField(max_length=256)), ( 'slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, populate_from='name'), ), ('description', models.TextField()), ( 'parent_category', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.JobType', ), ), ], options={ 'verbose_name': 'Category', 'verbose_name_plural': 'Categories' }, ), migrations.CreateModel( name='Location', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ('address', models.CharField(max_length=120)), ( 'state', models.CharField( blank=True, choices=[ ('', 'Select State'), ('Abia', 'Abia'), ('Abuja', 'Abuja'), ('Adamawa', 'Adamawa'), ('Akwa Ibom', 'Akwa Ibom'), ('Anambra', 'Anambra'), ('Bayelsa', 'Bayelsa'), ('Bauchi', 'Bauchi'), ('Benue', 'Benue'), ('Borno', 'Borno'), ('Cross River', 'Cross River'), ('Delta', 'Delta'), ('Edo', 'Edo'), ('Ebonyi', 'Ebonyi'), ('Ekiti', 'Ekiti'), ('Enugu', 'Enugu'), ('Gombe', 'Gombe'), ('Imo', 'Imo'), ('Jigawa', 'Jigawa'), ('Kaduna', 'Kaduna'), ('Kano', 'Kano'), ('Katsina', 'Katsina'), ('Kebbi', 'Kebbi'), ('Kogi', 'Kogi'), ('Kwara', 'Kwara'), ('Lagos', 'Lagos'), ('Nassawara', 'Nassawara'), ('Niger', 'Niger'), ('Ogun', 'Ogun'), ('Ondo', 'Ondo'), ('Osun', 'Osun'), ('Oyo', 'Oyo'), ('Plateau', 'Plateau'), ('Rivers', 'Rivers'), ('Sokoto', 'Sokoto'), ('Taraba', 'Taraba'), ('Yobe', 'Yobe'), ('Zamfara', 'Zamfara'), ], db_index=True, max_length=50, null=True, ), ), ( 'vicinity', models.CharField(blank=True, max_length=80, null=True), ), ( 'vicinity_type', models.CharField(blank=True, max_length=20, null=True), ), ( 'longitude', models.DecimalField(blank=True, decimal_places=7, max_digits=10, null=True), ), ( 'latitude', models.DecimalField(blank=True, decimal_places=7, max_digits=10, null=True), ), ( 'lga', models.CharField(blank=True, max_length=30, null=True), ), ( 'user', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name='UserIdentification', fields=[ ( 'id', models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name='ID', ), ), ( 'created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created'), ), ( 'modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified'), ), ( 'identity', cloudinary.models.CloudinaryField( max_length=100, null=True, verbose_name='Identification Document', ), ), ('verified', models.BooleanField(default=False)), ( 'doc_type', models.CharField( choices=[('identity', 'identity')], default='identity', max_length=30, ), ), ('require_modification', models.BooleanField(default=False)), ( 'user', models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='identifications', to=settings.AUTH_USER_MODEL, verbose_name='user', ), ), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), migrations.AddField( model_name='job', name='category', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.JobCategory', ), ), migrations.AddField( model_name='job', name='location', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Location'), ), migrations.AddField( model_name='job', name='poster', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), migrations.AddField( model_name='job', name='type', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.JobType'), ), migrations.AddField( model_name='invoice', name='job', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='api.Job'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('is_customer', models.BooleanField(default=False)), ('is_employee', models.BooleanField(default=False)), ('first_name', models.CharField(max_length=100)), ('last_name', models.CharField(max_length=100)), ('contact', models.IntegerField(null=True)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('cost', models.DecimalField(decimal_places=1, max_digits=5)), ('units_remaining', models.IntegerField(null=True)), ], ), migrations.CreateModel( name='Customer', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='groceapp.user')), ('email', models.EmailField(blank=True, max_length=254)), ], ), migrations.CreateModel( name='Employee', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='groceapp.user')), ('email', models.EmailField(blank=True, max_length=254)), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_picture', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('items', models.TextField()), ('contact', models.IntegerField(null=True)), ('email', models.EmailField(max_length=254)), ('location_address', models.CharField(max_length=300, null=True)), ('category', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='groceapp.category')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=254)), ('friendly_name', models.CharField(blank=True, max_length=254, null=True)), ], options={ 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='SubCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=254)), ('friendly_name', models.CharField(blank=True, max_length=254, null=True)), ], options={ 'verbose_name_plural': 'Sub-Categories', }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sku', models.CharField(max_length=254)), ('name', models.CharField(max_length=254)), ('description', models.TextField()), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('category', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='products.category')), ('sub_category', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='products.subcategory')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Comida', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=120)), ('preço', models.DecimalField(decimal_places=2, max_digits=6)), ], ), migrations.CreateModel( name='Ingredientes', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=120)), ], ), migrations.CreateModel( name='Pedido', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unidades', models.IntegerField()), ('entrega', models.DateTimeField()), ('nome', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Comida')), ], ), migrations.CreateModel( name='Restaurante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=500)), ('cnpj', models.IntegerField(null=True)), ('email', models.EmailField(max_length=254, null=True)), ('slug', models.SlugField(max_length=15, unique=True)), ('localizacao', models.CharField(max_length=1000)), ('descricao_breve', models.CharField(max_length=100, null=True)), ('descricao_longa', models.CharField(max_length=500, null=True)), ('status', models.BooleanField(default=True, null=True)), ('telefone', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region='BR')), ], ), migrations.CreateModel( name='Usuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('localizacao', models.CharField(max_length=500)), ('user', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Pedido_Restaurante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cliente', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Usuario')), ('pedido', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Pedido')), ('restaurante', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Restaurante')), ], ), migrations.CreateModel( name='Fotos_Restaurante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('foto', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='foto')), ('restaurante', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Delivery.Restaurante')), ], ), migrations.CreateModel( name='Fotos_Comida', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('foto', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='foto')), ('comida', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Delivery.Comida')), ], ), migrations.AddField( model_name='comida', name='ingredientes', field=models.ManyToManyField(to='Delivery.Ingredientes'), ), migrations.CreateModel( name='Comentario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('titulo', models.CharField(max_length=100)), ('descricao', models.CharField(max_length=1000)), ('autor', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Delivery.Usuario')), ('restaurante', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Delivery.Restaurante')), ], ), migrations.CreateModel( name='Classificacao_Usuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nota', models.IntegerField()), ('usuario', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Usuario')), ], ), migrations.CreateModel( name='Classificacao_Restaurante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nota', models.IntegerField()), ('restaurante', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Delivery.Restaurante')), ], ), migrations.CreateModel( name='Cardapio', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comidas', models.ManyToManyField(to='Delivery.Comida')), ('restaurante', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Delivery.Restaurante')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Brand', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ('description', models.TextField()), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('created', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ('description', models.TextField()), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('content', models.CharField(max_length=30)), ('price', models.DecimalField(decimal_places=2, max_digits=8)), ('bva_volume', models.PositiveIntegerField()), ('category', models.CharField(choices=[('01', 'Spirits'), ('02', 'Wines'), ('03', 'Beers'), ('04', 'Gas carnisters'), ('05', 'Internationals'), ('06', 'Beverages/non alcoholic')], max_length=20)), ('quantity', models.PositiveIntegerField()), ('available', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('brand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.brand')), ], ), migrations.CreateModel( name='ProductImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', cloudinary.models.CloudinaryField(max_length=255, verbose_name='image')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='base.product')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Chef', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=30)), ('last_name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=254)), ('phone_number', models.CharField(blank=True, max_length=10)), ], ), migrations.CreateModel( name='foods', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_pic', models.ImageField(upload_to='images/')), ('bio', models.CharField(max_length=300)), ('username', models.CharField(default='Your username', max_length=50)), ], ), migrations.CreateModel( name='RecipeMerch', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=40)), ('description', models.TextField()), ('price', models.DecimalField(decimal_places=2, max_digits=20)), ], ), migrations.CreateModel( name='RecipeRecipients', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('email', models.EmailField(max_length=254)), ], ), migrations.CreateModel( name='Recipe', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('food_name', models.CharField(max_length=60)), ('ingredients', models.TextField()), ('procedure', models.TextField()), ('post', tinymce.models.HTMLField(default='1')), ('pub_date', models.DateTimeField(auto_now_add=True)), ('food_image', models.ImageField(blank=True, default='1', upload_to='recipe/')), ('chef', models.ForeignKey(blank=True, default='1', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ('date', models.DateTimeField(auto_now_add=True)), ('image', cloudinary.models.CloudinaryField(default='media/default.jpg', max_length=255, verbose_name='images')), ('food_name', models.CharField(default='1', max_length=60)), ('ingredients', models.TextField(default='1')), ('procedure', models.TextField(default='1')), ('post', tinymce.models.HTMLField(default='1')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipeapp.category')), ('chef', models.ForeignKey(blank=True, default='1', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipeapp.location')), ('profile', models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='recipeapp.profile')), ], options={ 'ordering': ['name'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Country', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('countryname', models.CharField(max_length=30)), ('country_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ], ), migrations.CreateModel( name='Destination', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('destname', models.CharField(max_length=30)), ('address', models.CharField(max_length=30)), ('pub_date', models.DateTimeField(auto_now_add=True)), ('destination_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('destincountry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Country')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_photo', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('bio', models.CharField(max_length=100)), ('editor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Reviews', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('review', models.CharField(max_length=100)), ('review_date', models.DateTimeField(auto_now_add=True)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Profile')), ('reviewer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Package', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('packagename', models.CharField(max_length=30)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('description', models.CharField(max_length=100)), ('duration', models.IntegerField(default=1)), ('dest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Destination')), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Profile')), ('destination', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Destination')), ('package', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='agency.Package')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('is_developer', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, bases=(simple_email_confirmation.models. SimpleEmailConfirmationUserMixin, models.Model), managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Game', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150)), ('url', models.URLField()), ('cover', cloudinary.models.CloudinaryField(blank=True, max_length=255, verbose_name='cover')), ('price', models.IntegerField(default=0)), ('created', models.DateTimeField(editable=False)), ], ), migrations.CreateModel( name='GameState', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.TextField()), ('date', models.DateTimeField(auto_now_add=True)), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-date'], }, ), migrations.CreateModel( name='Payment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.DecimalField(decimal_places=2, max_digits=9)), ('date', models.DateTimeField(auto_now_add=True)), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Score', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('value', models.FloatField()), ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gamestore.Game')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-value'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.AddField( model_name='game', name='tags', field=models.ManyToManyField(blank=True, to='gamestore.Tag', verbose_name='Tags'), ), migrations.AddField( model_name='game', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('account', '0001_initial'), ] operations = [ migrations.CreateModel( name='Announcement', fields=[ ('announcement_id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=31)), ('body', models.TextField()), ('post_date', models.DateField(auto_now_add=True, null=True)), ], options={ 'db_table': 'at_announcements', }, ), migrations.CreateModel( name='Assignment', fields=[ ('assignment_id', models.AutoField(primary_key=True, serialize=False)), ('assignment_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(max_length=31, null=True)), ('description', models.TextField(null=True)), ('start_date', models.DateField(null=True)), ('due_date', models.DateField(null=True)), ('worth', models.PositiveSmallIntegerField( choices=[(0, '0 %'), (10, '10 %'), (15, '15 %'), (20, '20 %'), (25, '25 %'), (30, '30 %'), (35, '35 %'), (40, '40 %'), (45, '45 %'), (50, '50 %'), (55, '55 %'), (60, '60 %'), (65, '65 %'), (70, '70 %'), (75, '75 %'), (80, '80 %'), (85, '85 %'), (90, '90 %'), (95, '95 %'), (100, '100 %')], default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ], options={ 'db_table': 'at_assignments', }, ), migrations.CreateModel( name='AssignmentSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('percent', models.FloatField(default=0)), ('earned_marks', models.FloatField(default=0)), ('total_marks', models.PositiveSmallIntegerField(default=0)), ('submission_date', models.DateTimeField(auto_now=True, null=True)), ('is_finished', models.BooleanField(default=False)), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Assignment')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_assignment_submissions', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=150)), ('slug', models.SlugField(max_length=150, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ], options={ 'verbose_name': 'category', 'verbose_name_plural': 'categories', 'ordering': ('name', ), }, ), migrations.CreateModel( name='Course', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=127)), ('sub_title', models.CharField(max_length=127)), ('description', models.TextField(null=True)), ('start_date', models.DateField(null=True)), ('finish_date', models.DateField(null=True)), ('is_official', models.BooleanField(default=False)), ('status', models.PositiveSmallIntegerField(default=0)), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('price', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=7)), ('discount_price', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=7)), ('category', models.ForeignKey(default='Leadership', on_delete=django.db.models.deletion.CASCADE, related_name='courses', to='registrar.Category')), ('students', models.ManyToManyField(to='account.Student')), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Teacher')), ], options={ 'db_table': 'at_courses', }, ), migrations.CreateModel( name='CourseDiscussionPost', fields=[ ('post_id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=127)), ('text', models.TextField(blank=True, null=True)), ('date', models.DateTimeField(auto_now=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'at_course_discussion_posts', }, ), migrations.CreateModel( name='CourseDiscussionThread', fields=[ ('thread_id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=127)), ('text', models.TextField(blank=True, null=True)), ('date', models.DateTimeField(auto_now=True, null=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ('posts', models.ManyToManyField(to='registrar.CourseDiscussionPost')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'at_course_discussion_threads', }, ), migrations.CreateModel( name='CourseFinalMark', fields=[ ('credit_id', models.AutoField(primary_key=True, serialize=False)), ('percent', models.FloatField( default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('is_public', models.BooleanField(default=False)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_course_final_marks', }, ), migrations.CreateModel( name='CourseSetting', fields=[ ('settings_id', models.AutoField(primary_key=True, serialize=False)), ('final_exam_percent', models.FloatField( default=50, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('course_percent', models.FloatField( default=50, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ], options={ 'db_table': 'at_course_settings', }, ), migrations.CreateModel( name='CourseSubmission', fields=[ ('review_id', models.AutoField(primary_key=True, serialize=False)), ('status', models.PositiveSmallIntegerField(default=2)), ('from_submitter', models.TextField(null=True)), ('from_reviewer', models.TextField(null=True)), ('review_date', models.DateField(auto_now=True, null=True)), ('submission_date', models.DateField(auto_now=True, null=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ], options={ 'db_table': 'at_course_submissions', }, ), migrations.CreateModel( name='EssayQuestion', fields=[ ('question_id', models.AutoField(primary_key=True, serialize=False)), ('question_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(default='', max_length=31)), ('description', models.TextField(default='')), ('marks', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('assignment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Assignment')), ], options={ 'db_table': 'at_essay_questions', }, ), migrations.CreateModel( name='EssaySubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('file', models.FileField(upload_to='uploads')), ('submission_date', models.DateTimeField(auto_now=True, null=True)), ('marks', models.FloatField( default=0, validators=[django.core.validators.MinValueValidator(0) ])), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.EssayQuestion')), ], options={ 'db_table': 'at_essay_submissions', }, ), migrations.CreateModel( name='Exam', fields=[ ('exam_id', models.AutoField(primary_key=True, serialize=False)), ('exam_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(max_length=31, null=True)), ('description', models.TextField(null=True)), ('start_date', models.DateField(null=True)), ('due_date', models.DateField(null=True)), ('worth', models.PositiveSmallIntegerField( choices=[(0, '0 %'), (10, '10 %'), (15, '15 %'), (20, '20 %'), (25, '25 %'), (30, '30 %'), (35, '35 %'), (40, '40 %'), (45, '45 %'), (50, '50 %'), (55, '55 %'), (60, '60 %'), (65, '65 %'), (70, '70 %'), (75, '75 %'), (80, '80 %'), (85, '85 %'), (90, '90 %'), (95, '95 %'), (100, '100 %')], default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('is_final', models.BooleanField(default=False)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exams', to='registrar.Course')), ], options={ 'db_table': 'at_exams', }, ), migrations.CreateModel( name='ExamSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('percent', models.FloatField(default=0)), ('earned_marks', models.FloatField(default=0)), ('total_marks', models.PositiveSmallIntegerField(default=0)), ('submission_date', models.DateField(auto_now=True, null=True)), ('is_finished', models.BooleanField(default=False)), ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Exam')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_exam_submissions', }, ), migrations.CreateModel( name='FileUpload', fields=[ ('upload_id', models.AutoField(primary_key=True, serialize=False)), ('type', models.PositiveSmallIntegerField(default=0)), ('title', models.CharField(max_length=127, null=True)), ('description', models.TextField(null=True)), ('upload_date', models.DateField(auto_now=True, null=True)), ('file', cloudinary.models.CloudinaryField(max_length=255, null=True, verbose_name='fileupload')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'at_file_uploads', }, ), migrations.CreateModel( name='Lecture', fields=[ ('lecture_id', models.AutoField(primary_key=True, serialize=False)), ('lecture_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('week_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(default='', max_length=63, null=True)), ('description', models.TextField(default='', null=True)), ('youtube_url', models.URLField(blank=True, null=True)), ('vimeo_url', models.URLField(blank=True, null=True)), ('bliptv_url', models.URLField(blank=True, null=True)), ('preferred_service', models.CharField(choices=[('1', 'YouTube'), ('2', 'Vimeo')], default='1', max_length=1)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lectures', to='registrar.Course')), ('notes', models.ManyToManyField(to='registrar.FileUpload')), ], options={ 'db_table': 'at_lectures', }, ), migrations.CreateModel( name='Module', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('module_number', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('module_title', models.CharField(max_length=80)), ('module_duration', models.CharField(max_length=191)), ('module_description', models.TextField()), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='registrar.Course')), ], options={ 'db_table': 'at_modules', }, ), migrations.CreateModel( name='MultipleChoiceQuestion', fields=[ ('question_id', models.AutoField(primary_key=True, serialize=False)), ('question_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(blank=True, default='', max_length=31)), ('description', models.TextField(default='')), ('a', models.CharField(max_length=255, null=True)), ('a_is_correct', models.BooleanField(default=False)), ('b', models.CharField(max_length=255, null=True)), ('b_is_correct', models.BooleanField(default=False)), ('c', models.CharField(blank=True, max_length=255, null=True)), ('c_is_correct', models.BooleanField(default=False)), ('d', models.CharField(blank=True, max_length=255, null=True)), ('d_is_correct', models.BooleanField(default=False)), ('e', models.CharField(blank=True, max_length=255, null=True)), ('e_is_correct', models.BooleanField(default=False)), ('f', models.CharField(blank=True, max_length=255, null=True)), ('f_is_correct', models.BooleanField(default=False)), ('marks', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('assignment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Assignment')), ('exam', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Exam')), ], options={ 'db_table': 'at_multiple_choice_questions', }, ), migrations.CreateModel( name='MultipleChoiceSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('a', models.BooleanField(default=False)), ('b', models.BooleanField(default=False)), ('c', models.BooleanField(default=False)), ('d', models.BooleanField(default=False)), ('e', models.BooleanField(default=False)), ('f', models.BooleanField(default=False)), ('marks', models.FloatField( default=0, validators=[django.core.validators.MinValueValidator(0) ])), ('submission_date', models.DateTimeField(auto_now=True, null=True)), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.MultipleChoiceQuestion')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_multiple_choice_submissions', }, ), migrations.CreateModel( name='PeerReview', fields=[ ('review_id', models.AutoField(max_length=11, primary_key=True, serialize=False)), ('marks', models.PositiveSmallIntegerField( choices=[(0, '0 Star'), (1, '1 Star'), (2, '2 Stars'), (3, '3 Stars'), (4, '4 Stars'), (5, '5 Stars')], default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(5) ])), ('text', models.TextField(blank=True, null=True)), ('date', models.DateTimeField(auto_now=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'at_peer_reviews', }, ), migrations.CreateModel( name='Policy', fields=[ ('policy_id', models.AutoField(primary_key=True, serialize=False)), ('file', cloudinary.models.CloudinaryField( max_length=255, null=True, verbose_name='policyfiles')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ], options={ 'db_table': 'at_policys', }, ), migrations.CreateModel( name='Quick_Overview', fields=[ ('quickoverview_id', models.AutoField(primary_key=True, serialize=False)), ('description', models.TextField(default='', max_length=60, null=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='quickoverview', to='registrar.Course')), ], options={ 'db_table': 'at_quickoverview', }, ), migrations.CreateModel( name='Quiz', fields=[ ('quiz_id', models.AutoField(primary_key=True, serialize=False)), ('quiz_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(0) ])), ('title', models.CharField(max_length=31, null=True)), ('description', models.TextField(null=True)), ('start_date', models.DateField(null=True)), ('due_date', models.DateField(null=True)), ('worth', models.PositiveSmallIntegerField( choices=[(0, '0 %'), (10, '10 %'), (15, '15 %'), (20, '20 %'), (25, '25 %'), (30, '30 %'), (35, '35 %'), (40, '40 %'), (45, '45 %'), (50, '50 %'), (55, '55 %'), (60, '60 %'), (65, '65 %'), (70, '70 %'), (75, '75 %'), (80, '80 %'), (85, '85 %'), (90, '90 %'), (95, '95 %'), (100, '100 %')], default=0, validators=[ django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100) ])), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ], options={ 'db_table': 'at_quizzes', }, ), migrations.CreateModel( name='QuizSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('percent', models.FloatField(default=0)), ('earned_marks', models.FloatField(default=0)), ('total_marks', models.PositiveSmallIntegerField(default=0)), ('submission_date', models.DateField(auto_now=True, null=True)), ('is_finished', models.BooleanField(default=False)), ('quiz', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Quiz')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_quiz_submissions', }, ), migrations.CreateModel( name='ResponseQuestion', fields=[ ('question_id', models.AutoField(primary_key=True, serialize=False)), ('question_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(default='', max_length=31)), ('description', models.TextField(default='')), ('answer', models.TextField(default='')), ('marks', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('assignment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Assignment')), ('exam', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Exam')), ('quiz', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Quiz')), ], options={ 'db_table': 'at_response_questions', }, ), migrations.CreateModel( name='ResponseSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('answer', models.TextField(default='')), ('marks', models.FloatField( default=0, validators=[django.core.validators.MinValueValidator(0) ])), ('submission_date', models.DateTimeField(auto_now=True, null=True)), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.ResponseQuestion')), ('reviews', models.ManyToManyField(to='registrar.PeerReview')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_response_submissions', }, ), migrations.CreateModel( name='Syllabus', fields=[ ('syllabus_id', models.AutoField(primary_key=True, serialize=False)), ('file', cloudinary.models.CloudinaryField( max_length=255, null=True, verbose_name='syllabusfiles')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.Course')), ], options={ 'db_table': 'at_syllabus', }, ), migrations.CreateModel( name='TrueFalseQuestion', fields=[ ('question_id', models.AutoField(primary_key=True, serialize=False)), ('question_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(default='', max_length=31)), ('description', models.TextField(default='')), ('true_choice', models.CharField(max_length=127, null=True)), ('false_choice', models.CharField(max_length=127, null=True)), ('answer', models.BooleanField(default=False)), ('marks', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('assignment', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Assignment')), ('exam', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Exam')), ('quiz', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Quiz')), ], options={ 'db_table': 'at_true_false_questions', }, ), migrations.CreateModel( name='TrueFalseSubmission', fields=[ ('submission_id', models.AutoField(primary_key=True, serialize=False)), ('answer', models.BooleanField(default=False)), ('submission_date', models.DateTimeField(auto_now=True, null=True)), ('marks', models.FloatField( default=0, validators=[django.core.validators.MinValueValidator(0) ])), ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='registrar.TrueFalseQuestion')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Student')), ], options={ 'db_table': 'at_true_false_submissions', }, ), migrations.CreateModel( name='Unit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unit_number', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('unit_title', models.CharField(max_length=191)), ('unit_description', models.TextField()), ('module', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='units', to='registrar.Module')), ], options={ 'db_table': 'at_units', }, ), migrations.AddField( model_name='multiplechoicequestion', name='quiz', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Quiz'), ), migrations.AddField( model_name='essaysubmission', name='reviews', field=models.ManyToManyField(to='registrar.PeerReview'), ), migrations.AddField( model_name='essaysubmission', name='student', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='account.Student'), ), migrations.AddField( model_name='essayquestion', name='exam', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Exam'), ), migrations.AddField( model_name='essayquestion', name='quiz', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='registrar.Quiz'), ), migrations.AddField( model_name='assignment', name='course', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='registrar.Course'), ), migrations.AddField( model_name='announcement', name='course', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='registrar.Course'), ), ]
class Migration(migrations.Migration): dependencies = [ ('fullstack', '0001_initial'), ] operations = [ migrations.CreateModel( name='Turf', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('turf_name', models.CharField(max_length=25)), ('turf_location', models.CharField(max_length=25)), ('price', models.DecimalField(decimal_places=2, max_digits=2)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Tournament', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tournament_name', models.CharField(max_length=30)), ('tournament_prize', models.IntegerField()), ('tournament_poster', cloudinary.models.CloudinaryField( max_length=255, verbose_name='tournament_poster')), ('tournament_date', models.DateField()), ('turf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fullstack.Turf')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Schedule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('time_slot_one', models.TimeField()), ('time_slot_two', models.TimeField()), ('time_slot_three', models.TimeField()), ('day', models.CharField(choices=[('MON', 'MONDAY'), ('TUE', 'TUESDAY'), ('WED', 'WEDNESDAY'), ('THUR', 'THURSDAY'), ('FRI', 'FRIDAY')], max_length=4)), ('turf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fullstack.Turf')), ], ), migrations.CreateModel( name='Booking', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('players', models.IntegerField()), ('time_booked', models.DateTimeField()), ('status', models.BooleanField()), ('turf', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fullstack.Turf')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.CreateModel( name='CartItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cart_id', models.CharField(max_length=50)), ('price', models.DecimalField(decimal_places=2, max_digits=7)), ('quantity', models.IntegerField()), ('date_added', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='LineItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('price', models.DecimalField(decimal_places=2, max_digits=7)), ('quantity', models.IntegerField()), ('date_added', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField(blank=True, max_length=50, null=True)), ('email', models.TextField(blank=True, max_length=50, null=True)), ('date', models.DateTimeField(auto_now_add=True)), ('paid', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=191)), ('price', models.DecimalField(decimal_places=2, max_digits=7)), ('slug', models.SlugField()), ('description', models.TextField()), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('Validator_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('Validator_name', models.CharField(max_length=191)), ('Course_module_file', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='file')), ('duration', models.CharField(max_length=191)), ('Delivery', models.CharField(blank=True, max_length=191, null=True)), ], ), migrations.CreateModel( name='ShortCourse', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=191)), ('sub_title', models.CharField(max_length=127)), ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)), ('slug', models.SlugField()), ('image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('Validator_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('Validator_name', models.CharField(blank=True, max_length=191, null=True)), ('Course_module_file', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='file')), ('duration', models.CharField(max_length=191)), ('category', models.CharField(choices=[('leadership', 'leadership'), ('SDGs', 'SDGs')], default='General Education', max_length=127)), ('description', models.TextField(null=True)), ('start_date', models.DateField(null=True)), ('finish_date', models.DateField(null=True)), ('is_official', models.BooleanField(default=False)), ('status', models.PositiveSmallIntegerField(default=0)), ('students', models.ManyToManyField(to='account.Student')), ('teacher', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Teacher')), ], ), migrations.CreateModel( name='ShortCourseLecture', fields=[ ('lecture_id', models.AutoField(primary_key=True, serialize=False)), ('lecture_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('week_num', models.PositiveSmallIntegerField( default=1, validators=[django.core.validators.MinValueValidator(1) ])), ('title', models.CharField(default='', max_length=63, null=True)), ('description', models.TextField(default='', null=True)), ('youtube_url', models.URLField(blank=True, null=True)), ('vimeo_url', models.URLField(blank=True, null=True)), ('bliptv_url', models.URLField(blank=True, null=True)), ('preferred_service', models.CharField(choices=[('1', 'YouTube'), ('2', 'Vimeo')], default='1', max_length=1)), ('shortcourse', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shortcourselectures', to='ecommerce_app.ShortCourse')), ], ), migrations.CreateModel( name='ShortCourseModules', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Module_name', models.CharField(max_length=80)), ('Module_duration', models.CharField(max_length=191)), ('module_image', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='image')), ('module_file', cloudinary.models.CloudinaryField(blank=True, max_length=255, null=True, verbose_name='file')), ('module_description', models.TextField()), ('ShortCourse', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='ecommerce_app.ShortCourse')), ], ), migrations.AddField( model_name='lineitem', name='order', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ecommerce_app.Order'), ), migrations.AddField( model_name='lineitem', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ecommerce_app.Product'), ), migrations.AddField( model_name='cartitem', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='ecommerce_app.Product'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tags', models.CharField(max_length=100)), ], ), 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=40, unique=True)), ('first_name', models.CharField(blank=True, max_length=30)), ('last_name', models.CharField(blank=True, max_length=30)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('date_joined', models.DateTimeField(default=django.utils.timezone.now)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('profile_picture', cloudinary.models.CloudinaryField(blank=True, max_length=255, verbose_name='picture')), ('bio', models.CharField(blank=True, max_length=100)), ('contacts', models.CharField(blank=True, max_length=30)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='InterventionRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('description', models.TextField(blank=True, null=True)), ('time_of_creation', models.DateTimeField(auto_now_add=True)), ('time_last_edit', models.DateTimeField(auto_now=True)), ('status', models.CharField(blank=True, choices=[('Under Investigation', 'Under Investigation'), ('rejected', 'rejected'), ('resolved', 'resolved')], max_length=20, null=True)), ('location', models.CharField(blank=True, max_length=50)), ('image', models.ImageField(blank=True, storage=cloudinary_storage.storage. MediaCloudinaryStorage(), upload_to='images/interventionimages/')), ('videos', models.FileField( blank=True, storage=cloudinary_storage.storage. VideoMediaCloudinaryStorage(), upload_to='videos/', validators=[cloudinary_storage.validators.validate_video ])), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Flag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('description', models.TextField()), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now_add=True)), ('latitude', models.DecimalField(decimal_places=6, default='', max_digits=9)), ('longitude', models.DecimalField(decimal_places=6, default='', max_digits=9)), ('image', models.ImageField(blank=True, storage=cloudinary_storage.storage. MediaCloudinaryStorage(), upload_to='images/flagimages/')), ('videos', models.FileField( blank=True, storage=cloudinary_storage.storage. VideoMediaCloudinaryStorage(), upload_to='videos/', validators=[cloudinary_storage.validators.validate_video ])), ('tags', models.ManyToManyField(to='IReporter.Tag')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Flags', }, ), ]