# Generated by Django 6.0.1 on 2026-06-07 01:43

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


class Migration(migrations.Migration):

    dependencies = [
        ('organizations', '0009_remove_sub_subsection_fields'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='department',
            options={'ordering': ['hospital', 'category', 'name_en']},
        ),
        migrations.AddField(
            model_name='section',
            name='deputy_supervisor',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='deputy_supervised_sections', to='organizations.staff'),
        ),
        migrations.AddField(
            model_name='section',
            name='display_name_ar',
            field=models.CharField(blank=True, help_text='Patient-facing display name (Arabic)', max_length=255),
        ),
        migrations.AddField(
            model_name='section',
            name='display_name_en',
            field=models.CharField(blank=True, help_text='Patient-facing display name (English)', max_length=255),
        ),
        migrations.AddField(
            model_name='section',
            name='supervisor',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='supervised_sections', to='organizations.staff'),
        ),
        migrations.AlterField(
            model_name='staff',
            name='department_type',
            field=models.CharField(blank=True, choices=[('medical', 'Medical'), ('non_medical', 'Non-Medical'), ('nursing', 'Nursing'), ('support_services', 'Support Services'), ('administrative', 'Administrative')], db_index=True, default='', max_length=30),
        ),
        migrations.AlterField(
            model_name='staffsection',
            name='department',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='staff_sections', to='organizations.department'),
        ),
        migrations.AlterModelTable(
            name='section',
            table='organizations_section',
        ),
    ]
