# Generated by Django 3.2.25 on 2025-12-01 15:33

from django.db import migrations, models
import django.db.models.deletion
import mediautils.utils


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Service',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Titre du service')),
                ('slug', models.SlugField(blank=True, unique=True)),
                ('short_description', models.CharField(help_text='Affichée sur la grille.', max_length=200, verbose_name='Description courte (Carte)')),
                ('full_description', models.TextField(help_text='Supporte le HTML simple.', verbose_name='Description complète (Page Détail)')),
                ('icon_class', models.CharField(choices=[('fa-solid fa-server', 'Serveur / Backend'), ('fa-solid fa-code', 'Code / Développement'), ('fa-brands fa-python', 'Python'), ('fa-solid fa-database', 'Base de Données'), ('fa-solid fa-sitemap', 'Architecture / Structure'), ('fa-solid fa-network-wired', 'API / Connexions'), ('fa-solid fa-cloud', 'Cloud / Déploiement'), ('fa-solid fa-shield-halved', 'Sécurité'), ('fa-solid fa-gears', 'Automatisation / DevOps'), ('fa-solid fa-laptop-code', 'Application Web'), ('fa-solid fa-mobile-screen', 'Mobile / Flutter'), ('fa-solid fa-cart-shopping', 'E-commerce'), ('fa-solid fa-chart-line', 'Performance / SEO'), ('fa-solid fa-bug', 'Debugging / Maintenance'), ('fa-solid fa-layer-group', 'Fullstack / Stack'), ('fa-solid fa-terminal', 'Terminal / Scripting'), ('fa-solid fa-cubes', 'Microservices'), ('fa-solid fa-brain', 'IA / Logique'), ('fa-solid fa-users-gear', 'CRM / Gestion'), ('fa-solid fa-rocket', 'Startup / Lancement')], default='fa-solid fa-code', max_length=50, verbose_name='Icône')),
                ('thumbnail', models.ImageField(blank=True, help_text='Ratio carré ou 4:3 conseillé.', null=True, upload_to=mediautils.utils.upload_to_services, verbose_name='Image Miniature (Liste)')),
                ('banner_image', models.ImageField(blank=True, help_text="Image large (Hero) pour l'en-tête de la page détail.", null=True, upload_to=mediautils.utils.upload_to_services, verbose_name='Image Bannière (Détail)')),
                ('order', models.PositiveIntegerField(default=0, verbose_name="Ordre d'affichage")),
            ],
            options={
                'verbose_name': 'Service',
                'ordering': ['order'],
            },
        ),
        migrations.CreateModel(
            name='WorkProcess',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('step_number', models.PositiveIntegerField(unique=True, verbose_name='Numéro')),
                ('title', models.CharField(max_length=100, verbose_name="Titre de l'étape")),
                ('description', models.TextField(verbose_name='Description')),
                ('icon_class', models.CharField(choices=[('fa-solid fa-server', 'Serveur / Backend'), ('fa-solid fa-code', 'Code / Développement'), ('fa-brands fa-python', 'Python'), ('fa-solid fa-database', 'Base de Données'), ('fa-solid fa-sitemap', 'Architecture / Structure'), ('fa-solid fa-network-wired', 'API / Connexions'), ('fa-solid fa-cloud', 'Cloud / Déploiement'), ('fa-solid fa-shield-halved', 'Sécurité'), ('fa-solid fa-gears', 'Automatisation / DevOps'), ('fa-solid fa-laptop-code', 'Application Web'), ('fa-solid fa-mobile-screen', 'Mobile / Flutter'), ('fa-solid fa-cart-shopping', 'E-commerce'), ('fa-solid fa-chart-line', 'Performance / SEO'), ('fa-solid fa-bug', 'Debugging / Maintenance'), ('fa-solid fa-layer-group', 'Fullstack / Stack'), ('fa-solid fa-terminal', 'Terminal / Scripting'), ('fa-solid fa-cubes', 'Microservices'), ('fa-solid fa-brain', 'IA / Logique'), ('fa-solid fa-users-gear', 'CRM / Gestion'), ('fa-solid fa-rocket', 'Startup / Lancement')], default='fa-solid fa-code', max_length=50, verbose_name='Icône')),
            ],
            options={
                'verbose_name': 'Étape Workflow',
                'verbose_name_plural': 'Workflow / Processus',
                'ordering': ['step_number'],
            },
        ),
        migrations.CreateModel(
            name='ServiceFeature',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=200, verbose_name='Caractéristique')),
                ('order', models.PositiveIntegerField(default=0)),
                ('service', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='features', to='services.service')),
            ],
            options={
                'verbose_name': 'Feature Service',
                'ordering': ['order'],
            },
        ),
    ]
