text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11.15 on 2019-11-29 21:26
  from __future__ import unicode_literals
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django_countries.fields
  import openedx.core.djangoapps.xmodule_django.models
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('course_overviews', '0001_initial'),
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='CourseAccessRole',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('org', models.CharField(blank=True, db_index=True, max_length=64)),
                  ('course_id', openedx.core.djangoapps.xmodule_django.models.CourseKeyField(blank=True, db_index=True, max_length=255)),
                  ('role', models.CharField(db_index=True, max_length=64)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='CourseEnrollment',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', models.DateTimeField(null=True)),
                  ('is_active', models.BooleanField(default=True)),
                  ('mode', models.CharField(default=b'audit', max_length=100)),
                  ('course', models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.DO_NOTHING, to='course_overviews.CourseOverview')),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ('user', 'course'),
              },
          ),
          migrations.CreateModel(
              name='UserProfile',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(blank=True, db_index=True, max_length=255)),
                  ('meta', models.TextField(blank=True)),
                  ('courseware', models.CharField(blank=True, default=b'course.xml', max_length=255)),
                  ('language', models.CharField(blank=True, db_index=True, max_length=255)),
                  ('location', models.CharField(blank=True, db_index=True, max_length=255)),
                  ('year_of_birth', models.IntegerField(blank=True, db_index=True, null=True)),
                  ('gender', models.CharField(blank=True, choices=[(b'm', b'Male'), (b'f', b'Female'), (b'o', b'Other/Prefer Not to Say')], db_index=True, max_length=6, null=True)),
                  ('level_of_education', models.CharField(blank=True, choices=[(b'p', b'Doctorate'), (b'm', b"Master's or professional degree"), (b'b', b"Bachelor's degree"), (b'a', b'Associate degree'), (b'hs', b'Secondary/high school'), (b'jhs', b'Junior secondary/junior high/middle school'), (b'el', b'Elementary/primary school'), (b'none', b'No formal education'), (b'other', b'Other education')], db_index=True, max_length=6, null=True)),
                  ('mailing_address', models.TextField(blank=True, null=True)),
                  ('city', models.TextField(blank=True, null=True)),
                  ('country', django_countries.fields.CountryField(blank=True, max_length=2, null=True)),
                  ('goals', models.TextField(blank=True, null=True)),
                  ('allow_certificate', models.BooleanField(default=1)),
                  ('bio', models.CharField(blank=True, max_length=3000, null=True)),
                  ('profile_image_uploaded_at', models.DateTimeField(blank=True, null=True)),
                  ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.AlterUniqueTogether(
              name='courseenrollment',
              unique_together=set([('user', 'course')]),
          ),
          migrations.AlterUniqueTogether(
              name='courseaccessrole',
              unique_together=set([('user', 'org', 'course_id', 'role')]),
          ),
      ]
  