# Generated by Django 5.0 on 2025-05-28 10:40

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


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0039_alter_contract_uuid_alter_customer_is_active_and_more'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='contractanswer',
            options={'verbose_name': 'Réponse de question', 'verbose_name_plural': 'Réponses de question'},
        ),
        migrations.RemoveField(
            model_name='contractanswer',
            name='contract',
        ),
        migrations.RemoveField(
            model_name='contractquestion',
            name='parameter',
        ),
        migrations.AddField(
            model_name='contractanswer',
            name='employee',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.DO_NOTHING, related_name='employeeContractAnswer', to='app.employee', verbose_name='Employé'),
        ),
        migrations.AddField(
            model_name='contractquestion',
            name='insurance',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.DO_NOTHING, related_name='contractQuestion', to='app.insurancecompany', verbose_name="Compagnie d'assurance"),
        ),
        migrations.AddField(
            model_name='contractquestion',
            name='options',
            field=models.JSONField(blank=True, default=list, null=True, verbose_name='Options de la question'),
        ),
        migrations.AddField(
            model_name='contractquestion',
            name='type',
            field=models.CharField(choices=[('INPUT', 'Input'), ('SELECT', 'Select'), ('CHECKBOX', 'Checkbox'), ('RADIO', 'Radio'), ('TEXTAREA', 'Textarea')], default='INPUT', max_length=45, verbose_name='Type de question'),
        ),
        migrations.AlterField(
            model_name='contract',
            name='uuid',
            field=models.CharField(blank=True, default=uuid.UUID('4865bbb2-5e86-42bf-b902-0cc832c02802'), max_length=200, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='customer',
            name='slug',
            field=models.TextField(blank=True, default=uuid.UUID('0f5b51dc-d29b-4fb8-99ba-c8514d5ee290'), max_length=200),
        ),
        migrations.AlterField(
            model_name='insurancecompany',
            name='slug',
            field=models.TextField(blank=True, default=uuid.UUID('ae6aece6-a301-4dc4-91b6-c8c064124e99'), max_length=200, unique=True),
        ),
    ]
