# Generated by Django 6.0.1 on 2026-05-17 15:52

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


class Migration(migrations.Migration):

    dependencies = [
        ('complaints', '0006_data_sent_to_department_backfill'),
        ('organizations', '0003_alter_department_champion'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='acceptance_notes',
            field=models.TextField(blank=True, help_text='Notes about the acceptance decision'),
        ),
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='acceptance_status',
            field=models.CharField(choices=[('pending', 'Pending Review'), ('acceptable', 'Acceptable'), ('not_acceptable', 'Not Acceptable')], default='pending', help_text='Review status of the department response', max_length=20),
        ),
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='accepted_at',
            field=models.DateTimeField(blank=True, help_text='When the department response was reviewed', null=True),
        ),
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='accepted_by',
            field=models.ForeignKey(blank=True, help_text='User who reviewed the department response', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='reviewed_complaint_dept_responses', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='response_notes_ar',
            field=models.TextField(blank=True, verbose_name='Response (Arabic)'),
        ),
        migrations.AddField(
            model_name='complaintinvolveddepartment',
            name='response_notes_en',
            field=models.TextField(blank=True, verbose_name='Response (English)'),
        ),
        migrations.AddIndex(
            model_name='complaintinvolveddepartment',
            index=models.Index(fields=['department', 'acceptance_status'], name='complaints__departm_5ad178_idx'),
        ),
    ]
