aboutsummaryrefslogtreecommitdiff
path: root/apps/notes/migrations/0011_auto_20181221_1029.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/notes/migrations/0011_auto_20181221_1029.py')
-rw-r--r--apps/notes/migrations/0011_auto_20181221_1029.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/apps/notes/migrations/0011_auto_20181221_1029.py b/apps/notes/migrations/0011_auto_20181221_1029.py
new file mode 100644
index 0000000..7b88a62
--- /dev/null
+++ b/apps/notes/migrations/0011_auto_20181221_1029.py
@@ -0,0 +1,39 @@
+# Generated by Django 2.1.2 on 2018-12-21 16:29
+
+from django.conf import settings
+import django.contrib.postgres.fields.jsonb
+from django.db import migrations, models
+import django.db.models.deletion
+import uuid
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('notes', '0010_auto_20181204_2117'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Annotation',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('unique_id', models.UUIDField(default=uuid.uuid4, editable=False)),
+ ('date_created', models.DateTimeField(auto_now_add=True)),
+ ('date_updated', models.DateTimeField(auto_now=True)),
+ ('highlight_text', models.TextField(null=True)),
+ ('body_text', models.TextField(null=True)),
+ ('body_html', models.TextField(blank=True, null=True)),
+ ('body_qjson', django.contrib.postgres.fields.jsonb.JSONField(blank=True, null=True)),
+ ('is_public', models.BooleanField(default=False)),
+ ('note', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='notes.Note')),
+ ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ migrations.AddField(
+ model_name='luxtag',
+ name='owner',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
+ ),
+ ]