# Generated by Django 5.0.7 on 2025-01-24 00:55

import django.db.models.deletion
import django.utils.timezone
import studenteval.models
import uuid
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='cl_Student_eval',
            fields=[
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('ID', models.IntegerField(default=studenteval.models.increment_ID, editable=False, unique=True, verbose_name='ID du Suivi')),
                ('sAuthor', models.CharField(max_length=120, verbose_name='Auteur')),
                ('sAuthor_2e', models.CharField(blank=True, max_length=120, verbose_name='Co-auteur')),
                ('sStudent', models.CharField(max_length=120, verbose_name="Nom de l'étudiant/stagiaire")),
                ('nEval_Type', models.CharField(choices=[('1', 'Intervention'), ('2', 'Journée'), ('3', 'Exercice')], default=0, max_length=1, verbose_name='Type de suivi')),
                ('dtDate', models.DateField(default=django.utils.timezone.now, verbose_name='Date concernée')),
                ('sRef', models.CharField(blank=True, max_length=120, verbose_name='N° de référence / FIP')),
                ('nEval_Mode', models.CharField(choices=[('1', 'Auto-évaluation'), ('2', 'Encadrant')], default=0, max_length=1, verbose_name='Mode de suivi ')),
                ('sDesc_neg', models.TextField(verbose_name='Points à améliorer')),
                ('sDesc_pos', models.TextField(verbose_name='Points positifs')),
                ('sDesc_global', models.TextField(verbose_name="Avis global sur l'intervention/journée/exercice")),
                ('nInter_Nature', models.CharField(blank=True, choices=[('1', 'Trauma'), ('2', 'non-Trauma')], default=0, max_length=1, verbose_name='Nature')),
                ('nInter_Priority', models.CharField(blank=True, choices=[('1', 'P1'), ('2', 'P2'), ('3', 'P3'), ('4', 'S1'), ('5', 'S2'), ('6', 'S3'), ('7', 'Exercice')], default=0, max_length=1, verbose_name='Priorité')),
                ('nInter_Complexity', models.CharField(blank=True, choices=[('1', 'Stable / Simple'), ('2', 'Stable / Complexe'), ('3', 'Instable / Simple'), ('4', 'Instable / Complexe')], default=0, max_length=1, verbose_name='Nature de complexité')),
                ('sInter_Desc', models.TextField(blank=True, verbose_name='Description courte')),
                ('nStudent_Role', models.CharField(blank=True, choices=[('1', 'Leader'), ('2', 'Équipier'), ('3', '3e position (observateur)')], default=0, max_length=1, verbose_name="Rôle de l'étudiant/stagiaire")),
                ('dtUpdated', models.DateTimeField(auto_now=True, verbose_name='date updated')),
                ('dtCreated', models.DateTimeField(auto_now_add=True, verbose_name='date published')),
                ('Author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='eval_author', to=settings.AUTH_USER_MODEL, verbose_name='Auteur')),
                ('Author_2e', models.ForeignKey(blank=True, limit_choices_to={'groups__name': 'Intervenants-Monthey'}, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='eval_second_author', to=settings.AUTH_USER_MODEL, verbose_name='Co-auteur')),
                ('Student', models.ForeignKey(limit_choices_to={'groups__name': 'FI-Étudiants'}, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Nom du stagiaire/étudaint')),
            ],
            options={
                'verbose_name': 'Suivi étudiants',
                'verbose_name_plural': 'Suivis étudiants',
                'ordering': ['-ID'],
            },
        ),
    ]
