text: # Generated by Django 3.1.3 on 2020-11-30 17:16
  
  from django.db import migrations, models
  import django.db.models.deletion
  import django.utils.timezone
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
      ]
  
      operations = [
          migrations.CreateModel(
              name='AttendedQuestion',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
              ],
          ),
          migrations.CreateModel(
              name='Contest',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=100)),
                  ('contest_code', models.CharField(max_length=20)),
                  ('starts_at', models.DateTimeField()),
                  ('ends_at', models.DateTimeField(blank=True, null=True)),
                  ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
              ],
          ),
          migrations.CreateModel(
              name='Domain',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=50)),
              ],
          ),
          migrations.CreateModel(
              name='Option',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('statement', models.TextField()),
                  ('image', models.ImageField(null=True, upload_to='options/')),
                  ('is_correct', models.BooleanField(default=False)),
                  ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                  ('choice_number', models.IntegerField()),
              ],
          ),
          migrations.CreateModel(
              name='Question',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('statement', models.TextField()),
                  ('image', models.ImageField(null=True, upload_to='questions/')),
                  ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                  ('difficulty_level', models.IntegerField(choices=[(0, 'Easy'), (1, 'Medium'), (2, 'Hard')])),
              ],
          ),
          migrations.CreateModel(
              name='Section',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('difficulty_level', models.IntegerField(choices=[(0, 'Easy'), (1, 'Medium'), (2, 'Hard')])),
                  ('section_score', models.IntegerField()),
                  ('section_correct_options', models.IntegerField()),
              ],
          ),
          migrations.CreateModel(
              name='TotalScore',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('score', models.IntegerField()),
                  ('finish_time', models.DateTimeField()),
                  ('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contests.contest')),
              ],
          ),
      ]
  