# Generated by Django 5.0 on 2025-11-17 01:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0072_alter_projectactivity_activity_type_decompte_invoice_and_more'),
    ]

    operations = [
        migrations.AddField(
            model_name='dashboardproject',
            name='category',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='dashboard_projects', to='app.projectcategory', verbose_name='Catégorie'),
        ),
        migrations.AddField(
            model_name='dashboardproject',
            name='project_type',
            field=models.CharField(choices=[('RESIDENTIEL', 'Résidentiel'), ('COMMERCIAL', 'Commercial'), ('INDUSTRIEL', 'Industriel'), ('INSTITUTIONNEL', 'Institutionnel'), ('AUTRE', 'Autre')], default='RESIDENTIEL', max_length=20, verbose_name='Type de projet'),
        ),
        migrations.AddField(
            model_name='projectactivity',
            name='billing_type',
            field=models.CharField(choices=[('NONE', 'Non facturable'), ('MILESTONE', 'Par jalon / décompte'), ('FIXED', 'Forfait'), ('TIME', 'Au temps (TJM)')], default='NONE', max_length=12, verbose_name='Type de facturation'),
        ),
        migrations.AddField(
            model_name='projectactivity',
            name='budget_amount',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=14, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Budget (FCFA)'),
        ),
        migrations.AddField(
            model_name='projectactivity',
            name='is_active',
            field=models.BooleanField(default=True, verbose_name='Activée'),
        ),
        migrations.AddField(
            model_name='projectactivity',
            name='parent',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='children', to='app.projectactivity', verbose_name='Activité parente'),
        ),
    ]
