# Generated by Django 5.0.14 on 2026-01-05 10:43

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('projects', '0001_initial'),
        ('px_action_center', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='qiproject',
            name='related_actions',
            field=models.ManyToManyField(blank=True, related_name='qi_projects', to='px_action_center.pxaction'),
        ),
        migrations.AddField(
            model_name='qiproject',
            name='team_members',
            field=models.ManyToManyField(blank=True, related_name='qi_projects', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='qiprojecttask',
            name='assigned_to',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='qi_tasks', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='qiprojecttask',
            name='project',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='projects.qiproject'),
        ),
        migrations.AddIndex(
            model_name='qiproject',
            index=models.Index(fields=['hospital', 'status', '-created_at'], name='projects_qi_hospita_e5dfc7_idx'),
        ),
    ]
