# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='DynamicContent',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('identifier', models.CharField(max_length=256, verbose_name=b'Unique identifier')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='DynamicContentTranslation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('content', models.TextField(verbose_name='Content')),
                ('language_code', models.CharField(max_length=15, db_index=True)),
                ('master', models.ForeignKey(related_name='translations', editable=False, to='dynamic_content.DynamicContent', null=True)),
            ],
            options={
                'abstract': False,
                'db_table': 'dynamic_content_dynamiccontent_translation',
            },
            bases=(models.Model,),
        ),
        migrations.AlterUniqueTogether(
            name='dynamiccontenttranslation',
            unique_together=set([('language_code', 'master')]),
        ),
    ]
