From 127fd34cd97c2cd3dc9e7f0d5e255b80120e8d27 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sat, 22 Sep 2018 00:06:09 +0200 Subject: Add the `Tag` model. --- api/migrations/0007_tag.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 api/migrations/0007_tag.py (limited to 'api/migrations') diff --git a/api/migrations/0007_tag.py b/api/migrations/0007_tag.py new file mode 100644 index 00000000..fdb3b9cc --- /dev/null +++ b/api/migrations/0007_tag.py @@ -0,0 +1,23 @@ +# Generated by Django 2.1.1 on 2018-09-21 22:05 + +import api.models +import django.contrib.postgres.fields.jsonb +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0006_add_help_texts'), + ] + + operations = [ + migrations.CreateModel( + name='Tag', + fields=[ + ('title', models.CharField(help_text='The title of this tag, shown in searches and providing a quick overview over what this embed contains.', max_length=100, primary_key=True, serialize=False)), + ('embed', django.contrib.postgres.fields.jsonb.JSONField(help_text='The actual embed shown by this tag.')), + ], + bases=(api.models.ModelReprMixin, models.Model), + ), + ] -- cgit v1.2.3