text: # Generated by Django 3.0.5 on 2021-02-28 00:12
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          ('student', '0002_remove_student_status'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Course',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('course_name', models.CharField(max_length=50)),
                  ('question_number', models.PositiveIntegerField()),
                  ('total_marks', models.PositiveIntegerField()),
              ],
          ),
          migrations.CreateModel(
              name='Result',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('marks', models.PositiveIntegerField()),
                  ('date', models.DateTimeField(auto_now=True)),
                  ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='quiz.Course')),
                  ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='student.Student')),
              ],
          ),
          migrations.CreateModel(
              name='Question',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('marks', models.PositiveIntegerField()),
                  ('question', models.CharField(max_length=600)),
                  ('option1', models.CharField(max_length=200)),
                  ('option2', models.CharField(max_length=200)),
                  ('option3', models.CharField(max_length=200)),
                  ('option4', models.CharField(max_length=200)),
                  ('answer', models.CharField(choices=[('Option1', 'Option1'), ('Option2', 'Option2'), ('Option3', 'Option3'), ('Option4', 'Option4')], max_length=200)),
                  ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='quiz.Course')),
              ],
          ),
      ]
  