# Generated by Django 2.2.6 on 2020-01-19 12:25

from decimal import Decimal
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='BillingAddress',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('first_name', models.CharField(max_length=20)),
                ('last_name', models.CharField(max_length=20)),
                ('address', models.CharField(max_length=100)),
                ('city', models.CharField(max_length=20)),
                ('postal_code', models.CharField(max_length=20)),
                ('country', models.CharField(default='Poland', max_length=20)),
                ('email', models.EmailField(max_length=70)),
                ('phone_number', models.CharField(max_length=12)),
            ],
        ),
        migrations.CreateModel(
            name='Coupon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=20)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10, validators=[django.core.validators.MinValueValidator(Decimal('0.01'))])),
            ],
        ),
        migrations.CreateModel(
            name='ShippingAddress',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('first_name', models.CharField(max_length=20)),
                ('last_name', models.CharField(max_length=20)),
                ('address', models.CharField(max_length=100)),
                ('city', models.CharField(max_length=20)),
                ('postal_code', models.CharField(max_length=20)),
                ('country', models.CharField(default='Poland', max_length=20)),
                ('email', models.EmailField(max_length=70)),
                ('phone_number', models.CharField(max_length=12)),
            ],
        ),
        migrations.CreateModel(
            name='OrderItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('ordered', models.BooleanField(default=False)),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vero_fasion.Color')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ref_code', models.CharField(blank=True, max_length=100, null=True)),
                ('customer', models.CharField(max_length=100)),
                ('start_date', models.DateTimeField(auto_now_add=True)),
                ('ordered_date', models.DateTimeField()),
                ('ordered', models.BooleanField(default=False)),
                ('delivered', models.BooleanField(default=False)),
                ('billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.BillingAddress')),
                ('items', models.ManyToManyField(to='shopping_cart.OrderItem')),
                ('promotion', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.Coupon')),
                ('shipping_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.ShippingAddress')),
            ],
        ),
    ]

2842fcbd3473b545ec28c6c8ed94c315e9a20fda
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [('vero_fasion', '0001_initial')]
    operations = [migrations.CreateModel(name='BillingAddress', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('customer', models.CharField
        (max_length=100)), ('first_name', models.CharField(max_length=20)),
        ('last_name', models.CharField(max_length=20)), ('address', models.
        CharField(max_length=100)), ('city', models.CharField(max_length=20
        )), ('postal_code', models.CharField(max_length=20)), ('country',
        models.CharField(default='Poland', max_length=20)), ('email',
        models.EmailField(max_length=70)), ('phone_number', models.
        CharField(max_length=12))]), migrations.CreateModel(name='Coupon',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('code', models.CharField(
        max_length=20)), ('amount', models.DecimalField(decimal_places=2,
        max_digits=10, validators=[django.core.validators.MinValueValidator
        (Decimal('0.01'))]))]), migrations.CreateModel(name=
        'ShippingAddress', fields=[('id', models.AutoField(auto_created=
        True, primary_key=True, serialize=False, verbose_name='ID')), (
        'customer', models.CharField(max_length=100)), ('first_name',
        models.CharField(max_length=20)), ('last_name', models.CharField(
        max_length=20)), ('address', models.CharField(max_length=100)), (
        'city', models.CharField(max_length=20)), ('postal_code', models.
        CharField(max_length=20)), ('country', models.CharField(default=
        'Poland', max_length=20)), ('email', models.EmailField(max_length=
        70)), ('phone_number', models.CharField(max_length=12))]),
        migrations.CreateModel(name='OrderItem', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('customer', models.CharField(max_length=100)),
        ('ordered', models.BooleanField(default=False)), ('quantity',
        models.PositiveIntegerField(default=1)), ('item', models.ForeignKey
        (on_delete=django.db.models.deletion.CASCADE, to=
        'vero_fasion.Color'))]), migrations.CreateModel(name='Order',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('ref_code', models.CharField
        (blank=True, max_length=100, null=True)), ('customer', models.
        CharField(max_length=100)), ('start_date', models.DateTimeField(
        auto_now_add=True)), ('ordered_date', models.DateTimeField()), (
        'ordered', models.BooleanField(default=False)), ('delivered',
        models.BooleanField(default=False)), ('billing_address', models.
        ForeignKey(blank=True, null=True, on_delete=django.db.models.
        deletion.SET_NULL, to='shopping_cart.BillingAddress')), ('items',
        models.ManyToManyField(to='shopping_cart.OrderItem')), ('promotion',
        models.ForeignKey(blank=True, null=True, on_delete=django.db.models
        .deletion.SET_NULL, to='shopping_cart.Coupon')), (
        'shipping_address', models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.SET_NULL, to=
        'shopping_cart.ShippingAddress'))])]

from decimal import Decimal
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = [('vero_fasion', '0001_initial')]
    operations = [migrations.CreateModel(name='BillingAddress', fields=[(
        'id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('customer', models.CharField
        (max_length=100)), ('first_name', models.CharField(max_length=20)),
        ('last_name', models.CharField(max_length=20)), ('address', models.
        CharField(max_length=100)), ('city', models.CharField(max_length=20
        )), ('postal_code', models.CharField(max_length=20)), ('country',
        models.CharField(default='Poland', max_length=20)), ('email',
        models.EmailField(max_length=70)), ('phone_number', models.
        CharField(max_length=12))]), migrations.CreateModel(name='Coupon',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('code', models.CharField(
        max_length=20)), ('amount', models.DecimalField(decimal_places=2,
        max_digits=10, validators=[django.core.validators.MinValueValidator
        (Decimal('0.01'))]))]), migrations.CreateModel(name=
        'ShippingAddress', fields=[('id', models.AutoField(auto_created=
        True, primary_key=True, serialize=False, verbose_name='ID')), (
        'customer', models.CharField(max_length=100)), ('first_name',
        models.CharField(max_length=20)), ('last_name', models.CharField(
        max_length=20)), ('address', models.CharField(max_length=100)), (
        'city', models.CharField(max_length=20)), ('postal_code', models.
        CharField(max_length=20)), ('country', models.CharField(default=
        'Poland', max_length=20)), ('email', models.EmailField(max_length=
        70)), ('phone_number', models.CharField(max_length=12))]),
        migrations.CreateModel(name='OrderItem', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('customer', models.CharField(max_length=100)),
        ('ordered', models.BooleanField(default=False)), ('quantity',
        models.PositiveIntegerField(default=1)), ('item', models.ForeignKey
        (on_delete=django.db.models.deletion.CASCADE, to=
        'vero_fasion.Color'))]), migrations.CreateModel(name='Order',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('ref_code', models.CharField
        (blank=True, max_length=100, null=True)), ('customer', models.
        CharField(max_length=100)), ('start_date', models.DateTimeField(
        auto_now_add=True)), ('ordered_date', models.DateTimeField()), (
        'ordered', models.BooleanField(default=False)), ('delivered',
        models.BooleanField(default=False)), ('billing_address', models.
        ForeignKey(blank=True, null=True, on_delete=django.db.models.
        deletion.SET_NULL, to='shopping_cart.BillingAddress')), ('items',
        models.ManyToManyField(to='shopping_cart.OrderItem')), ('promotion',
        models.ForeignKey(blank=True, null=True, on_delete=django.db.models
        .deletion.SET_NULL, to='shopping_cart.Coupon')), (
        'shipping_address', models.ForeignKey(blank=True, null=True,
        on_delete=django.db.models.deletion.SET_NULL, to=
        'shopping_cart.ShippingAddress'))])]

# Generated by Django 2.2.6 on 2020-01-19 12:25

from decimal import Decimal
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='BillingAddress',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('first_name', models.CharField(max_length=20)),
                ('last_name', models.CharField(max_length=20)),
                ('address', models.CharField(max_length=100)),
                ('city', models.CharField(max_length=20)),
                ('postal_code', models.CharField(max_length=20)),
                ('country', models.CharField(default='Poland', max_length=20)),
                ('email', models.EmailField(max_length=70)),
                ('phone_number', models.CharField(max_length=12)),
            ],
        ),
        migrations.CreateModel(
            name='Coupon',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=20)),
                ('amount', models.DecimalField(decimal_places=2, max_digits=10, validators=[django.core.validators.MinValueValidator(Decimal('0.01'))])),
            ],
        ),
        migrations.CreateModel(
            name='ShippingAddress',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('first_name', models.CharField(max_length=20)),
                ('last_name', models.CharField(max_length=20)),
                ('address', models.CharField(max_length=100)),
                ('city', models.CharField(max_length=20)),
                ('postal_code', models.CharField(max_length=20)),
                ('country', models.CharField(default='Poland', max_length=20)),
                ('email', models.EmailField(max_length=70)),
                ('phone_number', models.CharField(max_length=12)),
            ],
        ),
        migrations.CreateModel(
            name='OrderItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('customer', models.CharField(max_length=100)),
                ('ordered', models.BooleanField(default=False)),
                ('quantity', models.PositiveIntegerField(default=1)),
                ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vero_fasion.Color')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ref_code', models.CharField(blank=True, max_length=100, null=True)),
                ('customer', models.CharField(max_length=100)),
                ('start_date', models.DateTimeField(auto_now_add=True)),
                ('ordered_date', models.DateTimeField()),
                ('ordered', models.BooleanField(default=False)),
                ('delivered', models.BooleanField(default=False)),
                ('billing_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.BillingAddress')),
                ('items', models.ManyToManyField(to='shopping_cart.OrderItem')),
                ('promotion', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.Coupon')),
                ('shipping_address', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='shopping_cart.ShippingAddress')),
            ],
        ),
    ]
