# -*- 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')]),
        ),
    ]

[(80, 'django.db.models.ManyToManyField', 'models.ManyToManyField', False, 'from django.db import migrations, models\n'), (21, 'django.db.models.AutoField', 'models.AutoField', False, 'from django.db import migrations, models\n'), (22, 'django.db.models.DateTimeField', 'models.DateTimeField', False, 'from django.db import migrations, models\n'), (23, 'django.db.models.DateTimeField', 'models.DateTimeField', False, 'from django.db import migrations, models\n'), (24, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (25, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (35, 'django.db.models.AutoField', 'models.AutoField', False, 'from django.db import migrations, models\n'), (36, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (37, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (38, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import migrations, models\n'), (51, 'django.db.models.AutoField', 'models.AutoField', False, 'from django.db import migrations, models\n'), (52, 'django.db.models.DateTimeField', 'models.DateTimeField', False, 'from django.db import migrations, models\n'), (53, 'django.db.models.DateTimeField', 'models.DateTimeField', False, 'from django.db import migrations, models\n'), (54, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (64, 'django.db.models.AutoField', 'models.AutoField', False, 'from django.db import migrations, models\n'), (65, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (66, 'django.db.models.CharField', 'models.CharField', False, 'from django.db import migrations, models\n'), (67, 'django.db.models.ForeignKey', 'models.ForeignKey', False, 'from django.db import migrations, models\n')]