summaryrefslogtreecommitdiff
path: root/app/books/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/books/migrations/0001_initial.py')
-rw-r--r--app/books/migrations/0001_initial.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/books/migrations/0001_initial.py b/app/books/migrations/0001_initial.py
new file mode 100644
index 0000000..6257e40
--- /dev/null
+++ b/app/books/migrations/0001_initial.py
@@ -0,0 +1,38 @@
+# Generated by Django 3.2.6 on 2021-08-14 12:50
+
+import books.models
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Book',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('sort_order', models.IntegerField(blank=True, db_index=True)),
+ ('title', models.CharField(max_length=200)),
+ ('author_last_name', models.CharField(max_length=200)),
+ ('author_first_name', models.CharField(max_length=200)),
+ ('slug', models.CharField(max_length=50)),
+ ('isbn', models.CharField(blank=True, max_length=100, null=True)),
+ ('body_markdown', models.TextField(blank=True)),
+ ('body_html', models.TextField(blank=True, null=True)),
+ ('pages', models.CharField(blank=True, max_length=5, null=True)),
+ ('amazon_link', models.CharField(blank=True, max_length=400, null=True)),
+ ('bookshop_link', models.CharField(blank=True, max_length=400, null=True)),
+ ('thriftbooks_link', models.CharField(blank=True, max_length=400, null=True)),
+ ('image', models.FileField(blank=True, null=True, upload_to=books.models.get_upload_path)),
+ ],
+ options={
+ 'ordering': ['sort_order'],
+ 'abstract': False,
+ },
+ ),
+ ]