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

import django_extensions.db.fields
import mtp.apps.translation.model_fields
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('sync', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='TranslatableLanguage',
            fields=[
                ('id', django_extensions.db.fields.UUIDField(blank=True, primary_key=True, editable=False, serialize=False)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('language', mtp.apps.translation.model_fields.LanguageField(unique=True, max_length=3, choices=[('en', 'English'), ('fr', 'French'), ('de', 'German')], verbose_name='language', help_text='The registered language.')),
                ('enabled', models.BooleanField(default=True, help_text='The boolean to activate or desactivate this language.')),
                ('last_modified', models.DateTimeField(verbose_name='last modified', auto_now=True, help_text='The date/time when language has been added.')),
                ('first_update', models.ForeignKey(null=True, blank=True, related_name='translatablelanguage_by_first', to='sync.Update')),
                ('last_update', models.ForeignKey(null=True, blank=True, related_name='translatablelanguage_by_last', to='sync.Update')),
            ],
            options={
                'ordering': ['language'],
            },
        ),
        migrations.CreateModel(
            name='Translation',
            fields=[
                ('id', django_extensions.db.fields.UUIDField(blank=True, primary_key=True, editable=False, serialize=False)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('language', mtp.apps.translation.model_fields.LanguageField(max_length=3, choices=[('en', 'English'), ('fr', 'French'), ('de', 'German')], verbose_name='language', help_text='The translation language.')),
                ('domain', models.CharField(max_length=3, choices=[('ass', 'assessment'), ('int', 'interface'), ('sur', 'survey')], verbose_name='domain', help_text='The domain where translation takes place.')),
                ('progression', models.PositiveSmallIntegerField(default=0, blank=True, verbose_name='progression', help_text='The translation progression.')),
                ('last_modified', models.DateTimeField(verbose_name='last modified', auto_now=True, help_text='The date/time when translation has been added.')),
                ('first_update', models.ForeignKey(null=True, blank=True, related_name='translation_by_first', to='sync.Update')),
                ('last_update', models.ForeignKey(null=True, blank=True, related_name='translation_by_last', to='sync.Update')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='translation',
            unique_together=set([('language', 'domain')]),
        ),
    ]
