text: # Generated by Django 3.1.4 on 2020-12-10 21:06
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('products', '0003_auto_20201210_2106'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Order',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('order_number', models.CharField(editable=False, max_length=32)),
                  ('full_name', models.CharField(max_length=50)),
                  ('email', models.EmailField(max_length=254)),
                  ('phone_number', models.CharField(max_length=20)),
                  ('street_address1', models.CharField(max_length=80)),
                  ('street_address2', models.CharField(blank=True, max_length=80, null=True)),
                  ('city', models.CharField(max_length=40)),
                  ('state', models.CharField(blank=True, max_length=2, null=True)),
                  ('zipcode', models.CharField(blank=True, max_length=10, null=True)),
                  ('order_date', models.DateTimeField(auto_now_add=True)),
                  ('shipping_cost', models.DecimalField(decimal_places=2, default=0, max_digits=6)),
                  ('order_total', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
                  ('grand_total', models.DecimalField(decimal_places=2, default=0, max_digits=10)),
              ],
          ),
          migrations.CreateModel(
              name='OrderLineItem',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('quantity', models.IntegerField(default=0)),
                  ('lineitem_total', models.DecimalField(decimal_places=2, editable=False, max_digits=6)),
                  ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lineitems', to='checkout.order')),
                  ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='products.product')),
              ],
          ),
      ]
  