Add first alerts.
[redakcja.git] / src / alerts / migrations / 0001_initial.py
diff --git a/src/alerts/migrations/0001_initial.py b/src/alerts/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..2e1230c
--- /dev/null
@@ -0,0 +1,24 @@
+# Generated by Django 3.2.12 on 2022-05-23 11:14
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    initial = True
+
+    dependencies = [
+        ('documents', '0008_book_legimi_id'),
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Alert',
+            fields=[
+                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('tag', models.CharField(max_length=32)),
+                ('book', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='documents.book')),
+            ],
+        ),
+    ]