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

from django.db import migrations, models
import openedx.core.djangoapps.xmodule_django.models


class Migration(migrations.Migration):

    dependencies = [
        ('course_groups', '0002_change_inline_default_cohort_value'),
    ]

    operations = [
        migrations.CreateModel(
            name='UnregisteredLearnerCohortAssignments',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('email', models.CharField(db_index=True, max_length=255, blank=True)),
                ('course_id', openedx.core.djangoapps.xmodule_django.models.CourseKeyField(max_length=255)),
                ('course_user_group', models.ForeignKey(to='course_groups.CourseUserGroup')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='unregisteredlearnercohortassignments',
            unique_together=set([('course_id', 'email')]),
        ),
    ]
