1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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,
},
),
]
|