# Generated by Django 3.1.6 on 2021-02-15 19:01

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('website', '0083_remove_aisubmission_code'),
    ]

    operations = [
        migrations.AddField(
            model_name='exam',
            name='division',
            field=models.IntegerField(default=1),
            preserve_default=False,
        ),
        migrations.CreateModel(
            name='ExamPair',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, unique=True)),
                ('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exampairs', to='website.contest')),
            ],
        ),
        migrations.AddField(
            model_name='exam',
            name='exampair',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='exams', to='website.exampair'),
        ),
    ]

[((373, 403), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(1)'}), '(default=1)\n', (392, 403), False, 'from django.db import migrations, models\n'), ((996, 1132), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.SET_NULL', 'related_name': '"""exams"""', 'to': '"""website.exampair"""'}), "(blank=True, null=True, on_delete=django.db.models.\n    deletion.SET_NULL, related_name='exams', to='website.exampair')\n", (1013, 1132), False, 'from django.db import migrations, models\n'), ((557, 650), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (573, 650), False, 'from django.db import migrations, models\n'), ((674, 719), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)', 'unique': '(True)'}), '(max_length=100, unique=True)\n', (690, 719), False, 'from django.db import migrations, models\n'), ((750, 865), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'related_name': '"""exampairs"""', 'to': '"""website.contest"""'}), "(on_delete=django.db.models.deletion.CASCADE, related_name\n    ='exampairs', to='website.contest')\n", (767, 865), False, 'from django.db import migrations, models\n')]