text: # Generated by Django 3.1.2 on 2020-10-03 09:49
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Course',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('slug', models.SlugField(max_length=200, unique=True)),
                  ('overview', models.TextField()),
                  ('created', models.DateTimeField(auto_now_add=True)),
                  ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='courses_created', to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'ordering': ['-created'],
              },
          ),
          migrations.CreateModel(
              name='Subject',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('slug', models.SlugField(max_length=200, unique=True)),
              ],
              options={
                  'ordering': ['title'],
              },
          ),
          migrations.CreateModel(
              name='Module',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('title', models.CharField(max_length=200)),
                  ('description', models.TextField(blank=True)),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='courses.course')),
              ],
          ),
          migrations.AddField(
              model_name='course',
              name='subject',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='courses', to='courses.subject'),
          ),
      ]
  