# Generated by Django 4.1.4 on 2023-11-06 10:09

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


class Migration(migrations.Migration):

    dependencies = [
        ('atlas', '0026_alter_condition_parent'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='condition',
            name='parent',
        ),
        migrations.CreateModel(
            name='ConditionRelationship',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('relationship_type', models.CharField(default='', max_length=255)),
                ('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='atlas.condition')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='atlas.condition')),
            ],
        ),
        migrations.AddField(
            model_name='condition',
            name='parents',
            field=models.ManyToManyField(blank=True, related_name='children', through='atlas.ConditionRelationship', to='atlas.condition'),
        ),
    ]
