# Generated by Django 5.0.2 on 2024-07-15 11:28

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


class Migration(migrations.Migration):

    dependencies = [
        ('atlas', '0055_questionschema'),
    ]

    operations = [
        migrations.CreateModel(
            name='CasePrior',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('relation_text', models.CharField(blank=True, help_text='Text to describe the relationship between the cases', max_length=255)),
                ('case_detail', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.casedetail')),
                ('prior_case', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='prior_case', to='atlas.case')),
            ],
            options={
                'unique_together': {('case_detail', 'prior_case')},
            },
        ),
    ]
