# Generated by Django 3.0.3 on 2020-02-24 15:22

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('bot', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CartItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('price', models.PositiveIntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=96)),
                ('available', models.BooleanField(default=True)),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subcategory', to='product.Category')),
            ],
            options={
                'verbose_name_plural': 'categories',
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=96, unique=True)),
                ('price', models.PositiveIntegerField()),
                ('available', models.BooleanField(default=True)),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(choices=[('New', 'New'), ('Processing', 'Processing'), ('Completed', 'Completed'), ('Canceled', 'Canceled')], default='New', max_length=10)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('cart', models.ManyToManyField(to='product.CartItem')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='orders', to='bot.TelegramUser')),
            ],
        ),
        migrations.AddField(
            model_name='cartitem',
            name='product',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.Product'),
        ),
        migrations.AddField(
            model_name='cartitem',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cart', to='bot.TelegramUser'),
        ),
    ]

d02343574459cb3975a1bbe51efd4b55fbc15039
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('bot', '0001_initial')]
    operations = [migrations.CreateModel(name='CartItem', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('quantity', models.
        PositiveIntegerField(default=1)), ('price', models.
        PositiveIntegerField())]), migrations.CreateModel(name='Category',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=96)), ('available', models.BooleanField(default=True)),
        ('parent', models.ForeignKey(blank=True, null=True, on_delete=
        django.db.models.deletion.CASCADE, related_name='subcategory', to=
        'product.Category'))], options={'verbose_name_plural': 'categories'
        }), migrations.CreateModel(name='Product', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=96,
        unique=True)), ('price', models.PositiveIntegerField()), (
        'available', models.BooleanField(default=True)), ('category',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'product.Category'))]), migrations.CreateModel(name='Order', fields
        =[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('status', models.CharField(
        choices=[('New', 'New'), ('Processing', 'Processing'), ('Completed',
        'Completed'), ('Canceled', 'Canceled')], default='New', max_length=
        10)), ('created', models.DateTimeField(auto_now_add=True)), ('cart',
        models.ManyToManyField(to='product.CartItem')), ('user', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='orders', to='bot.TelegramUser'))]), migrations.
        AddField(model_name='cartitem', name='product', field=models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'product.Product')), migrations.AddField(model_name='cartitem',
        name='user', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='cart', to='bot.TelegramUser'))]

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = [('bot', '0001_initial')]
    operations = [migrations.CreateModel(name='CartItem', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('quantity', models.
        PositiveIntegerField(default=1)), ('price', models.
        PositiveIntegerField())]), migrations.CreateModel(name='Category',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=96)), ('available', models.BooleanField(default=True)),
        ('parent', models.ForeignKey(blank=True, null=True, on_delete=
        django.db.models.deletion.CASCADE, related_name='subcategory', to=
        'product.Category'))], options={'verbose_name_plural': 'categories'
        }), migrations.CreateModel(name='Product', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('name', models.CharField(max_length=96,
        unique=True)), ('price', models.PositiveIntegerField()), (
        'available', models.BooleanField(default=True)), ('category',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'product.Category'))]), migrations.CreateModel(name='Order', fields
        =[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('status', models.CharField(
        choices=[('New', 'New'), ('Processing', 'Processing'), ('Completed',
        'Completed'), ('Canceled', 'Canceled')], default='New', max_length=
        10)), ('created', models.DateTimeField(auto_now_add=True)), ('cart',
        models.ManyToManyField(to='product.CartItem')), ('user', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='orders', to='bot.TelegramUser'))]), migrations.
        AddField(model_name='cartitem', name='product', field=models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'product.Product')), migrations.AddField(model_name='cartitem',
        name='user', field=models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='cart', to='bot.TelegramUser'))]

# Generated by Django 3.0.3 on 2020-02-24 15:22

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('bot', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CartItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('price', models.PositiveIntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=96)),
                ('available', models.BooleanField(default=True)),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subcategory', to='product.Category')),
            ],
            options={
                'verbose_name_plural': 'categories',
            },
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=96, unique=True)),
                ('price', models.PositiveIntegerField()),
                ('available', models.BooleanField(default=True)),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(choices=[('New', 'New'), ('Processing', 'Processing'), ('Completed', 'Completed'), ('Canceled', 'Canceled')], default='New', max_length=10)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('cart', models.ManyToManyField(to='product.CartItem')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='orders', to='bot.TelegramUser')),
            ],
        ),
        migrations.AddField(
            model_name='cartitem',
            name='product',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.Product'),
        ),
        migrations.AddField(
            model_name='cartitem',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cart', to='bot.TelegramUser'),
        ),
    ]
