# Generated by Django 3.2.5 on 2021-07-27 16:12 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('fruit', '0006_product_details'), ] operations = [ migrations.AddField( model_name='product', name='n_unit', field=models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True), ), migrations.AddField( model_name='product', name='unit_name', field=models.CharField(max_length=200, null=True), ), migrations.CreateModel( name='ProductSKU', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('sku', models.CharField(max_length=200)), ('description', models.TextField(blank=True, null=True)), ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)), ('details', models.JSONField(blank=True, null=True)), ('n_unit', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)), ('unit_name', models.CharField(max_length=200, null=True)), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='productsku_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='productsku_modified', to=settings.AUTH_USER_MODEL)), ('product', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='fruit.product')), ], options={ 'abstract': False, }, ), ]