text: # Generated by Django 3.0 on 2020-09-07 06:51
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import uuid
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Item',
              fields=[
                  ('id', models.AutoField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                  ('title', models.CharField(max_length=255, verbose_name='Item title')),
                  ('price', models.FloatField(verbose_name='Item price')),
              ],
          ),
          migrations.CreateModel(
              name='OrderItem',
              fields=[
                  ('id', models.AutoField(editable=False, primary_key=True, serialize=False)),
                  ('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Item')),
              ],
          ),
          migrations.CreateModel(
              name='Order',
              fields=[
                  ('id', models.AutoField(default=uuid.uuid5, editable=False, primary_key=True, serialize=False)),
                  ('ordered_date', models.DateTimeField(auto_now_add=True)),
                  ('ordered', models.BooleanField(default=False)),
                  ('items', models.ManyToManyField(to='core.OrderItem')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
      ]
  