# Generated by Django 3.0.5 on 2020-04-23 20:55

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')),
                ('title', models.CharField(max_length=50, unique=True, verbose_name='Category title')),
            ],
            options={
                'verbose_name_plural': 'Categories',
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, unique=True, verbose_name='Product title')),
                ('description', models.TextField(verbose_name='Product description')),
                ('quantity', models.IntegerField(verbose_name='Product quantity')),
                ('price', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='Product price')),
                ('is_run_out', models.BooleanField(default=False, verbose_name='Is the product run out of storage')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='stock.Category')),
            ],
        ),
    ]
