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

from django.db import models, migrations
import django_extensions.db.fields
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        ('sync', '__first__'),
        ('trainings', '__first__'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='MetaPlan',
            fields=[
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('id', django_extensions.db.fields.UUIDField(primary_key=True, editable=False, serialize=False, blank=True)),
                ('title', models.CharField(max_length=100)),
                ('first_update', models.ForeignKey(related_name='metaplan_by_first', blank=True, to='sync.Update', null=True)),
                ('last_update', models.ForeignKey(related_name='metaplan_by_last', blank=True, to='sync.Update', null=True)),
                ('training_session', models.ForeignKey(to='trainings.TrainingSession')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='MetaPlanProposition',
            fields=[
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('id', django_extensions.db.fields.UUIDField(primary_key=True, editable=False, serialize=False, blank=True)),
                ('proposition', models.CharField(max_length=100)),
                ('proposition_type', models.PositiveIntegerField()),
                ('first_update', models.ForeignKey(related_name='metaplanproposition_by_first', blank=True, to='sync.Update', null=True)),
                ('last_update', models.ForeignKey(related_name='metaplanproposition_by_last', blank=True, to='sync.Update', null=True)),
                ('meta_plan', models.ForeignKey(to='metaplans.MetaPlan')),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
