# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-03-20 08:34
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import parler.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AuthenticationSource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('auth_id', models.CharField(max_length=128)),
                ('icon_url', models.CharField(blank=True, max_length=2048, null=True)),
            ],
            options={
                'abstract': False,
            },
            bases=(parler.models.TranslatableModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='AuthenticationSourceTranslation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')),
                ('title', models.CharField(max_length=2048)),
                ('master', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='mpass.AuthenticationSource')),
            ],
            options={
                'managed': True,
                'db_table': 'mpass_authenticationsource_translation',
                'db_tablespace': '',
                'default_permissions': (),
                'verbose_name': 'authentication source Translation',
            },
        ),
        migrations.CreateModel(
            name='AuthenticationTag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('modified_at', models.DateTimeField(auto_now=True)),
                ('tag_id', models.CharField(max_length=128)),
            ],
            options={
                'abstract': False,
            },
            bases=(parler.models.TranslatableModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='AuthenticationTagTranslation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')),
                ('title', models.CharField(max_length=2048)),
                ('master', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='mpass.AuthenticationTag')),
            ],
            options={
                'managed': True,
                'db_table': 'mpass_authenticationtag_translation',
                'db_tablespace': '',
                'default_permissions': (),
                'verbose_name': 'authentication tag Translation',
            },
        ),
        migrations.AddField(
            model_name='authenticationsource',
            name='tags',
            field=models.ManyToManyField(blank=True, to='mpass.AuthenticationTag'),
        ),
        migrations.AlterUniqueTogether(
            name='authenticationtagtranslation',
            unique_together=set([('language_code', 'master')]),
        ),
        migrations.AlterUniqueTogether(
            name='authenticationsourcetranslation',
            unique_together=set([('language_code', 'master')]),
        ),
    ]

[((3452, 3516), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'blank': '(True)', 'to': '"""mpass.AuthenticationTag"""'}), "(blank=True, to='mpass.AuthenticationTag')\n", (3474, 3516), False, 'from django.db import migrations, models\n'), ((436, 529), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (452, 529), False, 'from django.db import migrations, models\n'), ((559, 598), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (579, 598), False, 'from django.db import migrations, models\n'), ((633, 668), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (653, 668), False, 'from django.db import migrations, models\n'), ((699, 731), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(128)'}), '(max_length=128)\n', (715, 731), False, 'from django.db import migrations, models\n'), ((763, 819), 'django.db.models.CharField', 'models.CharField', ([], {'blank': '(True)', 'max_length': '(2048)', 'null': '(True)'}), '(blank=True, max_length=2048, null=True)\n', (779, 819), False, 'from django.db import migrations, models\n'), ((1120, 1213), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1136, 1213), False, 'from django.db import migrations, models\n'), ((1246, 1317), 'django.db.models.CharField', 'models.CharField', ([], {'db_index': '(True)', 'max_length': '(15)', 'verbose_name': '"""Language"""'}), "(db_index=True, max_length=15, verbose_name='Language')\n", (1262, 1317), False, 'from django.db import migrations, models\n'), ((1346, 1379), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(2048)'}), '(max_length=2048)\n', (1362, 1379), False, 'from django.db import migrations, models\n'), ((1409, 1570), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'editable': '(False)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""translations"""', 'to': '"""mpass.AuthenticationSource"""'}), "(editable=False, null=True, on_delete=django.db.models.\n    deletion.CASCADE, related_name='translations', to=\n    'mpass.AuthenticationSource')\n", (1426, 1570), False, 'from django.db import migrations, models\n'), ((1992, 2085), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (2008, 2085), False, 'from django.db import migrations, models\n'), ((2115, 2154), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (2135, 2154), False, 'from django.db import migrations, models\n'), ((2189, 2224), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now': '(True)'}), '(auto_now=True)\n', (2209, 2224), False, 'from django.db import migrations, models\n'), ((2254, 2286), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(128)'}), '(max_length=128)\n', (2270, 2286), False, 'from django.db import migrations, models\n'), ((2584, 2677), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (2600, 2677), False, 'from django.db import migrations, models\n'), ((2710, 2781), 'django.db.models.CharField', 'models.CharField', ([], {'db_index': '(True)', 'max_length': '(15)', 'verbose_name': '"""Language"""'}), "(db_index=True, max_length=15, verbose_name='Language')\n", (2726, 2781), False, 'from django.db import migrations, models\n'), ((2810, 2843), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(2048)'}), '(max_length=2048)\n', (2826, 2843), False, 'from django.db import migrations, models\n'), ((2873, 3031), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'editable': '(False)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""translations"""', 'to': '"""mpass.AuthenticationTag"""'}), "(editable=False, null=True, on_delete=django.db.models.\n    deletion.CASCADE, related_name='translations', to='mpass.AuthenticationTag'\n    )\n", (2890, 3031), False, 'from django.db import migrations, models\n')]