# Generated by Django 5.2.11 on 2026-02-15 01:13

import uuid

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0018_patternmitigationplan_patternmitigationmessage_and_more'),
    ]

    operations = [
        migrations.CreateModel(
            name='PatternMitigationCorrection',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, help_text='Stable identifier for this correction item.', primary_key=True, serialize=False)),
                ('title', models.CharField(help_text='Correction title.', max_length=255)),
                ('clarification', models.TextField(blank=True, default='', help_text='Joint clarification text intended to reduce interpretation drift.')),
                ('enabled', models.BooleanField(default=True, help_text='Whether this correction item is currently enabled.')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Row creation timestamp.')),
                ('plan', models.ForeignKey(help_text='Parent mitigation plan.', on_delete=django.db.models.deletion.CASCADE, related_name='corrections', to='core.patternmitigationplan')),
                ('user', models.ForeignKey(help_text='Owner of this correction item.', on_delete=django.db.models.deletion.CASCADE, related_name='pattern_mitigation_corrections', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
