From 5ba41b04677561e9079ad59d52ea23ff03148d67 Mon Sep 17 00:00:00 2001 From: Arsen Date: Tue, 5 Nov 2024 23:29:10 +0200 Subject: [PATCH] add migration --- author/migrations/0001_initial.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 author/migrations/0001_initial.py diff --git a/author/migrations/0001_initial.py b/author/migrations/0001_initial.py new file mode 100644 index 0000000..5e9a87e --- /dev/null +++ b/author/migrations/0001_initial.py @@ -0,0 +1,25 @@ +# Generated by Django 4.1 on 2024-11-05 21:18 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Author', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('first_name', models.CharField(max_length=64)), + ('last_name', models.CharField(max_length=64)), + ('pseudonym', models.CharField(blank=True, max_length=64, null=True)), + ('age', models.IntegerField()), + ('retired', models.BooleanField()), + ], + ), + ]