class Migration(migrations.Migration): initial = True dependencies = [ ('Category', '0001_initial'), ] operations = [ migrations.CreateModel( name='ProductModel', fields=[ ('id', models.CharField(max_length=8, primary_key=True, serialize=False)), ('name', models.CharField(max_length=80)), ('price', models.DecimalField(decimal_places=2, max_digits=80)), ('quantity', models.IntegerField()), ('description', models.CharField(max_length=500)), ('buyCount', models.IntegerField(default=0)), ('image', models.ImageField( upload_to=Products.models.get_image_filename, verbose_name='image')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Category.CategoryModel')), ], options={ 'ordering': ['name'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('Home', '0004_auto_20181222_1029'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=100)), ('description', models.TextField(blank=True)), ('price', models.DecimalField(decimal_places=2, default='99.99', max_digits=10)), ('gender', models.CharField(blank=True, choices=[('M', 'Male'), ('F', 'Female')], max_length=1, null=True)), ('category', models.CharField(blank=True, choices=[('ethnic', 'Erhnic'), ('kids', 'Kids'), ('t-shirts', 'T-shirts'), ('winter-wears', 'Winter-wears'), ('casual', 'Casual'), ('jumpsuits', 'Jumpsuits'), ('denim', 'Denim'), ('sports', 'Sports'), ('western', 'Western'), ('formal', 'Formal'), ('traditional', 'TRADITIONAL')], max_length=17, null=True)), ('occasion', models.CharField(blank=True, choices=[('interview', 'Interview'), ('gym', 'Gym'), ('outings', 'Outings'), ('everyday', 'Everyday'), ('weddings', 'Weddings'), ('sangeet', 'Sangeet'), ('party', 'Party')], max_length=9)), ('available', models.BooleanField(default=True)), ('stock', models.PositiveIntegerField()), ('featured', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now=True)), ('sold', models.BooleanField(default=False)), ('image1', models.ImageField(upload_to=Products.models.upload_image_path)), ('image2', models.ImageField(blank=True, null=True, upload_to=Products.models.upload_image_path)), ('image3', models.ImageField(blank=True, null=True, upload_to=Products.models.upload_image_path)), ('image4', models.ImageField(blank=True, null=True, upload_to=Products.models.upload_image_path)), ('img', models.ImageField(blank=True, upload_to=Products.models.upload_image_path)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='Home.Profile')), ], options={ 'db_table': 'Product', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('Home', '0001_initial'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(db_index=True, max_length=100)), ('description', models.TextField(blank=True)), ('product_for', models.CharField(choices=[('sell', 'Sell'), ('rent', 'Rent')], max_length=4)), ('slug', models.SlugField(blank=True, unique=True)), ('type', models.CharField(choices=[('cloths', 'Cloths'), ('accessories', 'Accessories')], max_length=11)), ('price', models.DecimalField(decimal_places=2, default='99.99', max_digits=10)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1)), ('condition', models.CharField(choices=[('used', 'Used'), ('new', 'New')], max_length=4)), ('category', models.CharField(choices=[('traditional', 'Traditional'), ('formal', 'Formal'), ('casual', 'Casual'), ('ethnic', 'Ethnic'), ('sports', 'Sports'), ('western', 'Western'), ('t-shirts', 'T-shirts'), ('denim', 'Denim'), ('kids', 'Kids'), ('winter-wears', 'Winter-wear'), ('jumpsuits', 'Jumpsuits')], max_length=17)), ('occasion', models.CharField(choices=[('weddings', 'Weddings'), ('sangeet', 'Sangeet'), ('party', 'Party'), ('everyday', 'Everyday'), ('interview', 'Interview'), ('gym', 'Gym'), ('outings', 'Outings')], max_length=9)), ('featured', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now=True)), ('sold', models.BooleanField(default=False)), ('image1', models.ImageField( upload_to=Products.models.upload_image_path)), ('image2', models.ImageField( blank=True, null=True, upload_to=Products.models.upload_image_path)), ('image3', models.ImageField( blank=True, null=True, upload_to=Products.models.upload_image_path)), ('image4', models.ImageField( blank=True, null=True, upload_to=Products.models.upload_image_path)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='Home.Profile')), ], options={ 'db_table': 'Product', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('Products', '0004_productimage'), ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('slug', models.SlugField(unique=True)), ('description', models.TextField(blank=True, null=True)), ('active', models.BooleanField(default=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='ProductFeatured', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=Products.models.image_upload_to_featured)), ('title', models.CharField(blank=True, max_length=120, null=True)), ('text', models.CharField(blank=True, max_length=220, null=True)), ('text_right', models.BooleanField(default=False)), ('show_price', models.BooleanField(default=False)), ('active', models.BooleanField(default=True)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Products.Product')), ], ), migrations.AlterField( model_name='productimage', name='image', field=models.ImageField(upload_to=''), ), migrations.AddField( model_name='product', name='categories', field=models.ManyToManyField(blank=True, to='Products.Category'), ), migrations.AddField( model_name='product', name='default', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='default_category', to='Products.Category'), ), ]
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')), ('title', models.CharField(max_length=120, unique=True)), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('description', models.TextField(blank=True, null=True)), ('active', models.BooleanField(default=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('description', models.TextField(blank=True, null=True)), ('price', models.DecimalField(decimal_places=2, max_digits=20)), ('default_image', models.ImageField( blank=True, null=True, upload_to=Products.models.image_upload_to_prod)), ('active', models.BooleanField(default=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('categories', models.ManyToManyField(blank=True, to='Products.Category')), ('default_category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='default_category', to='Products.Category')), ], ), migrations.CreateModel( name='ProductFeatured', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=120, null=True)), ('text', models.CharField(blank=True, max_length=220, null=True)), ('active', models.BooleanField(default=True)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Products.Product')), ], ), migrations.CreateModel( name='Variation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('price', models.DecimalField(decimal_places=2, max_digits=20)), ('sale_price', models.DecimalField(blank=True, decimal_places=2, max_digits=20, null=True)), ('color', models.CharField(blank=True, default='All', max_length=120, null=True)), ('currency', models.CharField(blank=True, default='Ksh', max_length=120, null=True)), ('inventory', models.IntegerField(blank=True, null=True)), ('image', models.ImageField(blank=True, null=True, upload_to=Products.models.upload_location)), ('active', models.BooleanField(default=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Products.Product')), ], ), ]