# Generated by Django 5.0.1 on 2024-07-11 22:20

import django.core.validators
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('childmonitoring', '0020_leisure_description'),
    ]

    operations = [
        migrations.CreateModel(
            name='BaseMedicalHistory',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='', max_length=50, null=True)),
                ('description', models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)])),
                ('comment', models.TextField(default='', max_length=2500, null=True)),
                ('created_date', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated_date', models.DateTimeField(auto_now=True, null=True)),
                ('created_by', models.CharField(default='', max_length=255, null=True)),
                ('updated_by', models.CharField(default='', max_length=255, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='IdentifiedAllergy',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='', max_length=50, null=True)),
                ('description', models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)])),
                ('created_date', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated_date', models.DateTimeField(auto_now=True, null=True)),
                ('created_by', models.CharField(default='', max_length=255, null=True)),
                ('updated_by', models.CharField(default='', max_length=255, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='IdentifiedPathology',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='', max_length=50, null=True)),
                ('description', models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)])),
                ('created_date', models.DateTimeField(auto_now_add=True, null=True)),
                ('updated_date', models.DateTimeField(auto_now=True, null=True)),
                ('created_by', models.CharField(default='', max_length=255, null=True)),
                ('updated_by', models.CharField(default='', max_length=255, null=True)),
            ],
        ),
        migrations.DeleteModel(
            name='IdentifiedAllergie',
        ),
        migrations.DeleteModel(
            name='IdentifiedPathologie',
        ),
        migrations.RemoveField(
            model_name='familymedicalhistory',
            name='comment',
        ),
        migrations.RemoveField(
            model_name='sunchild',
            name='family_medical_history',
        ),
        migrations.RemoveField(
            model_name='sunchild',
            name='surgical_medical_history',
        ),
        migrations.RemoveField(
            model_name='surgicalmedicalhistory',
            name='comment',
        ),
        migrations.AddField(
            model_name='familymedicalhistory',
            name='description',
            field=models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)]),
        ),
        migrations.AddField(
            model_name='medicalhistory',
            name='description',
            field=models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)]),
        ),
        migrations.AddField(
            model_name='medicalhistory',
            name='family_medical_histories',
            field=models.ManyToManyField(blank=True, related_name='family_medical_histories', to='childmonitoring.familymedicalhistory'),
        ),
        migrations.AddField(
            model_name='medicalhistory',
            name='surgical_medical_histories',
            field=models.ManyToManyField(blank=True, related_name='surgical_medical_histories', to='childmonitoring.surgicalmedicalhistory'),
        ),
        migrations.AddField(
            model_name='sunchild',
            name='medical_histories',
            field=models.ManyToManyField(blank=True, related_name='child_medical_histories', to='childmonitoring.surgicalmedicalhistory'),
        ),
        migrations.AddField(
            model_name='surgicalmedicalhistory',
            name='description',
            field=models.TextField(blank=True, default='', max_length=3000, null=True, validators=[django.core.validators.MaxLengthValidator(3000)]),
        ),
        migrations.AddField(
            model_name='medicalhistory',
            name='base_medical_histories',
            field=models.ManyToManyField(blank=True, related_name='base_medical_histories', to='childmonitoring.basemedicalhistory'),
        ),
        migrations.AlterField(
            model_name='medicalhistory',
            name='identified_allergies',
            field=models.ManyToManyField(blank=True, related_name='medical_history_allergies', to='childmonitoring.identifiedallergy'),
        ),
        migrations.AlterField(
            model_name='medicalhistory',
            name='identified_pathologies',
            field=models.ManyToManyField(blank=True, related_name='medical_history_pathologies', to='childmonitoring.identifiedpathology'),
        ),
    ]
