# Generated by Django 5.0.14 on 2026-01-07 11:02

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


class Migration(migrations.Migration):

    dependencies = [
        ('observations', '0002_add_missing_fields'),
        ('organizations', '0005_alter_staff_department'),
    ]

    operations = [
        migrations.RenameIndex(
            model_name='observation',
            new_name='observation_hospita_dcd21a_idx',
            old_name='obs_hospital_status_idx',
        ),
        migrations.AlterField(
            model_name='observation',
            name='hospital',
            field=models.ForeignKey(default=1, help_text='Hospital where observation was made', on_delete=django.db.models.deletion.CASCADE, related_name='observations', to='organizations.hospital'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='observation',
            name='source',
            field=models.CharField(choices=[('staff_portal', 'Staff Portal'), ('web_form', 'Web Form'), ('mobile_app', 'Mobile App'), ('email', 'Email'), ('call_center', 'Call Center'), ('other', 'Other')], default='staff_portal', help_text='How the observation was submitted', max_length=50),
        ),
        migrations.AlterField(
            model_name='observation',
            name='staff',
            field=models.ForeignKey(blank=True, help_text='Staff member mentioned in observation', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='observations', to='organizations.staff'),
        ),
    ]
