summaryrefslogtreecommitdiff
path: root/journal/api/migrations/0001_initial.py
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
committerMark Powers <mark@marks.kitchen>2024-07-14 15:30:27 -0500
commitad232020d57d2c77dfd5400dc4a8290b484c8ba2 (patch)
tree3e2121666986c67fe554a1e9046682b7370d412e /journal/api/migrations/0001_initial.py
Initial commitmain
Diffstat (limited to 'journal/api/migrations/0001_initial.py')
-rw-r--r--journal/api/migrations/0001_initial.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/journal/api/migrations/0001_initial.py b/journal/api/migrations/0001_initial.py
new file mode 100644
index 0000000..ad1f787
--- /dev/null
+++ b/journal/api/migrations/0001_initial.py
@@ -0,0 +1,39 @@
+# Generated by Django 5.0.4 on 2024-04-30 02:08
+
+import django.db.models.deletion
+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')),
+ ('author', models.CharField(max_length=1024)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Source',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('url', models.CharField(max_length=1024)),
+ ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='journal_api.author')),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Entry',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('created', models.DateTimeField()),
+ ('html_text', models.TextField()),
+ ('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='entries', to='journal_api.source')),
+ ],
+ ),
+ ]