# Generated by Django 5.1.5 on 2025-02-19 22:52

import django.db.models.deletion
import tinymce.models
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='ZoneReunion',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nom_zone', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Reunion',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type_reunion', models.CharField(choices=[('ReunionCercle', 'Reunion Cercle'), ('DialogueCommunautaire', 'Dialogue Communautaire'), ('ReunionCoordination', 'Reunion de Coordination')], default='ReunionCercle', max_length=255)),
                ('titre_reunion', models.CharField(max_length=255, null=True)),
                ('date', models.DateField(auto_now_add=True)),
                ('duree', models.PositiveIntegerField()),
                ('theme', models.CharField(max_length=255)),
                ('modérateur', models.CharField(max_length=255)),
                ('regulateurs', models.TextField(blank=True)),
                ('resume_executif', tinymce.models.HTMLField(blank=True, null=True)),
                ('budget', models.DecimalField(decimal_places=2, max_digits=10)),
                ('statut', models.CharField(choices=[('En cours', 'En cours'), ('Termné', 'Termné')], default='En cours', max_length=20)),
                ('temps_arrivee', models.DurationField(null=True)),
                ('nombre_prises_parole', models.PositiveIntegerField(default=0)),
                ('heurefin', models.DateTimeField(auto_now=True, null=True)),
                ('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='Créé par')),
                ('lieu', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='reunions.zonereunion')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Participant',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prenom', models.CharField(max_length=255, null=True)),
                ('nom', models.CharField(max_length=255, null=True)),
                ('sexe', models.CharField(choices=[('H', 'Homme'), ('F', 'Femme')], max_length=1)),
                ('age', models.PositiveIntegerField()),
                ('provenance', models.CharField(max_length=255)),
                ('activite', models.CharField(max_length=255)),
                ('reunion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='participants', to='reunions.reunion')),
            ],
        ),
        migrations.CreateModel(
            name='PlanificationMensuel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('mois', models.DateField()),
                ('objectif_reunions', models.PositiveIntegerField()),
                ('zone', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='planifications', to='reunions.zonereunion')),
            ],
        ),
        migrations.AddIndex(
            model_name='reunion',
            index=models.Index(fields=['-date', 'type_reunion'], name='reunions_re_date_68f38a_idx'),
        ),
    ]
