text: # Generated by Django 3.2.4 on 2021-06-11 16:20
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import orders.models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
          ('carts', '0003_auto_20210611_1320'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Order',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('status', models.CharField(choices=[(orders.models.OrderStatus['CREATED'], 'CREATED'), (orders.models.OrderStatus['PAYED'], 'PAYED'), (orders.models.OrderStatus['COMPLETED'], 'COMPLETED'), (orders.models.OrderStatus['CANCELED'], 'CANCELED')], default=orders.models.OrderStatus['CREATED'], max_length=50)),
                  ('shipping_total', models.DecimalField(decimal_places=2, default=5, max_digits=16)),
                  ('total', models.DecimalField(decimal_places=2, default=0, max_digits=16)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('cart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='carts.cart')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  