import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies: list = [] operations = [ migrations.CreateModel( name="Book", fields=[ ( "id", models.BigAutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("title", models.CharField(db_index=True, max_length=500)), ("author", models.CharField(db_index=True, max_length=300)), ("genre", models.CharField(db_index=True, max_length=100)), ("description", models.TextField(blank=True, default="")), ( "reading_status", models.CharField( choices=[ ("want_to_read", "Want to Read"), ("reading", "Reading"), ("finished", "Finished"), ("dnf", "Did Not Finish"), ], db_index=True, default="want_to_read", max_length=20, ), ), ("cover_url", models.URLField(blank=True, default="")), ("created_at", models.DateTimeField(auto_now_add=True)), ("updated_at", models.DateTimeField(auto_now=True)), ], options={ "ordering": ["title"], "indexes": [ models.Index( fields=["title", "author", "genre"], name="books_book_title_2cc25e_idx", ) ], }, ), ]