2021-07-14 16:19:03 +02:00
|
|
|
# Generated by Django 3.2.5 on 2021-07-14 14:16
|
2021-07-09 19:09:31 +02:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2021-07-14 16:19:03 +02:00
|
|
|
initial = True
|
|
|
|
|
2021-07-09 19:09:31 +02:00
|
|
|
dependencies = [
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-07-14 16:19:03 +02:00
|
|
|
name='Book',
|
2021-07-09 19:09:31 +02:00
|
|
|
fields=[
|
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('title', models.CharField(max_length=255)),
|
|
|
|
('genre', models.CharField(max_length=255)),
|
|
|
|
('year', models.CharField(max_length=4)),
|
|
|
|
('author', models.CharField(max_length=255)),
|
|
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
|
|
],
|
|
|
|
options={
|
2021-07-14 16:19:03 +02:00
|
|
|
'verbose_name': 'Book',
|
|
|
|
'verbose_name_plural': 'Books',
|
|
|
|
'ordering': ('created_at',),
|
2021-07-09 19:09:31 +02:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|