# Generated by Django 4.2.14 on 2025-01-06 22:48

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('practitioners', '0001_initial'),
        ('organizations', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='practitioner',
            name='user',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='practitioner', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='generalpractitionerreference',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='general_practitioner_organization', to='organizations.organization'),
        ),
        migrations.AddField(
            model_name='generalpractitionerreference',
            name='practitioner',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='general_practitioner', to='practitioners.practitioner'),
        ),
        migrations.AddField(
            model_name='generalpractitionerreference',
            name='practitioner_role',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='practitioners.practitionerrole'),
        ),
        migrations.AddField(
            model_name='communication',
            name='practitioner',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='practitioner_communication', to='practitioners.practitioner'),
        ),
    ]
