# Generated by Django 5.0 on 2025-05-26 10:55

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


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0034_alter_beneficiary_employee_alter_contract_uuid_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='employee',
            name='salary',
            field=models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Salaire'),
        ),
        migrations.AlterField(
            model_name='contract',
            name='uuid',
            field=models.CharField(blank=True, default=uuid.UUID('5b7932db-2f55-4084-bf21-9b50e3f972ab'), max_length=200, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='customer',
            name='slug',
            field=models.TextField(blank=True, default=uuid.UUID('4cc832de-8666-4d9e-9598-7cbf15484494'), max_length=200),
        ),
        migrations.AlterField(
            model_name='insurancecompany',
            name='slug',
            field=models.TextField(blank=True, default=uuid.UUID('16ce52bf-e9c0-422d-8e75-48c1b554d8bc'), max_length=200, unique=True),
        ),
        migrations.CreateModel(
            name='Prestation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.TextField(blank=True, default='', verbose_name='Description')),
                ('effectDate', models.DateField(blank=True, default=None, verbose_name="Date d'effet")),
                ('birthAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Acte de naissance')),
                ('deathAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Acte de décès')),
                ('medicalCertificate', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Certificat médical')),
                ('policeReport', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Rapport de gendarmerie')),
                ('notaryAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Acte de notoriété')),
                ('marriageAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Acte de mariage')),
                ('legalAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name="Acte d'administration légale")),
                ('beneficiaryBirthAct', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Acte de naissance des bénéficiaires')),
                ('nonOppositionCertificate', models.FileField(blank=True, default=None, null=True, upload_to='az-prestations/', verbose_name='Certificat de non opposition')),
                ('createdAt', models.DateTimeField(auto_now_add=True)),
                ('employee', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='employeePrestation', to='app.employee', verbose_name='Employé')),
            ],
            options={
                'verbose_name': 'Prestation',
                'verbose_name_plural': 'Prestations',
            },
        ),
    ]
