text: # Generated by Django 3.2.5 on 2021-09-29 09:59
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('category', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Product',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('product_name', models.CharField(blank=True, max_length=50, unique=True)),
                  ('slug', models.SlugField(max_length=200, unique=True)),
                  ('description', models.TextField(blank=True)),
                  ('image', models.ImageField(upload_to='photos/products')),
                  ('price', models.DecimalField(decimal_places=2, max_digits=10)),
                  ('stock', models.IntegerField()),
                  ('is_available', models.BooleanField(default=True)),
                  ('date_created', models.DateTimeField(auto_now_add=True)),
                  ('date_modified', models.DateTimeField(auto_now=True)),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='category.category')),
              ],
          ),
      ]
  