# 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 = [
        ('reunions', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Enquete',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('intitule', models.CharField(max_length=255, null=True)),
                ('cible', models.CharField(blank=True, max_length=50, null=True)),
                ('acteurs', models.CharField(max_length=255, null=True)),
                ('lieu', models.CharField(max_length=255)),
                ('indicateurs', tinymce.models.HTMLField(null=True)),
                ('description', tinymce.models.HTMLField(null=True)),
                ('periode', models.CharField(max_length=255)),
                ('link_surveycto', models.URLField(blank=True, null=True)),
                ('datesysteme', models.DateTimeField(auto_now_add=True)),
                ('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='Créé par')),
                ('reunion', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='reunions.reunion')),
            ],
            options={
                'ordering': ['-datesysteme'],
                'indexes': [models.Index(fields=['-datesysteme', 'periode'], name='enquetes_en_datesys_c14994_idx')],
            },
        ),
    ]
