from django.db import models
import re
import json
import os
import csv
import pandas

class AcademicLevel(models.TextChoices):  # On définit une nouvelle classe à l'intérieur de la classe précédente
    MiddleSchool = 'MS', 'Middle School'
    HighSchool = 'HS', 'High School'
    LicenseDegree = 'LD', 'License Degree'
    PreparatoryClass = 'PC', 'Preparatory Class'
    MasterDegree = 'MD', 'Master Degree'
    DoctorateDegree = 'DD', 'Doctorate Degree'
    ProfessionalTraining = 'PT', 'Professional Training'
    default = 'na', ''

class SubjectStudied(models.TextChoices):  # Celle-ci sert pour la liste des matières enseignées
    Mathematics = 'MA', 'Mathematics'
    Physics = 'PH', 'Physics'
    Chemistry = 'CH', 'Chemistry'
    Biology = 'BI', 'Biology'
    English = 'EN', 'English'
    Spanish = 'SP', 'Spanish'
    French = 'FR', 'French'
    History = 'HI', 'History'
    Geography = 'GE', 'Geography'
    Philosophy = 'PI', 'Philosophy'
    ComputerSciences = 'CS', 'Computer Sciences'
    Finances = 'FI', 'Finances'
    Marketing = 'MR', 'Marketing'
    default = 'na', ''

def createFirstCourse(userPID):
    firstCourse = {
        'name': 'Premier cours ?',
        'user': userPID,    
    }
