# Generated by Django 4.1.4 on 2024-02-17 22:10

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


class Migration(migrations.Migration):

    dependencies = [
        ('anatomy', '0013_rename_exam_collection_exam_examcollection'),
    ]

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