# Generated by Django 3.2.12 on 2022-12-10 14:26

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Annee',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('status', models.CharField(max_length=255, verbose_name='Stauts')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='CategorieUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(blank=True, max_length=255, null=True, verbose_name='Libelle')),
            ],
        ),
        migrations.CreateModel(
            name='Csv',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('file_name', models.FileField(upload_to='csv/%Y/%m/%d')),
                ('uploaded', models.DateTimeField(auto_now_add=True)),
                ('activated', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='DemandeActes',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('reception', models.BooleanField(default=False)),
                ('archive', models.BooleanField(default=False)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='demact', to='BasicData.annee')),
            ],
        ),
        migrations.CreateModel(
            name='Diffusion',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(choices=[('Sondage', 'Sondage'), ('Réclamation', 'Réclamation')], max_length=255, verbose_name='Titre')),
                ('limite', models.DateField(null=True, verbose_name='Date limite')),
                ('publier', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='Direction',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('code', models.CharField(max_length=255, null=True, verbose_name='Code')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Domaine',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Ecue',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('code', models.CharField(max_length=255, verbose_name='Code')),
                ('credit', models.IntegerField(verbose_name='Credit')),
                ('cm', models.IntegerField(blank=True, default=0, null=True, verbose_name='CM')),
                ('td', models.IntegerField(blank=True, default=0, null=True, verbose_name='TD')),
                ('tp', models.IntegerField(blank=True, default=0, null=True, verbose_name='TP')),
                ('aem', models.IntegerField(blank=True, default=0, null=True, verbose_name='AEM')),
                ('active', models.BooleanField(default=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EnseignantUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUes', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUes', to='BasicData.ecue')),
            ],
        ),
        migrations.CreateModel(
            name='FlashInfo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(max_length=255, null=True, verbose_name='Titre')),
                ('message', models.CharField(max_length=255, null=True, verbose_name='Message')),
                ('ufr', models.CharField(choices=[('Tout', 'Tout'), ('ARHAI', 'ARHAI'), ('MPSI', 'MPSI'), ('LTHR', 'LTHR'), ('SDM', 'SDM')], max_length=255, null=True, verbose_name='Ufr')),
                ('cible', models.CharField(choices=[('Tout', 'Tout'), ('Enseignant', 'Enseignant'), ('Etudiant', 'Etudiant')], max_length=255, null=True, verbose_name='Cible')),
                ('limite', models.DateField(null=True, verbose_name='Date limite')),
                ('published', models.BooleanField(default=False)),
                ('created', models.DateField(auto_now_add=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Grade',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='GradeMentionUfr',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('grade', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gradeMentionUfrs', to='BasicData.grade')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Jour',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Mention',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Niveau',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Parcours',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ParcoursSemestre',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('gradeMentionUfr', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestres', to='BasicData.gradementionufr')),
                ('parcours', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestres', to='BasicData.parcours')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsCours',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('titre', models.CharField(max_length=255, null=True, verbose_name='Titre')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsCours2',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('niveau', models.CharField(blank=True, max_length=255, null=True, verbose_name='Niveau')),
                ('annee', models.CharField(blank=True, max_length=255, null=True, verbose_name='Annee')),
                ('etablissement', models.CharField(blank=True, max_length=255, null=True, verbose_name='Etablissement')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsTypeCours',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('prerequis', models.CharField(max_length=255, null=True, verbose_name='Pré-requis')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsTypePublication',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsTypePublication2',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Role',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(blank=True, max_length=255, null=True, verbose_name='Libelle')),
                ('description', models.CharField(blank=True, max_length=255, null=True, verbose_name='Description')),
            ],
        ),
        migrations.CreateModel(
            name='Salle',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Semestre',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('niveau', models.ForeignKey(default='1', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='semestre', to='BasicData.niveau')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Session',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Sondage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('titre', models.CharField(max_length=255, null=True, verbose_name='Titre')),
                ('url', models.CharField(max_length=255, null=True, verbose_name='Url')),
                ('ufr', models.CharField(choices=[('Tout', 'Tout'), ('ARHAI', 'ARHAI'), ('MPSI', 'MPSI'), ('LTHR', 'LTHR'), ('SDM', 'SDM')], max_length=255, null=True, verbose_name='Ufr')),
                ('cible', models.CharField(choices=[('Tout', 'Tout'), ('Enseignant', 'Enseignant'), ('Etudiant', 'Etudiant')], max_length=255, null=True, verbose_name='Cible')),
                ('limite', models.DateField(null=True, verbose_name='Date limite')),
                ('published', models.BooleanField(default=True)),
                ('created', models.DateField(auto_now_add=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Specialite',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='SyllabusModel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('pubNivVise', models.TextField(blank=True, null=True, verbose_name='Public et Niveau Visé')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Description')),
                ('duree', models.CharField(blank=True, max_length=255, null=True, verbose_name='Durée')),
                ('credit', models.CharField(blank=True, max_length=255, null=True, verbose_name='Crédit')),
                ('objectif', models.TextField(blank=True, null=True, verbose_name='Objectifs')),
                ('Competence', models.TextField(blank=True, null=True, verbose_name='Compétence')),
                ('prerequis', models.TextField(blank=True, null=True, verbose_name='Pré-requis')),
                ('participant', models.TextField(blank=True, null=True, verbose_name='Participants')),
                ('versionDate', models.TextField(blank=True, null=True, verbose_name='No. version et Date')),
                ('bibliographie', models.TextField(blank=True, null=True, verbose_name='Bibliographie')),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='TypeDemandeActes',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('cible', models.CharField(choices=[('tout', 'tout'), ('ufr', 'ufr'), ('scolarité', 'scolarité')], max_length=255, null=True, verbose_name='Cible')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='TypeDocument',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(blank=True, max_length=255, null=True, verbose_name='Libellé')),
                ('description', models.CharField(blank=True, max_length=255, null=True, verbose_name='Description')),
            ],
        ),
        migrations.CreateModel(
            name='TypeEvaluation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('pourcentage', models.FloatField(max_length=10, verbose_name='Pourcentage')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Validite',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dateDebut', models.DateField(null=True, verbose_name='Date de Début')),
                ('dateFin', models.DateField(null=True, verbose_name='Date de Fin')),
                ('activated', models.BooleanField(default=False, null=True)),
                ('done', models.BooleanField(default=False, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('avatar', models.ImageField(blank=True, null=True, upload_to='images/avatars/', verbose_name='Avatar')),
                ('nom', models.CharField(max_length=255, verbose_name='Nom')),
                ('prenoms', models.CharField(max_length=255, verbose_name='Prenoms')),
                ('sexe', models.CharField(choices=[('M', 'M'), ('F', 'F')], max_length=255, verbose_name='Sexe')),
                ('datenaiss', models.DateField(blank=True, max_length=255, null=True, verbose_name='Date de naissance')),
                ('lieunaiss', models.CharField(blank=True, max_length=255, null=True, verbose_name='Lieu de naissance')),
                ('phone', models.CharField(blank=True, max_length=255, null=True, unique=True, verbose_name='Phone')),
                ('email', models.EmailField(max_length=255, unique=True, verbose_name='Email')),
                ('adresse', models.CharField(blank=True, max_length=255, null=True, verbose_name='Adresse')),
                ('civilite', models.CharField(blank=True, choices=[('M', 'M'), ('Mme', 'Mme'), ('Mlle', 'Mlle')], max_length=255, null=True, verbose_name='Civilité')),
                ('profession', models.CharField(blank=True, choices=[('Etudiant', 'Etudiant'), ('Salarié', 'Salarié'), ('Autres', 'Autres')], max_length=255, null=True, verbose_name='Profession')),
                ('autre_profession', models.CharField(blank=True, max_length=255, null=True, verbose_name='Autres profession')),
                ('nationalite', models.CharField(blank=True, max_length=255, null=True, verbose_name='Nationalité')),
                ('groupe_sanguin', models.CharField(blank=True, max_length=255, null=True, verbose_name='Groupe sanguin')),
                ('handicap', models.CharField(blank=True, max_length=255, null=True, verbose_name='Handicap')),
                ('nb_enfant', models.IntegerField(blank=True, default=0, null=True, verbose_name="Nombre d'enfant")),
                ('sit_matri', models.CharField(blank=True, choices=[('Célibataire', 'Célibataire'), ('Marié(e)', 'Marié(e)')], max_length=255, null=True, verbose_name='Situation matrimoniale')),
                ('is_staff', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('role', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='BasicData.role')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Enseignant',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='BasicData.user')),
                ('profile', models.BooleanField(default=False, null=True)),
                ('specialite', models.CharField(max_length=255, null=True, verbose_name='specialite')),
                ('statut', models.CharField(choices=[('Permanent', 'Permanent'), ('Vacataire', 'Vacataire')], max_length=255, null=True, verbose_name='Statut')),
                ('regime', models.CharField(choices=[('Aucun', 'Aucun'), ('Fonctionnaire', 'Fonctionnaire'), ('Contractuel', 'Contractuel')], default='Aucun', max_length=255, null=True, verbose_name='Régime')),
                ('is_ufr_dg', models.BooleanField(default=False, null=True)),
                ('is_respo', models.BooleanField(default=False, null=True)),
                ('is_ue', models.BooleanField(default=False, null=True)),
                ('is_pr', models.BooleanField(default=False, null=True)),
                ('is_vp', models.BooleanField(default=False, null=True)),
                ('add_programme', models.BooleanField(default=False, null=True)),
                ('interet', models.CharField(max_length=255, null=True, verbose_name="Centre d'intérêt ")),
                ('grade', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='enseignants', to='BasicData.grade')),
            ],
            options={
                'abstract': False,
            },
            bases=('BasicData.user',),
        ),
        migrations.CreateModel(
            name='Etudiant',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='BasicData.user')),
                ('nce', models.CharField(blank=True, max_length=255, null=True, unique=True, verbose_name='Nce')),
                ('ancien_nce', models.CharField(blank=True, max_length=255, null=True, unique=True, verbose_name='Ancien Nce')),
                ('boursier', models.CharField(blank=True, choices=[('Oui', 'Oui'), ('Non', 'Non')], max_length=255, null=True, verbose_name='Boursier')),
                ('salarie', models.CharField(blank=True, choices=[('Oui', 'Oui'), ('Non', 'Non')], max_length=255, null=True, verbose_name='Salarie')),
                ('quartier', models.CharField(blank=True, max_length=255, null=True, verbose_name='Quartier de résidence')),
                ('matricule', models.CharField(blank=True, max_length=255, null=True, verbose_name='Matricule')),
                ('annee_bac', models.IntegerField(blank=True, null=True, verbose_name="Année d'obtension du BAC")),
                ('numero_bac', models.CharField(blank=True, max_length=255, null=True, verbose_name='Numero du BAC')),
                ('serie_bac', models.CharField(blank=True, choices=[('A1', 'A1'), ('A2', 'A2'), ('B', 'B'), ('C', 'C'), ('D', 'D'), ('E', 'E'), ('F1', 'F1'), ('F2', 'F2'), ('F3', 'F3'), ('F4', 'F4'), ('G1', 'G1'), ('G2', 'G2'), ('G3', 'G3')], max_length=255, null=True, verbose_name='Serie du BAC')),
                ('mention_bac', models.CharField(blank=True, choices=[('PASSABLE', 'PASSABLE'), ('ASSEZ-BIEN', 'ASSEZ-BIEN'), ('BIEN', 'BIEN'), ('TRES-BIEN', 'TRES-BIEN')], max_length=255, null=True, verbose_name='Serie du BAC')),
                ('centre_compo_bac', models.CharField(blank=True, max_length=255, null=True, verbose_name="Centre d'obtension du BAC")),
                ('etablissement_bac', models.CharField(blank=True, max_length=255, null=True, verbose_name='Etablissement')),
                ('type_etablissement', models.CharField(blank=True, choices=[('PUBLIC', 'PUBLIC'), ('PRIVE', 'PRIVE')], max_length=255, null=True, verbose_name="Type de l'établissement")),
                ('nom_pere', models.CharField(blank=True, max_length=255, null=True, verbose_name='Nom et prénoms du père')),
                ('nom_mere', models.CharField(blank=True, max_length=255, null=True, verbose_name='Nom et prénoms de la mère')),
                ('contact_pere', models.CharField(blank=True, max_length=255, null=True, verbose_name='Contact du père')),
                ('contact_mere', models.CharField(blank=True, max_length=255, null=True, verbose_name='Contact de la mère')),
                ('nom_tuteur', models.CharField(blank=True, max_length=255, null=True, verbose_name='Nom du tuteur')),
                ('contact_tuteur', models.CharField(blank=True, max_length=255, null=True, verbose_name='Contact du tuteur')),
                ('nom_urgence', models.CharField(blank=True, max_length=255, null=True, verbose_name="Nom du contact d'urgence")),
                ('contact_urgence', models.CharField(blank=True, max_length=255, null=True, verbose_name="Contact en cas d'urgence")),
                ('habitation_contact_urgence', models.CharField(blank=True, max_length=255, null=True, verbose_name="Lieu d'habitation du contact")),
                ('adresse_post', models.CharField(blank=True, max_length=255, null=True, verbose_name='Adresse postale')),
                ('actif', models.BooleanField(default=True)),
                ('process', models.BooleanField(default=False)),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
            ],
            options={
                'abstract': False,
            },
            bases=('BasicData.user',),
        ),
        migrations.CreateModel(
            name='Personnel',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='BasicData.user')),
                ('prise_de_fonction', models.DateField(blank=True, max_length=255, null=True, verbose_name='Prise de fonction')),
                ('regime', models.CharField(choices=[('Aucun', 'Aucun'), ('Fonctionnaire', 'Fonctionnaire'), ('Contractuel', 'Contractuel')], default='Aucun', max_length=255, null=True, verbose_name='Régime')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('resposabilite', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='personnel', to='BasicData.role')),
            ],
            options={
                'abstract': False,
            },
            bases=('BasicData.user',),
        ),
        migrations.CreateModel(
            name='Ufr',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('code', models.CharField(blank=True, max_length=10, null=True)),
                ('domaine', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='ufrs', to='BasicData.domaine')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Ue',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('code', models.CharField(max_length=255, verbose_name='Code')),
                ('active', models.BooleanField(default=True)),
                ('niveau', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ues', to='BasicData.niveau')),
                ('semestre', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ues', to='BasicData.semestre')),
                ('ufr', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ues', to='BasicData.ufr')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Service',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('code', models.CharField(max_length=255, null=True, verbose_name='Code')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('direction', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.direction')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ResponsableUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='responsableUes', to='BasicData.annee')),
                ('enseignantUe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='responsableUes', to='BasicData.enseignantue')),
            ],
        ),
        migrations.CreateModel(
            name='ResponsableService',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prise_de_fonction', models.DateField(blank=True, max_length=255, null=True, verbose_name='Prise de fonction')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('responsable', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('service', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.service')),
            ],
        ),
        migrations.CreateModel(
            name='ReponseDemandeActes',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('document', models.FileField(null=True, upload_to='documents/%Y')),
                ('reception', models.BooleanField(default=False)),
                ('archive', models.BooleanField(default=False)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('demande', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.demandeactes')),
            ],
        ),
        migrations.CreateModel(
            name='PvArchive',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('document', models.FileField(upload_to='pv/%Y')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('niveau', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.niveau')),
                ('ufr', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.ufr')),
            ],
        ),
        migrations.CreateModel(
            name='PsPublication',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.IntegerField(null=True, verbose_name='Année de Publication')),
                ('titre', models.CharField(max_length=255, null=True, verbose_name='Titre')),
                ('reference', models.CharField(max_length=255, null=True, verbose_name='Référence')),
                ('auteurs', models.CharField(max_length=255, null=True, verbose_name='Auteur(s)')),
                ('volume', models.CharField(max_length=255, null=True, verbose_name='Volume')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('type_pub', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pstypepublication')),
                ('typub', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pstypepublication2')),
                ('enseignant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant')),
            ],
        ),
        migrations.CreateModel(
            name='PsPJoint',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('fichier', models.FileField(upload_to='documents/%Y')),
                ('cours', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pscours')),
                ('cours2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pscours2')),
                ('pub', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pspublication')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='pscours',
            name='type_cours',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.pstypecours'),
        ),
        migrations.CreateModel(
            name='ParcoursSemestreUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestreUes', to='BasicData.annee')),
                ('parcoursSemestre', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestreUes', to='BasicData.parcourssemestre')),
                ('ue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestreUes', to='BasicData.ue')),
            ],
        ),
        migrations.AddField(
            model_name='parcourssemestre',
            name='semestre',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parcoursSemestres', to='BasicData.semestre'),
        ),
        migrations.CreateModel(
            name='MoyenneUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('moyenne_reelle', models.FloatField(blank=True, null=True, verbose_name='Moyenne reelle')),
                ('moyenne_repechee', models.FloatField(blank=True, null=True, verbose_name='Moyenne repechee')),
                ('valide', models.BooleanField(default=False, verbose_name='Valide')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='moyennes', to='BasicData.annee')),
                ('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='moyennes', to='BasicData.session')),
                ('ue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='moyennes', to='BasicData.ue')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='moyennes', to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='MoyenneEcue',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.FloatField(blank=True, default=None, null=True, verbose_name='Moyenne reelle')),
                ('note_repechee', models.FloatField(blank=True, default=None, null=True, verbose_name='Moyenne repechee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='moyennes', to='BasicData.ecue')),
                ('moyenneUe', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='moyenneUes', to='BasicData.moyenneue')),
            ],
        ),
        migrations.CreateModel(
            name='InactiveUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateField(auto_now_add=True)),
                ('updated', models.DateField(auto_now=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ie', to='BasicData.annee')),
                ('ue', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ie', to='BasicData.ue')),
            ],
        ),
        migrations.CreateModel(
            name='GroupTravail',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('type_cours', models.CharField(choices=[('CM', 'CM'), ('TP', 'TP'), ('TD', 'TD')], max_length=255, null=True, verbose_name='Type du Cours')),
                ('limite', models.IntegerField(null=True, verbose_name='Limite de place')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('niveau', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.niveau')),
                ('ufr', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.ufr')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='gradementionufr',
            name='mention',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gradeMentionUfrs', to='BasicData.mention'),
        ),
        migrations.AddField(
            model_name='gradementionufr',
            name='ufr',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gradeMentionUfrs', to='BasicData.ufr'),
        ),
        migrations.CreateModel(
            name='Evaluation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('date', models.DateTimeField(auto_now=True, verbose_name='Date')),
                ('is_noted', models.BooleanField(blank=True, default=False, null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='evaluations', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='evaluations', to='BasicData.ecue')),
                ('session', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='evaluations', to='BasicData.session')),
                ('typeEvaluation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='evaluations', to='BasicData.typeevaluation')),
                ('enseignant', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='evaluations', to='BasicData.enseignant')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='EmploiDuTemps',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dateDebut', models.DateField(null=True, verbose_name='Date de Début')),
                ('dateFin', models.DateField(null=True, verbose_name='Date de Fin')),
                ('activated', models.BooleanField(default=True, null=True)),
                ('ceated', models.DateField(auto_now_add=True)),
                ('updated', models.DateField(auto_now=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps', to='BasicData.ecue')),
                ('niveau', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps', to='BasicData.niveau')),
            ],
        ),
        migrations.CreateModel(
            name='EdtJour',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('heureDebut', models.CharField(max_length=6, null=True, verbose_name='Heure de debut')),
                ('jour', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='edtjour', to='BasicData.jour')),
                ('programme', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='edtjour', to='BasicData.emploidutemps')),
                ('salle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='edtjour', to='BasicData.salle')),
            ],
        ),
        migrations.AddField(
            model_name='ecue',
            name='ue',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ecues', to='BasicData.ue'),
        ),
        migrations.AddField(
            model_name='demandeactes',
            name='type_demande',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='demact', to='BasicData.typedemandeactes'),
        ),
        migrations.AddField(
            model_name='demandeactes',
            name='ufr',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='demact', to='BasicData.ufr'),
        ),
        migrations.CreateModel(
            name='AnonymatValidation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('isvalidate', models.BooleanField(default=False, max_length=255, verbose_name='Est Valide')),
                ('evaluation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anonymatValidations', to='BasicData.evaluation')),
                ('ufr', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anonymatValidations', to='BasicData.ufr')),
            ],
        ),
        migrations.CreateModel(
            name='SyllabusUe',
            fields=[
                ('syllabusmodel_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='BasicData.syllabusmodel')),
                ('categorie', models.ManyToManyField(blank=True, related_name='syllabusue', to='BasicData.CategorieUe')),
                ('ue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='syllabusue', to='BasicData.ecue')),
            ],
            bases=('BasicData.syllabusmodel',),
        ),
        migrations.CreateModel(
            name='SyllabusEcue',
            fields=[
                ('syllabusmodel_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='BasicData.syllabusmodel')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.ecue')),
            ],
            bases=('BasicData.syllabusmodel',),
        ),
        migrations.CreateModel(
            name='SeanceCours',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type_cours', models.CharField(choices=[('CM', 'CM'), ('TP', 'TP'), ('TD', 'TD')], max_length=255, null=True, verbose_name='Type du Cours')),
                ('date', models.DateField(null=True, verbose_name='Date de début')),
                ('debut', models.TimeField(null=True, verbose_name='Heure de début')),
                ('fin', models.TimeField(null=True, verbose_name='Heure de fin')),
                ('debut_delegue', models.TimeField(null=True, verbose_name='Heure de début du délégué')),
                ('fin_delegue', models.TimeField(null=True, verbose_name='Heure de fin du délégué')),
                ('etudiant_valid', models.BooleanField(default=False, verbose_name='Validation Etudiant')),
                ('admin_valid', models.BooleanField(default=False, verbose_name='Validation Admin')),
                ('paye', models.BooleanField(default=False, verbose_name='Payée')),
                ('contenu', models.TextField(null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seancecours', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seancecours', to='BasicData.ecue')),
                ('salle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seancecours', to='BasicData.salle')),
                ('enseignant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seancecours', to='BasicData.enseignant')),
            ],
        ),
        migrations.CreateModel(
            name='Seance',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('date', models.DateField(auto_now=True, verbose_name='Date')),
                ('duree', models.TimeField(auto_now=True, verbose_name='Duree')),
                ('heureDebut', models.DateTimeField(auto_now=True, verbose_name='Heure de debut')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seances', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seances', to='BasicData.ecue')),
                ('salle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='seances', to='BasicData.salle')),
                ('enseignants', models.ManyToManyField(related_name='seances', to='BasicData.Enseignant')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Reinscription',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('done', models.BooleanField(default=False)),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('niveau', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.niveau')),
                ('etudiant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='Reclamations',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type_discipline', models.CharField(blank=True, choices=[('UE', 'UE'), ('ECUE', 'ECUE'), ('Autres', 'Autres')], max_length=20, null=True, verbose_name='Type Discipline')),
                ('code_discipline', models.CharField(blank=True, max_length=20, null=True, verbose_name='Code Discipline')),
                ('motif', models.CharField(blank=True, choices=[("Erreur sur l'identité", "Erreur sur l'identité"), ("Omission de note d'examens ou TD", "Omission de note d'examens ou TD"), ('Moyenne mal calculée', 'Moyenne mal calculée'), ('Autres', 'Autres')], max_length=100, null=True, verbose_name='Motif')),
                ('detail', models.TextField(blank=True, null=True, verbose_name='Detail')),
                ('status', models.CharField(choices=[('Recevable', 'Recevable'), ('Non-recevable', 'Non-recevable'), ('En Attente', 'En Attente')], default='En Attente', max_length=20, verbose_name='Status')),
                ('reception', models.BooleanField(default=False)),
                ('archive', models.BooleanField(default=False)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamationse', to='BasicData.annee')),
                ('niveau', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamationse', to='BasicData.niveau')),
                ('ufr', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamationse', to='BasicData.ufr')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamationse', to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='Reclamation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('motif', models.CharField(max_length=255, verbose_name='Motif')),
                ('date', models.DateField(auto_now=True, verbose_name='Date')),
                ('ue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamations', to='BasicData.ue')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reclamations', to='BasicData.etudiant')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='pstypepublication',
            name='enseignant',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant'),
        ),
        migrations.AddField(
            model_name='pstypecours',
            name='enseignant',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant'),
        ),
        migrations.CreateModel(
            name='PsLogiciel',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('fonction', models.CharField(max_length=255, null=True, verbose_name='Fonction')),
                ('description', models.TextField(null=True, verbose_name='Description')),
                ('participant', models.CharField(max_length=255, null=True, verbose_name='Participants')),
                ('url', models.CharField(max_length=255, null=True, verbose_name='URL')),
                ('enseignant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='PsGroupeRech',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('libelle', models.CharField(max_length=255, verbose_name='Libelle')),
                ('institut', models.CharField(max_length=255, null=True, verbose_name='Titre')),
                ('enseignant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='pscours2',
            name='enseignant',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant'),
        ),
        migrations.CreateModel(
            name='PersonnelService',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('prise_de_fonction', models.DateField(blank=True, max_length=255, null=True, verbose_name='Prise de fonction')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('service', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.service')),
                ('personnel', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.personnel')),
            ],
        ),
        migrations.CreateModel(
            name='Note',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.FloatField(blank=True, default=None, max_length=255, null=True, verbose_name='Note')),
                ('date', models.DateField(auto_now=True, max_length=255, verbose_name='Date')),
                ('isBlocked', models.BooleanField(default=False, verbose_name='Modifiable')),
                ('annee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='BasicData.annee')),
                ('ecue', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='BasicData.ecue')),
                ('evaluation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='BasicData.evaluation')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='NiveauEtudiant',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='niveauetudiant', to='BasicData.annee')),
                ('niveau', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='niveauetudiant', to='BasicData.niveau')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='niveauetudiant', to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='GroupEtudiant',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('groupe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.grouptravail')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='GroupEnseignant',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('groupe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.grouptravail')),
                ('enseignant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='BasicData.enseignant')),
            ],
        ),
        migrations.CreateModel(
            name='EtudiantUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('parcoursSemestreUe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='etudiantUes', to='BasicData.parcourssemestreue')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='etudiantUes', to='BasicData.etudiant')),
            ],
        ),
        migrations.AddField(
            model_name='etudiant',
            name='ufr',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='etudiant', to='BasicData.ufr'),
        ),
        migrations.CreateModel(
            name='EnseignantUfr',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('annee', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUfrs', to='BasicData.annee')),
                ('ufr', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUfrs', to='BasicData.ufr')),
                ('enseignant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUfrs', to='BasicData.enseignant')),
            ],
        ),
        migrations.AddField(
            model_name='enseignantue',
            name='enseignant',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='enseignantUes', to='BasicData.enseignant'),
        ),
        migrations.AddField(
            model_name='enseignant',
            name='ufr',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='enseignants', to='BasicData.ufr'),
        ),
        migrations.AddField(
            model_name='enseignant',
            name='ufrs',
            field=models.ManyToManyField(to='BasicData.Ufr'),
        ),
        migrations.CreateModel(
            name='EmploiDuTemps2',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('lundi', models.CharField(max_length=20, null=True, verbose_name='Lundi')),
                ('mardi', models.CharField(max_length=20, null=True, verbose_name='Mardi')),
                ('mercredi', models.CharField(max_length=20, null=True, verbose_name='mercredi')),
                ('jeudi', models.CharField(max_length=20, null=True, verbose_name='Jeudi')),
                ('vendredi', models.CharField(max_length=20, null=True, verbose_name='vendredi')),
                ('samedi', models.CharField(max_length=20, null=True, verbose_name='Samedi')),
                ('type_lun', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Lundi')),
                ('type_mar', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Mardi')),
                ('type_mer', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Mercredi')),
                ('type_jeu', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Jeudi')),
                ('type_ven', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Vendredi')),
                ('type_sam', models.CharField(choices=[('CM', 'CM'), ('TD', 'TD'), ('TP', 'TP')], max_length=20, null=True, verbose_name='Type Samedi')),
                ('mode_lun', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Lundi')),
                ('mode_mar', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Mardi')),
                ('mode_mer', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Mercredi')),
                ('mode_jeu', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Jeudi')),
                ('mode_ven', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Vendredi')),
                ('mode_sam', models.CharField(choices=[('Présentiel', 'Présentiel'), ('En ligne', 'En ligne')], max_length=20, null=True, verbose_name='Mode Samedi')),
                ('url_lun', models.CharField(default='', max_length=255, null=True, verbose_name='Url Lundi')),
                ('url_mar', models.CharField(default='', max_length=255, null=True, verbose_name='Url Mardi')),
                ('url_mer', models.CharField(default='', max_length=255, null=True, verbose_name='Url Mercredi')),
                ('url_jeu', models.CharField(default='', max_length=255, null=True, verbose_name='Url Jeudi')),
                ('url_ven', models.CharField(default='', max_length=255, null=True, verbose_name='Url Vendredi')),
                ('url_sam', models.CharField(default='', max_length=255, null=True, verbose_name='Url Samedi')),
                ('ceated', models.DateField(auto_now_add=True)),
                ('updated', models.DateField(auto_now=True)),
                ('activated', models.BooleanField(default=True, null=True)),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.ecue')),
                ('niveau', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.niveau')),
                ('salle', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.salle')),
                ('salle2_jeu', models.ManyToManyField(blank=True, related_name='sal2_jeu', to='BasicData.Salle')),
                ('salle2_lun', models.ManyToManyField(blank=True, related_name='sal2_lun', to='BasicData.Salle')),
                ('salle2_mar', models.ManyToManyField(blank=True, related_name='sal2_mar', to='BasicData.Salle')),
                ('salle2_mer', models.ManyToManyField(blank=True, related_name='sal2_mer', to='BasicData.Salle')),
                ('salle2_sam', models.ManyToManyField(blank=True, related_name='sal2_sam', to='BasicData.Salle')),
                ('salle2_ven', models.ManyToManyField(blank=True, related_name='sal2_ven', to='BasicData.Salle')),
                ('salle_jeu', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_jeu', to='BasicData.salle')),
                ('salle_lun', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_lun', to='BasicData.salle')),
                ('salle_mar', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_mar', to='BasicData.salle')),
                ('salle_mer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_mer', to='BasicData.salle')),
                ('salle_sam', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_sam', to='BasicData.salle')),
                ('salle_ven', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sal_ven', to='BasicData.salle')),
                ('validite', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.validite')),
                ('enseignants', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps2', to='BasicData.enseignant')),
            ],
        ),
        migrations.AddField(
            model_name='emploidutemps',
            name='enseignants',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emploidutemps', to='BasicData.enseignant'),
        ),
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('document', models.FileField(upload_to='documents/%Y')),
                ('valid', models.BooleanField(default=False)),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('typedoc', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.typedocument')),
                ('etudiant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.etudiant')),
            ],
        ),
        migrations.AddField(
            model_name='demandeactes',
            name='etudiant',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='demact', to='BasicData.etudiant'),
        ),
        migrations.CreateModel(
            name='DeliberationUe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.FloatField(max_length=255, null=True, verbose_name='Note')),
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberationsUe', to='BasicData.annee')),
                ('session', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberationsUe', to='BasicData.session')),
                ('ue', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='deliberationsUe', to='BasicData.ue')),
                ('user', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberationsUe', to='BasicData.enseignant')),
            ],
        ),
        migrations.CreateModel(
            name='Deliberation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.FloatField(max_length=255, null=True, verbose_name='Note')),
                ('created', models.DateTimeField(auto_now_add=True, null=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberations', to='BasicData.annee')),
                ('ecue', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='deliberations', to='BasicData.ecue')),
                ('session', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberations', to='BasicData.session')),
                ('user', models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='deliberations', to='BasicData.enseignant')),
            ],
        ),
        migrations.CreateModel(
            name='Compensation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.FloatField(blank=True, default=None, max_length=255, null=True, verbose_name='Note')),
                ('created', models.DateField(auto_now_add=True, null=True)),
                ('update', models.DateField(auto_now=True, null=True)),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.annee')),
                ('ue', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.ue')),
                ('etudiant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='BasicData.etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='Classe',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('status', models.CharField(max_length=255, null=True, verbose_name='Status')),
                ('annee', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='BasicData.annee')),
                ('niveau', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='BasicData.niveau')),
                ('parcours', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='BasicData.parcours')),
                ('ufr', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='classes', to='BasicData.ufr')),
                ('etudiants', models.ManyToManyField(related_name='classes', to='BasicData.Etudiant')),
            ],
        ),
        migrations.CreateModel(
            name='Anonymat',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=255, verbose_name='Code')),
                ('annee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anonymats', to='BasicData.annee')),
                ('ecue', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anonymats', to='BasicData.ecue')),
                ('etudiant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='anonymats', to='BasicData.etudiant')),
            ],
        ),
    ]
