# Generated by Django 4.1.4 on 2023-06-12 10:07

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import sortedm2m.fields


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('generic', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('anatomy', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='exam',
            name='cid_user_groups',
            field=models.ManyToManyField(blank=True, help_text='These groups define which candidates are able to be added to the exams/collection.', related_name='anatomy_cid_user_groups', to='generic.cidusergroup'),
        ),
        migrations.AddField(
            model_name='exam',
            name='exam_questions',
            field=sortedm2m.fields.SortedManyToManyField(blank='true', help_text=None, related_name='exams', to='anatomy.anatomyquestion'),
        ),
        migrations.AddField(
            model_name='exam',
            name='user_user_groups',
            field=models.ManyToManyField(blank=True, help_text='These groups define which candidates are able to be added to the exams/collection.', related_name='anatomy_user_user_groups', to='generic.userusergroup'),
        ),
        migrations.AddField(
            model_name='exam',
            name='valid_cid_users',
            field=models.ManyToManyField(blank=True, related_name='anatomy_exams', to='generic.ciduser'),
        ),
        migrations.AddField(
            model_name='exam',
            name='valid_user_users',
            field=models.ManyToManyField(blank=True, related_name='user_anatomy_exams', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='answer',
            name='question',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='anatomy.anatomyquestion'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='author',
            field=models.ManyToManyField(blank=True, help_text='Author(s) of question', related_name='anatomy_authored_questions', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='body_part',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.bodypart'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='examination',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='generic.examination'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='modality',
            field=models.ForeignKey(help_text='Modality of the image', null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.modality'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='question_type',
            field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.questiontype'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='region',
            field=models.ForeignKey(blank=True, help_text='Region the image covers', null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.region'),
        ),
        migrations.AddField(
            model_name='anatomyquestion',
            name='structure',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='anatomy.structure'),
        ),
    ]
