example-of-crud-in-django-w.../app/library/migrations/0001_initial.py
Andros Fenollosa 01f86a6b51 Update field
2021-07-15 16:24:20 +02:00

32 lines
986 B
Python

# Generated by Django 3.2.5 on 2021-07-15 14:23
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')),
('title', models.CharField(max_length=255)),
('country', models.CharField(max_length=255)),
('year', models.IntegerField(max_length=5)),
('author', models.CharField(max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'verbose_name': 'Book',
'verbose_name_plural': 'Books',
'ordering': ('created_at',),
},
),
]