# Generated by Django 5.2.7 on 2025-11-24 10:17

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


class Migration(migrations.Migration):

    dependencies = [
        ('atlas', '0087_alter_condition_canonical'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='finding',
            name='primary',
        ),
        migrations.RemoveField(
            model_name='finding',
            name='synonym',
        ),
        migrations.RemoveField(
            model_name='structure',
            name='primary',
        ),
        migrations.RemoveField(
            model_name='structure',
            name='synonym',
        ),
        migrations.AddField(
            model_name='finding',
            name='canonical',
            field=models.ForeignKey(blank=True, help_text='If set, this Finding is an alias and points to the canonical Finding.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='aliases', to='atlas.finding'),
        ),
        migrations.AddField(
            model_name='structure',
            name='canonical',
            field=models.ForeignKey(blank=True, help_text='If set, this Structure is an alias and points to the canonical Structure.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='aliases', to='atlas.structure'),
        ),
    ]
