# Generated by Django 4.1.4 on 2024-02-17 23:11

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


class Migration(migrations.Migration):

    dependencies = [
        ('sbas', '0006_rename_exam_collection_exam_examcollection'),
    ]

    operations = [
        migrations.CreateModel(
            name='ExamQuestionDetail',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sort_order', models.IntegerField(default=1000)),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sbas.exam')),
                ('rapid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sbas.question')),
            ],
            options={
                'ordering': ('sort_order',),
            },
        ),
        migrations.RunSQL(
            """INSERT INTO sbas_examquestiondetail
            SELECT * FROM sbas_exam_exam_questions;"""
        ),
    ]
