HH/apps/surveys/migrations/0003_add_survey_linkage.py
2025-12-28 20:01:22 +03:00

52 lines
2.0 KiB
Python

# Generated by Django 5.0.14 on 2025-12-28 16:51
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('surveys', '0002_surveyquestion_surveyresponse_and_more'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.AddField(
model_name='surveyinstance',
name='contact_notes',
field=models.TextField(blank=True, help_text='Notes from patient contact'),
),
migrations.AddField(
model_name='surveyinstance',
name='issue_resolved',
field=models.BooleanField(default=False, help_text='Whether the issue was resolved/explained'),
),
migrations.AddField(
model_name='surveyinstance',
name='patient_contacted',
field=models.BooleanField(default=False, help_text='Whether patient was contacted about negative survey'),
),
migrations.AddField(
model_name='surveyinstance',
name='patient_contacted_at',
field=models.DateTimeField(blank=True, null=True),
),
migrations.AddField(
model_name='surveyinstance',
name='patient_contacted_by',
field=models.ForeignKey(blank=True, help_text='User who contacted the patient', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='contacted_surveys', to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='surveyinstance',
name='satisfaction_feedback_sent',
field=models.BooleanField(default=False, help_text='Whether satisfaction feedback form was sent'),
),
migrations.AddField(
model_name='surveyinstance',
name='satisfaction_feedback_sent_at',
field=models.DateTimeField(blank=True, null=True),
),
]