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

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


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('sync', '0001_initial'),
        ('trainings', '0017_add_versionable_base'),
    ]

    operations = [
        migrations.CreateModel(
            name='TrainingActivity',
            fields=[
                ('sort_order', models.IntegerField(db_index=True, blank=True)),
                ('id', django_extensions.db.fields.UUIDField(editable=False, primary_key=True, serialize=False, blank=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('is_assessing', models.BooleanField(verbose_name='assessing', default=False)),
                ('weight', models.PositiveIntegerField(default=1)),
                ('name', models.CharField(max_length=30, verbose_name='name')),
                ('description', models.TextField(blank=True)),
                ('first_update', models.ForeignKey(blank=True, to='sync.Update', null=True, related_name='trainingactivity_by_first')),
                ('last_update', models.ForeignKey(blank=True, to='sync.Update', null=True, related_name='trainingactivity_by_last')),
                ('original_version', models.ForeignKey(to='trainings.TrainingActivity', null=True, related_name='all_duplicates')),
                ('parent_version', models.ForeignKey(to='trainings.TrainingActivity', null=True, related_name='direct_duplicates')),
                ('polymorphic_ctype', models.ForeignKey(editable=False, to='contenttypes.ContentType', null=True, related_name='polymorphic_trainings.trainingactivity_set+')),
                ('training', models.ForeignKey(verbose_name='training', to='trainings.Training', related_name='activities')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]