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 = [ 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=60)), ('slug', models.SlugField()), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='children', to='Products.Category')), ], options={ 'verbose_name_plural': 'categories', 'ordering': ('name', ), }, ), migrations.CreateModel( name='Color', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('price', models.IntegerField(default=0)), ('count', models.IntegerField(default=0)), ('image', imagekit.models.fields.ProcessedImageField( blank=True, default=None, null=True, upload_to=Products.models.color_img_directory_path)), ], ), migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', imagekit.models.fields.ProcessedImageField( upload_to=Products.models.img_directory_path)), ], ), migrations.CreateModel( name='Option', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('price', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('person_name', models.CharField(max_length=50)), ('person_phone', models.CharField(max_length=12)), ('person_email', models.EmailField(blank=True, default=None, max_length=254, null=True)), ('person_pay', models.DecimalField(decimal_places=2, default=0, max_digits=8)), ('payment_amount', models.DecimalField(decimal_places=2, max_digits=8)), ('isPaid', models.BooleanField(default=False)), ('payment_method', models.CharField(blank=True, default=None, max_length=50, null=True)), ('person_payment_account', models.CharField(blank=True, default=None, max_length=100, null=True)), ('payment_datetime', models.CharField(blank=True, default=None, max_length=50, null=True)), ('payment_operation_id', models.CharField(blank=True, default=None, max_length=100, null=True)), ('isCompleted', models.BooleanField(default=False)), ('isProcessed', models.BooleanField(default=True)), ('goods', models.TextField()), ('datetime', models.DateTimeField(default=datetime.datetime.now)), ('person', models.ForeignKey( blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('isCompleted', '-id'), }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField(blank=True, default='', null=True)), ('link', models.URLField(blank=True, default=None, null=True)), ('price', models.IntegerField()), ('sale', models.IntegerField(blank=True, default=None, null=True)), ('count', models.IntegerField(blank=True, default=0, null=True)), ('deliveryDays', models.IntegerField(default=30)), ('bestOffer', models.BooleanField(default=False)), ('imagePreview', imagekit.models.fields.ProcessedImageField( upload_to=Products.models.preview_directory_path)), ('category', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='Products.Category')), ], ), migrations.AddField( model_name='option', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='options', to='Products.Product'), ), migrations.AddField( model_name='image', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='images', to='Products.Product'), ), migrations.AddField( model_name='color', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='colors', to='Products.Product'), ), migrations.AlterUniqueTogether( name='category', unique_together={('slug', 'parent')}, ), ]
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')), ], ), ]