# Generated by Django 2.0.1 on 2018-03-10 04:53

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=50)),
                ('last_name', models.CharField(max_length=50)),
                ('phone_number', models.CharField(max_length=10)),
                ('address', models.CharField(max_length=250)),
                ('location', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='Expenditure',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.PositiveIntegerField()),
                ('description', models.CharField(max_length=50)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ('-created',),
            },
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
                ('paid_amount', models.PositiveIntegerField()),
                ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='orders', to='dashboard.Customer')),
            ],
            options={
                'ordering': ('-created',),
            },
        ),
        migrations.CreateModel(
            name='OrderItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('price', models.DecimalField(decimal_places=2, max_digits=10)),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='dashboard.Order')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='order_items', to='product.Product')),
            ],
        ),
    ]

3e78875acfdb5369e7ddf6a3a138847eb6427886
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('product', '0001_initial')]
    operations = [migrations.CreateModel(name='Customer', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('first_name', models.CharField(
        max_length=50)), ('last_name', models.CharField(max_length=50)), (
        'phone_number', models.CharField(max_length=10)), ('address',
        models.CharField(max_length=250)), ('location', models.CharField(
        max_length=20))]), migrations.CreateModel(name='Expenditure',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('amount', models.
        PositiveIntegerField()), ('description', models.CharField(
        max_length=50)), ('created', models.DateTimeField(auto_now_add=True
        )), ('updated', models.DateTimeField(auto_now=True))], options={
        'ordering': ('-created',)}), migrations.CreateModel(name='Order',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('created', models.
        DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField
        (auto_now=True)), ('paid_amount', models.PositiveIntegerField()), (
        'customer', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='orders', to='dashboard.Customer'))], options
        ={'ordering': ('-created',)}), migrations.CreateModel(name=
        'OrderItem', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('price',
        models.DecimalField(decimal_places=2, max_digits=10)), ('quantity',
        models.PositiveIntegerField(default=1)), ('order', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='items', to='dashboard.Order')), ('product', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='order_items', to='product.Product'))])]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = [('product', '0001_initial')]
    operations = [migrations.CreateModel(name='Customer', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('first_name', models.CharField(
        max_length=50)), ('last_name', models.CharField(max_length=50)), (
        'phone_number', models.CharField(max_length=10)), ('address',
        models.CharField(max_length=250)), ('location', models.CharField(
        max_length=20))]), migrations.CreateModel(name='Expenditure',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('amount', models.
        PositiveIntegerField()), ('description', models.CharField(
        max_length=50)), ('created', models.DateTimeField(auto_now_add=True
        )), ('updated', models.DateTimeField(auto_now=True))], options={
        'ordering': ('-created',)}), migrations.CreateModel(name='Order',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('created', models.
        DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField
        (auto_now=True)), ('paid_amount', models.PositiveIntegerField()), (
        'customer', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, related_name='orders', to='dashboard.Customer'))], options
        ={'ordering': ('-created',)}), migrations.CreateModel(name=
        'OrderItem', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('price',
        models.DecimalField(decimal_places=2, max_digits=10)), ('quantity',
        models.PositiveIntegerField(default=1)), ('order', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='items', to='dashboard.Order')), ('product', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='order_items', to='product.Product'))])]

# Generated by Django 2.0.1 on 2018-03-10 04:53

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


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=50)),
                ('last_name', models.CharField(max_length=50)),
                ('phone_number', models.CharField(max_length=10)),
                ('address', models.CharField(max_length=250)),
                ('location', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='Expenditure',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.PositiveIntegerField()),
                ('description', models.CharField(max_length=50)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ('-created',),
            },
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
                ('paid_amount', models.PositiveIntegerField()),
                ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='orders', to='dashboard.Customer')),
            ],
            options={
                'ordering': ('-created',),
            },
        ),
        migrations.CreateModel(
            name='OrderItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('price', models.DecimalField(decimal_places=2, max_digits=10)),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='items', to='dashboard.Order')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='order_items', to='product.Product')),
            ],
        ),
    ]
