text: # Generated by Django 2.0.6 on 2018-06-08 05:29
  
  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='Answer',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('answer', models.TextField()),
                  ('is_correct', models.BooleanField(default=False)),
              ],
          ),
          migrations.CreateModel(
              name='Question',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('question', models.TextField()),
                  ('shuffle_answers', models.BooleanField(default=False)),
                  ('number_of_responses', models.IntegerField(default=0)),
              ],
          ),
          migrations.CreateModel(
              name='Quiz',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=200)),
                  ('randomize_team', models.BooleanField(default=False)),
                  ('slug', models.SlugField(blank=True, unique=True)),
                  ('number_of_participants', models.IntegerField(default=0)),
                  ('created_at', models.DateTimeField(auto_now=True)),
                  ('last_modified', models.DateTimeField(auto_now=True)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
          ),
          migrations.CreateModel(
              name='Student',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=200)),
              ],
          ),
          migrations.CreateModel(
              name='Student_Response',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('timestamp', models.DateTimeField(auto_now=True)),
                  ('response', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teams.Answer')),
                  ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teams.Student')),
              ],
          ),
          migrations.CreateModel(
              name='Team',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=200)),
                  ('color', models.CharField(max_length=200)),
                  ('mascot', models.CharField(max_length=200)),
                  ('score', models.IntegerField(default=0)),
                  ('quiz', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='teams', to='teams.Quiz')),
              ],
          ),
          migrations.AddField(
              model_name='student',
              name='team',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='students', to='teams.Team'),
          ),
          migrations.AddField(
              model_name='question',
              name='quiz',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='teams.Quiz'),
          ),
          migrations.AddField(
              model_name='answer',
              name='question',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='teams.Question'),
          ),
      ]
  