# Generated by Django 4.0.10 on 2025-05-13 22:57

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


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0003_alter_bank_options_alter_beneficiary_options_and_more'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='contract',
            name='code',
        ),
        migrations.RemoveField(
            model_name='contractquestion',
            name='code',
        ),
        migrations.RemoveField(
            model_name='customer',
            name='code',
        ),
        migrations.RemoveField(
            model_name='partner',
            name='code',
        ),
        migrations.AddField(
            model_name='contract',
            name='annualPension',
            field=models.FloatField(blank=True, default=0.0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Rente annuelle'),
        ),
        migrations.AddField(
            model_name='contract',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
        migrations.AlterField(
            model_name='contract',
            name='partner',
            field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='partner', to='app.partner', verbose_name='Partenaire'),
        ),
        migrations.AlterField(
            model_name='customer',
            name='birthdate',
            field=models.DateField(default=None, verbose_name='Date de naissance'),
        ),
        migrations.AlterField(
            model_name='customer',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
        migrations.AlterField(
            model_name='nationality',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
        migrations.AlterField(
            model_name='place',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
        migrations.AlterField(
            model_name='profession',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
        migrations.AlterField(
            model_name='sector',
            name='slug',
            field=models.TextField(blank=True, default='', max_length=200, unique=True),
        ),
    ]
