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

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


class Migration(migrations.Migration):

    dependencies = [
        ('sync', '0002_auto_20150831_1334'),
        ('assessments', '0015_auto_20150907_1812'),
    ]

    operations = [
        migrations.CreateModel(
            name='LessonReference',
            fields=[
                ('id', django_extensions.db.fields.UUIDField(blank=True, serialize=False, primary_key=True, editable=False)),
                ('is_deleted', models.BooleanField(default=False)),
                ('update_locally', models.BooleanField(default=False)),
                ('external_id', models.CharField(max_length=255)),
                ('external_name', models.CharField(max_length=255)),
                ('first_update', models.ForeignKey(to='sync.Update', blank=True, null=True, related_name='assessments_lessonreference_by_first')),
                ('last_update', models.ForeignKey(to='sync.Update', blank=True, null=True, related_name='assessments_lessonreference_by_last')),
            ],
            options={
                'ordering': ('external_name',),
            },
        ),
        migrations.AddField(
            model_name='lesson',
            name='reference',
            field=models.ForeignKey(to='assessments.LessonReference', blank=True, null=True, related_name='lessons'),
        ),
    ]
