]> git.parisson.com Git - pdfannotator.git/commitdiff
Initial migration
authortest test <yoanl@pilotsystems.net>
Tue, 1 Jun 2021 13:29:33 +0000 (15:29 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Tue, 1 Jun 2021 13:29:33 +0000 (15:29 +0200)
pdfannotator/migrations/0001_initial.py [new file with mode: 0644]

diff --git a/pdfannotator/migrations/0001_initial.py b/pdfannotator/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..b5db110
--- /dev/null
@@ -0,0 +1,43 @@
+# Generated by Django 3.2.3 on 2021-06-01 15:28
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    initial = True
+
+    dependencies = [
+    ]
+
+    operations = [
+        migrations.CreateModel(
+            name='Annotation',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('annotation_id', models.CharField(db_index=True, max_length=50)),
+                ('uuid', models.CharField(db_index=True, max_length=50)),
+                ('page', models.IntegerField()),
+                ('order', models.CharField(max_length=10)),
+                ('content', models.TextField()),
+            ],
+            options={
+                'verbose_name': 'Annotation',
+                'verbose_name_plural': 'Annotations',
+            },
+        ),
+        migrations.CreateModel(
+            name='AnnotationComment',
+            fields=[
+                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+                ('uuid', models.CharField(db_index=True, max_length=50)),
+                ('annotation_id', models.CharField(max_length=50)),
+                ('content', models.TextField()),
+                ('created', models.DateTimeField(auto_now_add=True)),
+            ],
+            options={
+                'verbose_name': 'AnnotationComment',
+                'verbose_name_plural': 'AnnotationComments',
+            },
+        ),
+    ]