text: # Generated by Django 2.0.6 on 2018-06-28 18:04
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  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=255, unique=True)),
                  ('slug', models.SlugField(max_length=255, unique=True)),
                  ('description', models.TextField(blank=True)),
                  ('image', models.ImageField(blank=True, upload_to='categories')),
              ],
              options={
                  'verbose_name': 'Category',
                  'verbose_name_plural': 'Categories',
                  'ordering': ('name',),
              },
          ),
          migrations.CreateModel(
              name='Product',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('manufacturer', models.CharField(max_length=255)),
                  ('name', models.CharField(max_length=255, unique=True)),
                  ('slug', models.SlugField(max_length=255, unique=True)),
                  ('description', models.TextField(blank=True)),
                  ('price', models.DecimalField(decimal_places=2, max_digits=12)),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('updated', models.DateTimeField(auto_now=True)),
                  ('stock', models.PositiveIntegerField()),
                  ('available', models.BooleanField(default=True)),
                  ('image', models.ImageField(blank=True, upload_to='product')),
                  ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.Category')),
              ],
              options={
                  'verbose_name': 'Product',
                  'verbose_name_plural': 'Products',
                  'ordering': ('name',),
              },
          ),
      ]
  