diff --git a/manager/database.php b/manager/database.php index 5a56bdb..ac766d3 100755 --- a/manager/database.php +++ b/manager/database.php @@ -84,6 +84,50 @@ class DataBase{ +/*********************************************************************************/ +/* __ __ ____ ____ */ +/* | \/ |/ ___/ ___| */ +/* | |\/| | | | | */ +/* | | | | |__| |___ */ +/* |_| |_|\____\____| */ +/* */ +/*********************************************************************************/ + + /* intègre un MCC à la BDD + * + * @semestre l'UID du semestre concerné + * @mcc contient toutes les données du MCC + * + */ + public static function setMCC($semestre, $mcc){debug(); + + foreach($mcc as $ue){ + + $mcc_ue = ueRepo::forMCC($semestre, $ue['nom'], $ue['libelle'], $ue['coefficient']); + + foreach($ue['modules'] as $module){ + + $mcc_module = moduleRepo::forMCC($mcc_ue, $module['nom'], $module['libelle'], $module['coefficient']); + // echo '  '.$module['nom'].'
'; + + foreach($module['controles'] as $controle){ + + // $controle = controleRepo::forMCC($mcc_module, $controle['nom'], $controle['libelle'], $controle['coefficient']); + + // echo '    '.$controle['nom'].'
'; + + } + + + } + + + } + + } + + + /*************************************************************************************/ /* _ _ _______ _____ _ _____ _____ _______ ______ _ _ _____ */ diff --git a/manager/phpExcel.php b/manager/phpExcel.php index 37a174b..2d5a921 100755 --- a/manager/phpExcel.php +++ b/manager/phpExcel.php @@ -147,7 +147,7 @@ function xlsx_switch_lvl1($request, $answer){ /* permet d'éviter les doublons */ - $uelist = array(); // contiendra le tableau de retour + $mcc = array(); // contiendra le tableau de retour $ueuid = array(); /****************************/ @@ -165,7 +165,7 @@ function xlsx_switch_lvl1($request, $answer){ if( $line[0] != null && !in_array($line[0], $ueuid) ){ // on créé l'UE dans la liste s'il n'y est pas déjà array_push( // on ajoute l'UE - $uelist, + $mcc, array( 'nom' => $line[0], 'libelle' => $line[1], @@ -185,9 +185,9 @@ function xlsx_switch_lvl1($request, $answer){ =========================================================================*/ if( /*$line[3] != null && */ $line[4] != null && $line[5] != null ){ - if( $line[3] != null && !in_array($line[3], $uelist[$ueIndex]['moduid']) ){ // on créé le module dans la liste de cet UE s'il n'y est pas déjà + if( $line[3] != null && !in_array($line[3], $mcc[$ueIndex]['moduid']) ){ // on créé le module dans la liste de cet UE s'il n'y est pas déjà array_push( // on ajoute l'UE - $uelist[$ueIndex]['modules'], + $mcc[$ueIndex]['modules'], array( 'nom' => $line[3], 'libelle' => $line[4], @@ -197,20 +197,20 @@ function xlsx_switch_lvl1($request, $answer){ ) ); - array_push($uelist[$ueIndex]['moduid'], $line[3]); // on dis qu'on a déjà enregistré le module + array_push($mcc[$ueIndex]['moduid'], $line[3]); // on dis qu'on a déjà enregistré le module } } if( $line[3] != null ) - $modIndex = array_search($line[3], $uelist[$ueIndex]['moduid']); + $modIndex = array_search($line[3], $mcc[$ueIndex]['moduid']); /* [3] On récupère les contrôles du module, si les champs sont définis =========================================================================*/ if( $line[6] != null && $line[7] != null && $line[8] != null ){ - if( !in_array($line[6], $uelist[$ueIndex]['modules'][$modIndex]['ctrluid']) ){ // on créé le contrôle dans la liste de ce module s'il n'y est pas déjà + if( !in_array($line[6], $mcc[$ueIndex]['modules'][$modIndex]['ctrluid']) ){ // on créé le contrôle dans la liste de ce module s'il n'y est pas déjà array_push( // on ajoute l'UE - $uelist[$ueIndex]['modules'][$modIndex]['controles'], + $mcc[$ueIndex]['modules'][$modIndex]['controles'], array( 'nom' => $line[6], 'libelle' => $line[7], @@ -218,7 +218,7 @@ function xlsx_switch_lvl1($request, $answer){ ) ); - array_push($uelist[$ueIndex]['modules'][$modIndex]['ctrluid'], $line[6]); // on dis qu'on a déjà enregistré le module + array_push($mcc[$ueIndex]['modules'][$modIndex]['ctrluid'], $line[6]); // on dis qu'on a déjà enregistré le module } } @@ -231,15 +231,15 @@ function xlsx_switch_lvl1($request, $answer){ /* [4] Affinage des données, on supprime les données temporaires =========================================================================*/ - foreach($uelist as $iter_ue=>$ue){ - unset( $uelist[$iter_ue]['moduid'] ); + foreach($mcc as $iter_ue=>$ue){ + unset( $mcc[$iter_ue]['moduid'] ); - foreach($uelist[$iter_ue]['modules'] as $iter_m=>$mod) - unset( $uelist[$iter_ue]['modules'][$iter_m]['ctrluid'] ); + foreach($mcc[$iter_ue]['modules'] as $iter_m=>$mod) + unset( $mcc[$iter_ue]['modules'][$iter_m]['ctrluid'] ); } - $answer->uelist = $uelist; + $answer->mcc = $mcc; $answer->request = 'success'; diff --git a/manager/repo/controle.php b/manager/repo/controle.php index 7dd36f2..c190e43 100755 --- a/manager/repo/controle.php +++ b/manager/repo/controle.php @@ -26,7 +26,7 @@ class controleRepo extends DBAccess{ /* [1] On cherche juste le contrôle avec l'id spécifié ============================================================*/ - $getControleInfo = DataBase::getPDO()->prepare("SELECT ctrl.id_controle as id, ctrl.id_mcc_module, m.nom as module, m.libelle as modulelib, s.id_semestre, ctrl.intitule, ctrl.base, ctrl.coefficient, ctrl.date_publication + $getControleInfo = DataBase::getPDO()->prepare("SELECT ctrl.id_controle as id, ctrl.nom, ctrl.id_mcc_module, m.nom as module, m.libelle as modulelib, s.id_semestre, ctrl.libelle, ctrl.base, ctrl.coefficient, ctrl.date_publication FROM controle as ctrl, mcc_module as mcc_m, mcc_ue, semestre as s, module as m WHERE ctrl.id_mcc_module = mcc_m.id_mcc_module AND mcc_m.id_module = m.id_module @@ -44,7 +44,7 @@ class controleRepo extends DBAccess{ /* [2] On cherche le contrôle avec l'id spécifié qu'enseignant l'@enseignant ==============================================================================*/ - $getControleInfo = DataBase::getPDO()->prepare("SELECT ctrl.id_controle as id, ctrl.id_mcc_module, m.nom as module, m.libelle as modulelib, s.id_semestre, ctrl.intitule, ctrl.base, ctrl.coefficient, ctrl.date_publication + $getControleInfo = DataBase::getPDO()->prepare("SELECT ctrl.id_controle as id, ctrl.nom, ctrl.id_mcc_module, m.nom as module, m.libelle as modulelib, s.id_semestre, ctrl.libelle, ctrl.base, ctrl.coefficient, ctrl.date_publication FROM controle as ctrl, mcc_module as mcc_m, mcc_ue, semestre as s, module as m, enseignement as ens WHERE ctrl.id_mcc_module = mcc_m.id_mcc_module AND mcc_m.id_module = m.id_module @@ -83,7 +83,7 @@ class controleRepo extends DBAccess{ * */ public static function forStudent($module, $semestre){ - $getControleList = DataBase::getPDO()->prepare("SELECT DISTINCT ctrl.id_controle as id, ctrl.id_mcc_module, ctrl.intitule, ctrl.base, ctrl.coefficient, ctrl.date_publication + $getControleList = DataBase::getPDO()->prepare("SELECT DISTINCT ctrl.id_controle as id, ctrl.nom, ctrl.id_mcc_module, ctrl.libelle, ctrl.base, ctrl.coefficient, ctrl.date_publication FROM controle as ctrl, module as m, mcc_module as mcc_m, mcc_ue, semestre as s WHERE ctrl.id_mcc_module = mcc_m.id_mcc_module AND mcc_m.id_mcc_ue = mcc_ue.id_mcc_ue @@ -111,7 +111,7 @@ class controleRepo extends DBAccess{ * */ public static function forTeacher($enseignant, $module, $semestre){ - $getControleList = DataBase::getPDO()->prepare("SELECT DISTINCT ctrl.id_controle as id, ctrl.id_mcc_module, ctrl.intitule, ctrl.base, ctrl.coefficient, ctrl.date_publication + $getControleList = DataBase::getPDO()->prepare("SELECT DISTINCT ctrl.id_controle as id, ctrl.nom, ctrl.id_mcc_module, ctrl.libelle, ctrl.base, ctrl.coefficient, ctrl.date_publication FROM enseignement as ens, module as m, mcc_module as mcc_m, mcc_ue, controle as ctrl WHERE ens.id_mcc_module = mcc_m.id_mcc_module AND mcc_m.id_mcc_module = ctrl.id_mcc_module diff --git a/manager/repo/module.php b/manager/repo/module.php index a5c4125..24b3444 100755 --- a/manager/repo/module.php +++ b/manager/repo/module.php @@ -185,4 +185,81 @@ class moduleRepo extends DBAccess{ + + /* retourne l'UID d'un mcc_module s'il existe sinon créé tout ce qui a besoin et on retourne l'UID + * + * @mcc_ue l'UID du mcc_ue en question + * @nom le code du module en question + * @libelle le libellé du module en question + * @coefficient le coefficient du module en question dans le mcc_ue en question + * + * + * @return UID retourne l'UID du MCC_MODULE si tout s'est bien passé + * @return FALSE retourne FALSE s'il y a eu une erreur + * + */ + public static function forMCC($mcc_ue, $nom, $libelle, $coefficient){ + $count = 0; $maxLoop = 2; + + /* ON VÉRIFIE QUE L'UE EN LUI-MÊME (NOM/LIBELLÉ) EXISTE DANS LA BDD */ + $getModuleUID = DataBase::getPDO()->prepare("SELECT id_module as id FROM module WHERE nom = :nom AND libelle = :libelle"); + $getModuleUID->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + while( !$moduleUID = $getModuleUID->fetch()['id'] ){ // on vérifie l'existence de cet UE + + /* [1] SI LE MODULE N'EXISTE PAS => ON LE CRÉÉ + =====================================================*/ + $creerModule = DataBase::getPDO()->prepare("INSERT INTO module(id_module, nom, libelle) VALUES(DEFAULT, :nom, :libelle)"); + $creerModule->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + $getModuleUID = DataBase::getPDO()->prepare("SELECT id_module as id FROM module WHERE nom = :nom AND libelle = :libelle"); + $getModuleUID->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + if( $count >= $maxLoop ) return false; + $count++; + + } + + + /* ON VÉRIFIE QUE LE MODULE APPARTIENT AU MCC DE CE MCC_UE */ + $getMccModuleUID = DataBase::getPDO()->prepare("SELECT mcc_m.id_mcc_module as id + FROM mcc_ue, module as m, mcc_module as mcc_m + WHERE mcc_ue.id_mcc_ue = mcc_m.id_mcc_ue + AND mcc_m.id_module = m.id_module + AND mcc_ue.id_mcc_ue = :mcc_ue + AND mcc_m.id_module = :moduleUID"); + $getMccModuleUID->execute(array( ':mcc_ue' => $mcc_ue, ':moduleUID' => $moduleUID )); + + while( !($mccModuleUID=$getMccModuleUID->fetch()['id']) ){ // si on a pas de résultat ou qu'on a un résultat différent de l'moduleUID déjà récupéré + + /* [2] SI LE MCC_UE N'EXISTE PAS => ON LE CRÉÉ + ==========================================================*/ + $creerMccModule = DataBase::getPDO()->prepare("INSERT INTO mcc_module(id_mcc_module, id_mcc_ue, id_module, coefficient) VALUES(DEFAULT, :mcc_ue, :moduleUID, :coefficient)"); + $creerMccModule->execute(array( ':mcc_ue' => $mcc_ue, ':moduleUID' => $moduleUID, ':coefficient' => $coefficient )); + + + $getMccModuleUID = DataBase::getPDO()->prepare("SELECT mcc_m.id_mcc_module as id + FROM mcc_ue, module as m, mcc_module as mcc_m + WHERE mcc_ue.id_mcc_ue = mcc_m.id_mcc_ue + AND mcc_m.id_module = m.id_module + AND mcc_ue.id_mcc_ue = :mcc_ue + AND mcc_m.id_module = :moduleUID"); + $getMccModuleUID->execute(array( ':mcc_ue' => $mcc_ue, ':moduleUID' => $moduleUID )); + + if( $count >= $maxLoop ) return false; + $count++; + } + + + + /* [3] ON MET À JOUR LE COEFFICIENT AU CAS OÙ LE MCC_UE EXISTAIT + ==================================================================*/ + $updateCoeff = DataBase::getPDO()->prepare("UPDATE mcc_module SET coefficient = :coefficient WHERE id_mcc_module = :mccModuleUID"); + $updateCoeff->execute(array( ':coefficient' => $coefficient, ':mccModuleUID' => $mccModuleUID )); + + // on retourne enfin l'UID du mcc_ue en question + return $mccModuleUID; + + } + } \ No newline at end of file diff --git a/manager/repo/ue.php b/manager/repo/ue.php index b3e36c9..378c99f 100755 --- a/manager/repo/ue.php +++ b/manager/repo/ue.php @@ -102,7 +102,7 @@ class ueRepo extends DBAccess{ - /* RENVOIE LA LISTE DES UEs D'UN SEMESTRE D'UNE ANNEE COURANTE + /* RENVOIE LA LISTE DES UEs D'UN SEMESTRE (D'UNE ANNEE PARTICULIÈRE) * * @semestre l'UID du semestre en question * @@ -170,4 +170,81 @@ class ueRepo extends DBAccess{ + + + /* retourne l'UID d'un mcc_ue s'il existe sinon créé tout ce qui a besoin et on retourne l'UID + * + * @semestre l'UID du semestre en question + * @nom le code de l'UE en question + * @libelle le libellé de l'UE en question + * @coefficient le coefficient de l'UE en question dans le semestre en question + * + * + * @return UID retourne l'UID du MCC_UE si tout s'est bien passé + * @return FALSE retourne FALSE s'il y a eu une erreur + * + */ + public static function forMCC($semestre, $nom, $libelle, $coefficient){ + $count = 0; + + /* ON VÉRIFIE QUE L'UE EN LUI-MÊME (NOM/LIBELLÉ) EXISTE DANS LA BDD */ + $getUEUID = DataBase::getPDO()->prepare("SELECT id_ue as id FROM ue WHERE nom = :nom AND libelle = :libelle"); + $getUEUID->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + while( !$ueUID = $getUEUID->fetch()['id'] ){ // on vérifie l'existence de cet UE + + /* [1] SI UE N'EXISTE PAS => ON LE CRÉÉ + =====================================================*/ + $creerUE = DataBase::getPDO()->prepare("INSERT INTO ue(id_ue, nom, libelle) VALUES(DEFAULT, :nom, :libelle)"); + $creerUE->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + $getUEUID = DataBase::getPDO()->prepare("SELECT id_ue as id FROM ue WHERE nom = :nom AND libelle = :libelle"); + $getUEUID->execute(array( ':nom' => $nom, ':libelle' => $libelle )); + + if( $count > 10 ) return false; + $count++; + + } + + + /* ON VÉRIFIE QUE L'UE APPARTIENT AU MCC DE CE SEMESTRE */ + $getMccUEUID = DataBase::getPDO()->prepare("SELECT mcc_ue.id_mcc_ue as id + FROM ue, mcc_ue + WHERE mcc_ue.id_ue = ue.id_ue + AND mcc_ue.id_semestre = :semestre + AND ue.id_ue = :ueUID"); + $getMccUEUID->execute(array( ':semestre' => $semestre, ':ueUID' => $ueUID )); + + while( !($mccUeUID=$getMccUEUID->fetch()['id']) ){ // si on a pas de résultat ou qu'on a un résultat différent de l'ueUID déjà récupéré + + /* [2] SI LE MCC_UE N'EXISTE PAS => ON LE CRÉÉ + ==========================================================*/ + $creeMccUE = DataBase::getPDO()->prepare("INSERT INTO mcc_ue(id_mcc_ue, id_semestre, id_ue, coefficient) VALUES(DEFAULT, :semestre, :ueUID, :coefficient)"); + $creeMccUE->execute(array( ':semestre' => $semestre, ':ueUID' => $ueUID, ':coefficient' => $coefficient )); + + $getMccUEUID = DataBase::getPDO()->prepare("SELECT mcc_ue.id_mcc_ue as id + FROM ue, mcc_ue + WHERE mcc_ue.id_ue = ue.id_ue + AND mcc_ue.id_semestre = :semestre + AND ue.id_ue = :ueUID"); + $getMccUEUID->execute(array( ':semestre' => $semestre, ':ueUID' => $ueUID )); + + + if( $count > 10 ) return false; + $count++; + } + + + + /* [3] ON MET À JOUR LE COEFFICIENT AU CAS OÙ LE MCC_UE EXISTAIT + ==================================================================*/ + $updateCoeff = DataBase::getPDO()->prepare("UPDATE mcc_ue SET coefficient = :coefficient WHERE id_mcc_ue = :mccUeUID"); + $updateCoeff->execute(array( ':coefficient' => $coefficient, ':mccUeUID' => $mccUeUID )); + + // on retourne enfin l'UID du mcc_ue en question + return $mccUeUID; + + } + + } \ No newline at end of file diff --git a/page/modules.php b/page/modules.php index 60295bb..9b134fa 100755 --- a/page/modules.php +++ b/page/modules.php @@ -490,14 +490,15 @@ if( permission('admin') ){ // si l'utilisateur est un admin -if( permission('admin') ){ +if( false && permission('admin') ){ require_once __ROOT__.'/manager/phpExcel.php'; + require_once __ROOT__.'/manager/database.php'; $request = new stdClass(); $answer = new stdClass(); $request->level_1 = 'import_mcc'; - // $request->docPath = __ROOT__.'/src/excelTemplates/mcc.xlsx'; - $request->docPath = __ROOT__.'/src/nouveau_modele.xlsx'; + $request->docPath = __ROOT__.'/src/excelTemplates/mcc.xlsx'; + // $request->docPath = __ROOT__.'/src/nouveau_modele.xlsx'; xlsx_switch_lvl1($request, $answer); @@ -506,7 +507,9 @@ if( permission('admin') ){ if( $answer->request == 'success' ){ echo "
"; - var_dump( $answer->uelist ); + $semestre = 1; + + // var_dump( DataBase::getInstance()->setMCC($semestre, $answer->mcc) ); echo "
"; }else diff --git a/src/.~lock.nouveau_modele.xlsx# b/src/.~lock.nouveau_modele.xlsx# deleted file mode 100644 index 350a912..0000000 --- a/src/.~lock.nouveau_modele.xlsx# +++ /dev/null @@ -1 +0,0 @@ -,xdrm,linux,20.11.2015 13:38,file:///home/xdrm/.config/libreoffice/4; \ No newline at end of file diff --git a/src/excelTemplates/.~lock.mcc.xlsx# b/src/excelTemplates/.~lock.mcc.xlsx# new file mode 100644 index 0000000..d3c5abe --- /dev/null +++ b/src/excelTemplates/.~lock.mcc.xlsx# @@ -0,0 +1 @@ +,xdrm,linux,20.11.2015 16:35,file:///home/xdrm/.config/libreoffice/4; \ No newline at end of file diff --git a/src/excelTemplates/mcc.xlsx b/src/excelTemplates/mcc.xlsx index 3fd8430..bca9dd3 100755 Binary files a/src/excelTemplates/mcc.xlsx and b/src/excelTemplates/mcc.xlsx differ diff --git a/xdoc/empty.sql b/xdoc/empty.sql new file mode 100644 index 0000000..64a61d0 --- /dev/null +++ b/xdoc/empty.sql @@ -0,0 +1,589 @@ +-- phpMyAdmin SQL Dump +-- version 4.0.10deb1 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Generation Time: Nov 20, 2015 at 05:08 PM +-- Server version: 5.5.46-0ubuntu0.14.04.2 +-- PHP Version: 5.5.9-1ubuntu4.14 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- +-- Database: `sid2` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `appartenance` +-- + +CREATE TABLE IF NOT EXISTS `appartenance` ( + `id_appartenance` int(11) NOT NULL AUTO_INCREMENT, + `id_etudiant` varchar(50) NOT NULL, + `id_groupe` int(11) NOT NULL, + `id_semestre` int(11) NOT NULL, + PRIMARY KEY (`id_appartenance`), + KEY `id_etudiant` (`id_etudiant`), + KEY `id_groupe` (`id_groupe`), + KEY `id_semestre` (`id_semestre`), + KEY `identifiant` (`id_etudiant`), + KEY `id_etudiant_2` (`id_etudiant`), + KEY `id_groupe_2` (`id_groupe`), + KEY `id_semestre_2` (`id_semestre`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=104 ; + +-- +-- RELATIONS FOR TABLE `appartenance`: +-- `id_etudiant` +-- `utilisateur` -> `identifiant` +-- `id_groupe` +-- `groupe` -> `id_groupe` +-- `id_semestre` +-- `semestre` -> `id_semestre` +-- + +-- +-- Dumping data for table `appartenance` +-- + +INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES +(1, 'mrd1609a', 2, 2), +(2, 'ihf1991a', 8, 4), +(3, 'mma1990a', 13, 1), +(4, 'lme1952a', 15, 3), +(5, 'imf1922a', 21, 1), +(6, 'gyy1983a', 4, 4), +(7, 'otm1902a', 14, 2), +(8, 'tnx1949a', 12, 4), +(9, 'sjl1937a', 4, 4), +(10, 'anj1991a', 16, 4), +(11, 'xdh1989a', 20, 4), +(12, 'agl1956a', 3, 3), +(13, 'mhu1946a', 21, 1), +(14, 'cvv1936a', 14, 2), +(15, 'mzh1955a', 6, 2), +(16, 'pdi1904a', 19, 3), +(17, 'cuk1947a', 10, 2), +(18, 'non1968a', 22, 2), +(19, 'hmn1970a', 1, 1), +(20, 'hth1975a', 5, 1), +(21, 'liw1940a', 6, 2), +(22, 'dtg1946a', 18, 2), +(23, 'oxz1985a', 7, 3), +(24, 'ono1984a', 14, 2), +(25, 'auy1966a', 15, 3), +(26, 'dui1946a', 1, 1), +(27, 'cyw1979a', 24, 4), +(28, 'pfv1965a', 3, 3), +(29, 'oqz1937a', 24, 4), +(30, 'aft1950a', 7, 3), +(31, 'bae1943a', 8, 4), +(32, 'kul1903a', 9, 1), +(33, 'rmj1965a', 11, 3), +(34, 'yyt1926a', 17, 1), +(35, 'ktz1997a', 6, 2), +(36, 'hku1995a', 17, 1), +(37, 'zgy1948a', 10, 2), +(38, 'vau1957a', 23, 3), +(39, 'hsx1927a', 19, 3), +(40, 'eca1977a', 3, 3), +(41, 'wpa1966a', 20, 4), +(42, 'qoe1974a', 20, 4), +(43, 'tkz1955a', 11, 3), +(44, 'wnx1995a', 16, 4), +(45, 'sft1994a', 2, 2), +(46, 'vgb1979a', 11, 3), +(47, 'wbt1993a', 19, 3), +(48, 'xtb1903a', 11, 3), +(49, 'msj1985a', 13, 1), +(50, 'wvn1982a', 9, 1), +(51, 'psg1965a', 4, 4), +(52, 'hpa1908a', 5, 1), +(53, 'maq1980a', 19, 3), +(54, 'agq1929a', 13, 1), +(55, 'gwe1975a', 18, 2), +(56, 'gdb1939a', 7, 3), +(57, 'jrc1974a', 10, 2), +(58, 'jfa1965a', 1, 1), +(59, 'buz1982a', 24, 4), +(60, 'mhr1952a', 7, 3), +(61, 'pos1958a', 11, 3), +(62, 'xdi1926a', 3, 3), +(63, 'awl1901a', 17, 1), +(64, 'uix1942a', 7, 3), +(65, 'ngz1932a', 19, 3), +(66, 'kpf1942a', 15, 3), +(67, 'aiv1989a', 21, 1), +(68, 'sjw1936a', 19, 3), +(69, 'fei1944a', 23, 3), +(70, 'zge1937a', 21, 1), +(71, 'rpl1936a', 19, 3), +(72, 'hrv1902a', 22, 2), +(73, 'djo1928a', 9, 1), +(74, 'scm1996a', 5, 1), +(75, 'ylq1926a', 18, 2), +(76, 'eme1913a', 23, 3), +(77, 'otv1930a', 1, 1), +(78, 'cda1951a', 5, 1), +(79, 'eee1933a', 17, 1), +(80, 'kfx1995a', 18, 2), +(81, 'jgd1966a', 3, 3), +(82, 'rwg1909a', 14, 2), +(83, 'ngw1997a', 17, 1), +(84, 'obg1973a', 2, 2), +(85, 'hzg1935a', 12, 4), +(86, 'iyh1918a', 3, 3), +(87, 'tdc1978a', 13, 1), +(88, 'swd1951a', 2, 2), +(89, 'vdj1905a', 22, 2), +(90, 'bit1985a', 19, 3), +(91, 'iah1936a', 1, 1), +(92, 'ypt1989a', 7, 3), +(93, 'ljc1902a', 17, 1), +(94, 'hcc1997a', 7, 3), +(95, 'bky1924a', 22, 2), +(96, 'vul1953a', 5, 1), +(97, 'ssr1906a', 9, 1), +(98, 'yjh1944a', 11, 3), +(99, 'ste1994a', 10, 2), +(100, 'ypo1964a', 7, 3), +(103, 'mrd1609a', 1, 1); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `controle` +-- + +CREATE TABLE IF NOT EXISTS `controle` ( + `id_controle` int(11) NOT NULL AUTO_INCREMENT, + `id_mcc_module` int(11) NOT NULL, + `intitule` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, + `base` int(11) NOT NULL, + `coefficient` float NOT NULL, + `date_publication` date NOT NULL, + PRIMARY KEY (`id_controle`), + KEY `id_mcc_module` (`id_mcc_module`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ; + +-- +-- RELATIONS FOR TABLE `controle`: +-- `id_mcc_module` +-- `mcc_module` -> `id_mcc_module` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `enseignement` +-- + +CREATE TABLE IF NOT EXISTS `enseignement` ( + `id_enseignement` int(11) NOT NULL AUTO_INCREMENT, + `id_enseignant` varchar(50) NOT NULL, + `id_mcc_module` int(11) NOT NULL, + `correcteur` tinyint(4) NOT NULL, + PRIMARY KEY (`id_enseignement`), + KEY `id_enseignant` (`id_enseignant`), + KEY `id_mcc_module` (`id_mcc_module`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; + +-- +-- RELATIONS FOR TABLE `enseignement`: +-- `id_enseignant` +-- `utilisateur` -> `identifiant` +-- `id_mcc_module` +-- `mcc_module` -> `id_mcc_module` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `formation` +-- + +CREATE TABLE IF NOT EXISTS `formation` ( + `id_formation` int(11) NOT NULL AUTO_INCREMENT, + `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nb_semestres` int(11) NOT NULL, + PRIMARY KEY (`id_formation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; + +-- +-- Dumping data for table `formation` +-- + +INSERT INTO `formation` (`id_formation`, `code`, `nom`, `nb_semestres`) VALUES +(1, 'ITINN1', 'DUT 1A INFORMATIQUE', 2), +(2, 'ITINN2', 'DUT 2A INFORMATIQUE', 2); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `groupe` +-- + +CREATE TABLE IF NOT EXISTS `groupe` ( + `id_groupe` int(11) NOT NULL AUTO_INCREMENT, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + PRIMARY KEY (`id_groupe`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ; + +-- +-- Dumping data for table `groupe` +-- + +INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES +(1, 'S1A'), +(2, 'S2A'), +(3, 'S3A'), +(4, 'S4A'), +(5, 'S1B'), +(6, 'S2B'), +(7, 'S3B'), +(8, 'S4B'), +(9, 'S1C'), +(10, 'S2C'), +(11, 'S3C'), +(12, 'S4C'), +(13, 'S1D'), +(14, 'S2D'), +(15, 'S3D'), +(16, 'S4D'), +(17, 'S1E'), +(18, 'S2E'), +(19, 'S3E'), +(20, 'S4E'), +(21, 'S1F'), +(22, 'S2F'), +(23, 'S3F'), +(24, 'S4F'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `mcc_module` +-- + +CREATE TABLE IF NOT EXISTS `mcc_module` ( + `id_mcc_module` int(11) NOT NULL AUTO_INCREMENT, + `id_mcc_ue` int(11) NOT NULL, + `id_module` int(11) NOT NULL, + `coefficient` float NOT NULL, + PRIMARY KEY (`id_mcc_module`), + KEY `id_mcc_ue` (`id_mcc_ue`), + KEY `id_module` (`id_module`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=44 ; + +-- +-- RELATIONS FOR TABLE `mcc_module`: +-- `id_module` +-- `module` -> `id_module` +-- `id_mcc_ue` +-- `mcc_ue` -> `id_mcc_ue` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `mcc_ue` +-- + +CREATE TABLE IF NOT EXISTS `mcc_ue` ( + `id_mcc_ue` int(11) NOT NULL AUTO_INCREMENT, + `id_semestre` int(11) NOT NULL, + `id_ue` int(11) NOT NULL, + `coefficient` float NOT NULL, + PRIMARY KEY (`id_mcc_ue`), + KEY `id_semestre` (`id_semestre`), + KEY `id_ue` (`id_ue`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=45458 ; + +-- +-- RELATIONS FOR TABLE `mcc_ue`: +-- `id_ue` +-- `ue` -> `id_ue` +-- `id_semestre` +-- `semestre` -> `id_semestre` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `module` +-- + +CREATE TABLE IF NOT EXISTS `module` ( + `id_module` int(11) NOT NULL AUTO_INCREMENT, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + PRIMARY KEY (`id_module`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2042 ; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `note` +-- + +CREATE TABLE IF NOT EXISTS `note` ( + `id_note` int(11) NOT NULL AUTO_INCREMENT, + `id_appartenance` int(11) NOT NULL, + `id_controle` int(11) NOT NULL, + `valeur` float NOT NULL, + PRIMARY KEY (`id_note`), + KEY `id_appartenance` (`id_appartenance`), + KEY `id_controle` (`id_controle`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + +-- +-- RELATIONS FOR TABLE `note`: +-- `id_controle` +-- `controle` -> `id_controle` +-- `id_appartenance` +-- `appartenance` -> `id_appartenance` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `semestre` +-- + +CREATE TABLE IF NOT EXISTS `semestre` ( + `id_semestre` int(11) NOT NULL AUTO_INCREMENT, + `id_formation` int(11) NOT NULL, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `rang` tinyint(4) NOT NULL, + `annee` year(4) NOT NULL, + PRIMARY KEY (`id_semestre`), + UNIQUE KEY `rang` (`rang`,`annee`), + KEY `id_formation` (`id_formation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; + +-- +-- RELATIONS FOR TABLE `semestre`: +-- `id_formation` +-- `formation` -> `id_formation` +-- + +-- +-- Dumping data for table `semestre` +-- + +INSERT INTO `semestre` (`id_semestre`, `id_formation`, `nom`, `rang`, `annee`) VALUES +(1, 1, 'S1', 1, 2015), +(2, 1, 'S2', 2, 2015), +(3, 2, 'S3', 3, 2015), +(4, 2, 'S4', 4, 2015), +(5, 1, 'S1', 1, 2016), +(6, 1, 'S2', 2, 2016), +(7, 2, 'S3', 3, 2016), +(8, 2, 'S4', 4, 2016); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `ue` +-- + +CREATE TABLE IF NOT EXISTS `ue` ( + `id_ue` int(11) NOT NULL AUTO_INCREMENT, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + PRIMARY KEY (`id_ue`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `utilisateur` +-- + +CREATE TABLE IF NOT EXISTS `utilisateur` ( + `identifiant` varchar(50) NOT NULL, + `prenom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `sexe` tinyint(1) NOT NULL DEFAULT '1', + `mail` varchar(50) NOT NULL, + `mdp` varchar(40) NOT NULL, + `droits` varchar(44) NOT NULL DEFAULT '[]', + PRIMARY KEY (`identifiant`), + UNIQUE KEY `identifiant` (`identifiant`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Dumping data for table `utilisateur` +-- + +INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `sexe`, `mail`, `mdp`, `droits`) VALUES +('admin', 'monsieur', 'administrateur', 1, 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'), +('admin2', 'madame', 'administratrice', 0, 'mme.admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin'), +('aft1950a', 'Rachel', 'DAVENPORT', 0, 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'), +('agl1956a', 'Cruz', 'HOWE', 1, 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'), +('agq1929a', 'Althea', 'POOLE', 1, 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'), +('aiv1989a', 'Concetta', 'ROBLES', 1, 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'), +('anj1991a', 'Katie', 'GUTIERREZ', 1, 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'), +('auy1966a', 'Bobbi', 'PRATT', 1, 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'), +('awl1901a', 'Clare', 'ROLLINS', 1, 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'), +('bae1943a', 'Shaw', 'GOFF', 1, 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'), +('bit1985a', 'Rosalind', 'FISHER', 1, 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'), +('bky1924a', 'Gena', 'ENGLAND', 1, 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'), +('buz1982a', 'Kemp', 'JACOBS', 1, 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'), +('cda1951a', 'Mcpherson', 'ANTHONY', 1, 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'), +('cuk1947a', 'Baxter', 'HERRERA', 1, 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'), +('cvv1936a', 'Kayla', 'CANTRELL', 1, 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'), +('cyw1979a', 'Zamora', 'RIDDLE', 0, 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'), +('djo1928a', 'Vaughn', 'DURHAM', 1, 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'), +('dtg1946a', 'Ruiz', 'WILKERSON', 1, 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'), +('dui1946a', 'Burns', 'COMPTON', 1, 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'), +('eca1977a', 'Hope', 'WILSON', 1, 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'), +('eee1933a', 'Stacey', 'LITTLE', 0, 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'), +('eme1913a', 'Booth', 'HENRY', 1, 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'), +('fei1944a', 'Esperanza', 'TERRELL', 1, 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'), +('gdb1939a', 'Kate', 'NOEL', 1, 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'), +('gwe1975a', 'Helen', 'HICKS', 1, 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'), +('gyy1983a', 'Merrill', 'WALTER', 1, 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'), +('hcc1997a', 'Madeline', 'MARKS', 1, 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'), +('hku1995a', 'Roslyn', 'MURPHY', 1, 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'), +('hmn1970a', 'Levy', 'ARMSTRONG', 1, 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'), +('hpa1908a', 'Jacklyn', 'BYRD', 1, 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'), +('hrv1902a', 'Irwin', 'HOUSTON', 1, 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'), +('hsx1927a', 'Irene', 'MONROE', 1, 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'), +('hth1975a', 'Pruitt', 'FERGUSON', 1, 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'), +('hzg1935a', 'Clarice', 'ORTEGA', 1, 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'), +('iah1936a', 'Franklin', 'SLATER', 1, 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'), +('ihf1991a', 'Robinson', 'MCGEE', 1, 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'), +('imf1922a', 'Hawkins', 'PATTERSON', 1, 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'), +('iyh1918a', 'Tucker', 'TRAN', 1, 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'), +('jfa1965a', 'Lolita', 'FARRELL', 1, 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'), +('jgd1966a', 'Janelle', 'BURKS', 1, 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'), +('jrc1974a', 'Pierce', 'CHURCH', 1, 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'), +('kfx1995a', 'Mitzi', 'SCHROEDER', 1, 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'), +('kpf1942a', 'Strickland', 'ROACH', 1, 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'), +('ktz1997a', 'Mcgowan', 'COHEN', 1, 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'), +('kul1903a', 'Magdalena', 'SIMON', 1, 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'), +('lbh1609a', 'Hervé', 'LEBLANC', 1, 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'), +('liw1940a', 'Middleton', 'WATERS', 1, 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'), +('ljc1902a', 'Lisa', 'CLEMENTS', 1, 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'), +('lme1952a', 'Hollie', 'GILLIAM', 1, 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'), +('maq1980a', 'Cook', 'DUNN', 1, 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'), +('mhr1952a', 'Socorro', 'BLAIR', 1, 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'), +('mhu1946a', 'Edna', 'GREEN', 1, 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'), +('mma1990a', 'Williamson', 'HATFIELD', 1, 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'), +('mrd1609a', 'Adrien', 'MARQUES', 1, 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'), +('msj1985a', 'Ball', 'AVILA', 1, 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'), +('mzh1955a', 'Leblanc', 'WHEELER', 1, 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'), +('ngw1997a', 'Booker', 'LOPEZ', 1, 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'), +('ngz1932a', 'Faye', 'PAYNE', 1, 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'), +('non1968a', 'Foster', 'TILLMAN', 1, 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'), +('obg1973a', 'Lynch', 'CHANDLER', 1, 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'), +('ono1984a', 'Kitty', 'SANFORD', 0, 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'), +('oqz1937a', 'Morse', 'MICHAEL', 1, 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'), +('otm1902a', 'Woods', 'DEJESUS', 1, 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'), +('otv1930a', 'Odonnell', 'BEASLEY', 0, 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'), +('oxz1985a', 'Paul', 'GROSS', 1, 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'), +('pdi1904a', 'Brady', 'ASHLEY', 1, 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'), +('pfv1965a', 'Francine', 'COMBS', 0, 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'), +('pos1958a', 'Juliana', 'FULLER', 0, 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'), +('psg1965a', 'Knapp', 'STEPHENS', 1, 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'), +('qoe1974a', 'Raquel', 'CUNNINGHAM', 1, 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'), +('rmj1965a', 'Bridges', 'ROSALES', 1, 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'), +('rpl1936a', 'Tamera', 'MOSES', 0, 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'), +('rwg1909a', 'Kelly', 'WALLACE', 0, 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'), +('scm1996a', 'Dotson', 'SANDOVAL', 1, 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'), +('sft1994a', 'Norris', 'BROCK', 1, 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'), +('sjl1937a', 'English', 'POPE', 1, 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'), +('sjw1936a', 'Cross', 'MEYERS', 1, 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'), +('ssr1906a', 'Howell', 'FAULKNER', 1, 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'), +('ste1994a', 'Allison', 'CALLAHAN', 0, 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'), +('swd1951a', 'Jenny', 'GRAHAM', 0, 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'), +('tdc1978a', 'Bird', 'TRAVIS', 1, 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'), +('tkz1955a', 'Nora', 'BREWER', 0, 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'), +('tnx1949a', 'Dejesus', 'WALTON', 1, 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'), +('uix1942a', 'Kristen', 'GIBSON', 0, 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'), +('vau1957a', 'Kathy', 'STOUT', 0, 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'), +('vdj1905a', 'Dean', 'ESPINOZA', 1, 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'), +('vgb1979a', 'Baird', 'FORD', 1, 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'), +('vul1953a', 'Robyn', 'BATES', 1, 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'), +('wbt1993a', 'Goodman', 'PAUL', 1, 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'), +('wnx1995a', 'Lorraine', 'PADILLA', 1, 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'), +('wpa1966a', 'Collier', 'ENGLISH', 1, 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'), +('wvn1982a', 'Sears', 'WELCH', 1, 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'), +('xdh1989a', 'Rasmussen', 'PAGE', 1, 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'), +('xdi1926a', 'Ferrell', 'SALAS', 1, 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'), +('xtb1903a', 'Kelly', 'FLYNN', 0, 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'), +('ydw1981a', 'Glenda', 'WILKINSON', 0, 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'), +('yjh1944a', 'Thompson', 'SOLIS', 1, 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'), +('ylq1926a', 'Stein', 'SILVA', 1, 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'), +('ypo1964a', 'Marylou', 'HOPKINS', 0, 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'), +('ypt1989a', 'Simon', 'MORALES', 1, 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'), +('yyt1926a', 'Bryant', 'CHANEY', 1, 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'), +('zge1937a', 'Ella', 'GARZA', 0, 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'), +('zgy1948a', 'Emily', 'ALVARADO', 0, 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'); + +-- +-- Constraints for dumped tables +-- + +-- +-- Constraints for table `appartenance` +-- +ALTER TABLE `appartenance` + ADD CONSTRAINT `appartenance_ibfk_1` FOREIGN KEY (`id_etudiant`) REFERENCES `utilisateur` (`identifiant`), + ADD CONSTRAINT `appartenance_ibfk_2` FOREIGN KEY (`id_groupe`) REFERENCES `groupe` (`id_groupe`), + ADD CONSTRAINT `appartenance_ibfk_3` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`); + +-- +-- Constraints for table `controle` +-- +ALTER TABLE `controle` + ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`) ON DELETE CASCADE; + +-- +-- Constraints for table `enseignement` +-- +ALTER TABLE `enseignement` + ADD CONSTRAINT `enseignement_id_enseignant` FOREIGN KEY (`id_enseignant`) REFERENCES `utilisateur` (`identifiant`), + ADD CONSTRAINT `enseignement_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`); + +-- +-- Constraints for table `mcc_module` +-- +ALTER TABLE `mcc_module` + ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`) ON DELETE CASCADE; + +-- +-- Constraints for table `mcc_ue` +-- +ALTER TABLE `mcc_ue` + ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`) ON DELETE CASCADE; + +-- +-- Constraints for table `note` +-- +ALTER TABLE `note` + ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`) ON DELETE CASCADE, + ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`) ON DELETE CASCADE; + +-- +-- Constraints for table `semestre` +-- +ALTER TABLE `semestre` + ADD CONSTRAINT `semestre_id_formation` FOREIGN KEY (`id_formation`) REFERENCES `formation` (`id_formation`); + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file diff --git a/xdoc/sid.sql b/xdoc/sid.sql index 05df873..49d02e9 100755 --- a/xdoc/sid.sql +++ b/xdoc/sid.sql @@ -2,10 +2,10 @@ -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- --- Client: localhost --- Généré le: Lun 16 Novembre 2015 à 21:41 --- Version du serveur: 5.5.46-0ubuntu0.14.04.2 --- Version de PHP: 5.5.9-1ubuntu4.14 +-- Host: localhost +-- Generation Time: Nov 20, 2015 at 04:57 PM +-- Server version: 5.5.46-0ubuntu0.14.04.2 +-- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; @@ -17,13 +17,13 @@ SET time_zone = "+00:00"; /*!40101 SET NAMES utf8 */; -- --- Base de données: `sid2` +-- Database: `sid2` -- -- -------------------------------------------------------- -- --- Structure de la table `appartenance` +-- Table structure for table `appartenance` -- CREATE TABLE IF NOT EXISTS `appartenance` ( @@ -42,7 +42,7 @@ CREATE TABLE IF NOT EXISTS `appartenance` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=104 ; -- --- RELATIONS POUR LA TABLE `appartenance`: +-- RELATIONS FOR TABLE `appartenance`: -- `id_etudiant` -- `utilisateur` -> `identifiant` -- `id_groupe` @@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `appartenance` ( -- -- --- Contenu de la table `appartenance` +-- Dumping data for table `appartenance` -- INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES @@ -161,7 +161,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s -- -------------------------------------------------------- -- --- Structure de la table `controle` +-- Table structure for table `controle` -- CREATE TABLE IF NOT EXISTS `controle` ( @@ -176,13 +176,13 @@ CREATE TABLE IF NOT EXISTS `controle` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ; -- --- RELATIONS POUR LA TABLE `controle`: +-- RELATIONS FOR TABLE `controle`: -- `id_mcc_module` -- `mcc_module` -> `id_mcc_module` -- -- --- Contenu de la table `controle` +-- Dumping data for table `controle` -- INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `intitule`, `base`, `coefficient`, `date_publication`) VALUES @@ -201,7 +201,7 @@ INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `intitule`, `base`, `coe -- -------------------------------------------------------- -- --- Structure de la table `enseignement` +-- Table structure for table `enseignement` -- CREATE TABLE IF NOT EXISTS `enseignement` ( @@ -215,7 +215,7 @@ CREATE TABLE IF NOT EXISTS `enseignement` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- --- RELATIONS POUR LA TABLE `enseignement`: +-- RELATIONS FOR TABLE `enseignement`: -- `id_enseignant` -- `utilisateur` -> `identifiant` -- `id_mcc_module` @@ -223,7 +223,7 @@ CREATE TABLE IF NOT EXISTS `enseignement` ( -- -- --- Contenu de la table `enseignement` +-- Dumping data for table `enseignement` -- INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES @@ -235,7 +235,7 @@ INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, -- -------------------------------------------------------- -- --- Structure de la table `formation` +-- Table structure for table `formation` -- CREATE TABLE IF NOT EXISTS `formation` ( @@ -247,7 +247,7 @@ CREATE TABLE IF NOT EXISTS `formation` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- --- Contenu de la table `formation` +-- Dumping data for table `formation` -- INSERT INTO `formation` (`id_formation`, `code`, `nom`, `nb_semestres`) VALUES @@ -257,7 +257,7 @@ INSERT INTO `formation` (`id_formation`, `code`, `nom`, `nb_semestres`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `groupe` +-- Table structure for table `groupe` -- CREATE TABLE IF NOT EXISTS `groupe` ( @@ -267,7 +267,7 @@ CREATE TABLE IF NOT EXISTS `groupe` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ; -- --- Contenu de la table `groupe` +-- Dumping data for table `groupe` -- INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES @@ -299,7 +299,7 @@ INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `mcc_module` +-- Table structure for table `mcc_module` -- CREATE TABLE IF NOT EXISTS `mcc_module` ( @@ -310,18 +310,18 @@ CREATE TABLE IF NOT EXISTS `mcc_module` ( PRIMARY KEY (`id_mcc_module`), KEY `id_mcc_ue` (`id_mcc_ue`), KEY `id_module` (`id_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ; -- --- RELATIONS POUR LA TABLE `mcc_module`: --- `id_mcc_ue` --- `mcc_ue` -> `id_mcc_ue` +-- RELATIONS FOR TABLE `mcc_module`: -- `id_module` -- `module` -> `id_module` +-- `id_mcc_ue` +-- `mcc_ue` -> `id_mcc_ue` -- -- --- Contenu de la table `mcc_module` +-- Dumping data for table `mcc_module` -- INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficient`) VALUES @@ -345,7 +345,7 @@ INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficien -- -------------------------------------------------------- -- --- Structure de la table `mcc_ue` +-- Table structure for table `mcc_ue` -- CREATE TABLE IF NOT EXISTS `mcc_ue` ( @@ -356,18 +356,18 @@ CREATE TABLE IF NOT EXISTS `mcc_ue` ( PRIMARY KEY (`id_mcc_ue`), KEY `id_semestre` (`id_semestre`), KEY `id_ue` (`id_ue`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=33818 ; -- --- RELATIONS POUR LA TABLE `mcc_ue`: --- `id_semestre` --- `semestre` -> `id_semestre` +-- RELATIONS FOR TABLE `mcc_ue`: -- `id_ue` -- `ue` -> `id_ue` +-- `id_semestre` +-- `semestre` -> `id_semestre` -- -- --- Contenu de la table `mcc_ue` +-- Dumping data for table `mcc_ue` -- INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES @@ -383,18 +383,18 @@ INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `module` +-- Table structure for table `module` -- CREATE TABLE IF NOT EXISTS `module` ( `id_module` int(11) NOT NULL AUTO_INCREMENT, - `nom` varchar(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `libelle` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1916 ; -- --- Contenu de la table `module` +-- Dumping data for table `module` -- INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES @@ -418,7 +418,7 @@ INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `note` +-- Table structure for table `note` -- CREATE TABLE IF NOT EXISTS `note` ( @@ -429,23 +429,22 @@ CREATE TABLE IF NOT EXISTS `note` ( PRIMARY KEY (`id_note`), KEY `id_appartenance` (`id_appartenance`), KEY `id_controle` (`id_controle`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=57 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=78 ; -- --- RELATIONS POUR LA TABLE `note`: --- `id_appartenance` --- `appartenance` -> `id_appartenance` +-- RELATIONS FOR TABLE `note`: -- `id_controle` -- `controle` -> `id_controle` +-- `id_appartenance` +-- `appartenance` -> `id_appartenance` -- -- --- Contenu de la table `note` +-- Dumping data for table `note` -- INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUES -(11, 103, 1, 15.25), -(12, 54, 2, 5), +(11, 103, 1, 14.25), (13, 103, 3, 3), (14, 103, 4, 4), (15, 103, 5, 5), @@ -454,29 +453,28 @@ INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUE (18, 103, 8, 8), (19, 103, 9, 9), (20, 20, 1, 19), -(21, 77, 1, 19.75), +(21, 77, 1, 20), (22, 83, 1, 2.5), -(23, 91, 1, 3.5), -(24, 19, 1, 4.5), -(25, 58, 1, 5.25), +(23, 91, 1, 14.75), +(24, 19, 1, 14.75), +(25, 58, 1, 15.25), (26, 49, 2, 6), (27, 87, 2, 7), (28, 3, 2, 8), (29, 74, 1, 14.75), -(30, 26, 1, 1.9), -(31, 97, 1, 10), -(32, 32, 1, 10), -(33, 50, 1, 10), +(30, 26, 1, 19), +(31, 97, 1, 20), +(32, 32, 1, 20), +(33, 50, 1, 20), (34, 73, 1, 20), (35, 52, 1, 20), -(36, 4, 10, 10), +(36, 4, 10, 10.25), (37, 56, 10, 1), (38, 94, 10, 3), (39, 64, 10, 2), (40, 100, 10, 4), (41, 23, 10, 5), (42, 30, 10, 6), -(43, 103, 2, 1), (44, 83, 2, 2), (45, 91, 2, 3), (46, 13, 1, 2), @@ -489,12 +487,33 @@ INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUE (53, 48, 11, 4), (54, 43, 11, 5), (55, 98, 11, 6), -(56, 56, 11, 1); +(56, 56, 11, 1), +(57, 74, 2, 5), +(58, 78, 2, 7), +(59, 20, 2, 8), +(60, 52, 2, 6), +(61, 96, 2, 9), +(62, 25, 10, 12), +(63, 54, 1, 0.25), +(64, 16, 11, 1), +(65, 68, 11, 3), +(66, 39, 11, 6), +(67, 65, 11, 4), +(68, 53, 11, 2), +(69, 47, 11, 5), +(70, 90, 11, 7), +(71, 71, 11, 20), +(72, 12, 10, 1), +(73, 28, 10, 3), +(74, 40, 10, 4), +(75, 86, 10, 6), +(76, 62, 10, 2), +(77, 81, 10, 5); -- -------------------------------------------------------- -- --- Structure de la table `semestre` +-- Table structure for table `semestre` -- CREATE TABLE IF NOT EXISTS `semestre` ( @@ -509,13 +528,13 @@ CREATE TABLE IF NOT EXISTS `semestre` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- --- RELATIONS POUR LA TABLE `semestre`: +-- RELATIONS FOR TABLE `semestre`: -- `id_formation` -- `formation` -> `id_formation` -- -- --- Contenu de la table `semestre` +-- Dumping data for table `semestre` -- INSERT INTO `semestre` (`id_semestre`, `id_formation`, `nom`, `rang`, `annee`) VALUES @@ -531,7 +550,7 @@ INSERT INTO `semestre` (`id_semestre`, `id_formation`, `nom`, `rang`, `annee`) V -- -------------------------------------------------------- -- --- Structure de la table `ue` +-- Table structure for table `ue` -- CREATE TABLE IF NOT EXISTS `ue` ( @@ -539,10 +558,10 @@ CREATE TABLE IF NOT EXISTS `ue` ( `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id_ue`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ; -- --- Contenu de la table `ue` +-- Dumping data for table `ue` -- INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES @@ -554,13 +573,14 @@ INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `utilisateur` +-- Table structure for table `utilisateur` -- CREATE TABLE IF NOT EXISTS `utilisateur` ( `identifiant` varchar(50) NOT NULL, `prenom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `sexe` tinyint(1) NOT NULL DEFAULT '1', `mail` varchar(50) NOT NULL, `mdp` varchar(40) NOT NULL, `droits` varchar(44) NOT NULL DEFAULT '[]', @@ -569,121 +589,121 @@ CREATE TABLE IF NOT EXISTS `utilisateur` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- --- Contenu de la table `utilisateur` +-- Dumping data for table `utilisateur` -- -INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `mail`, `mdp`, `droits`) VALUES -('admin', 'monsieur', 'administrateur', 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'), -('admin2', 'madame', 'administratrice', 'mme.admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin'), -('aft1950a', 'Rachel', 'DAVENPORT', 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'), -('agl1956a', 'Cruz', 'HOWE', 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'), -('agq1929a', 'Althea', 'POOLE', 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'), -('aiv1989a', 'Concetta', 'ROBLES', 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'), -('anj1991a', 'Katie', 'GUTIERREZ', 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'), -('auy1966a', 'Bobbi', 'PRATT', 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'), -('awl1901a', 'Clare', 'ROLLINS', 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'), -('bae1943a', 'Shaw', 'GOFF', 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'), -('bit1985a', 'Rosalind', 'FISHER', 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'), -('bky1924a', 'Gena', 'ENGLAND', 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'), -('buz1982a', 'Kemp', 'JACOBS', 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'), -('cda1951a', 'Mcpherson', 'ANTHONY', 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'), -('cuk1947a', 'Baxter', 'HERRERA', 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'), -('cvv1936a', 'Kayla', 'CANTRELL', 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'), -('cyw1979a', 'Zamora', 'RIDDLE', 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'), -('djo1928a', 'Vaughn', 'DURHAM', 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'), -('dtg1946a', 'Ruiz', 'WILKERSON', 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'), -('dui1946a', 'Burns', 'COMPTON', 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'), -('eca1977a', 'Hope', 'WILSON', 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'), -('eee1933a', 'Stacey', 'LITTLE', 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'), -('eme1913a', 'Booth', 'HENRY', 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'), -('fei1944a', 'Esperanza', 'TERRELL', 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'), -('gdb1939a', 'Kate', 'NOEL', 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'), -('gwe1975a', 'Helen', 'HICKS', 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'), -('gyy1983a', 'Merrill', 'WALTER', 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'), -('hcc1997a', 'Madeline', 'MARKS', 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'), -('hku1995a', 'Roslyn', 'MURPHY', 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'), -('hmn1970a', 'Levy', 'ARMSTRONG', 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'), -('hpa1908a', 'Jacklyn', 'BYRD', 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'), -('hrv1902a', 'Irwin', 'HOUSTON', 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'), -('hsx1927a', 'Irene', 'MONROE', 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'), -('hth1975a', 'Pruitt', 'FERGUSON', 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'), -('hzg1935a', 'Clarice', 'ORTEGA', 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'), -('iah1936a', 'Franklin', 'SLATER', 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'), -('ihf1991a', 'Robinson', 'MCGEE', 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'), -('imf1922a', 'Hawkins', 'PATTERSON', 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'), -('iyh1918a', 'Tucker', 'TRAN', 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'), -('jfa1965a', 'Lolita', 'FARRELL', 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'), -('jgd1966a', 'Janelle', 'BURKS', 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'), -('jrc1974a', 'Pierce', 'CHURCH', 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'), -('kfx1995a', 'Mitzi', 'SCHROEDER', 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'), -('kpf1942a', 'Strickland', 'ROACH', 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'), -('ktz1997a', 'Mcgowan', 'COHEN', 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'), -('kul1903a', 'Magdalena', 'SIMON', 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'), -('lbh1609a', 'Hervé', 'LEBLANC', 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'), -('liw1940a', 'Middleton', 'WATERS', 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'), -('ljc1902a', 'Lisa', 'CLEMENTS', 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'), -('lme1952a', 'Hollie', 'GILLIAM', 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'), -('maq1980a', 'Cook', 'DUNN', 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'), -('mhr1952a', 'Socorro', 'BLAIR', 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'), -('mhu1946a', 'Edna', 'GREEN', 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'), -('mma1990a', 'Williamson', 'HATFIELD', 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'), -('mrd1609a', 'Adrien', 'MARQUES', 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'), -('msj1985a', 'Ball', 'AVILA', 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'), -('mzh1955a', 'Leblanc', 'WHEELER', 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'), -('ngw1997a', 'Booker', 'LOPEZ', 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'), -('ngz1932a', 'Faye', 'PAYNE', 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'), -('non1968a', 'Foster', 'TILLMAN', 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'), -('obg1973a', 'Lynch', 'CHANDLER', 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'), -('ono1984a', 'Kitty', 'SANFORD', 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'), -('oqz1937a', 'Morse', 'MICHAEL', 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'), -('otm1902a', 'Woods', 'DEJESUS', 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'), -('otv1930a', 'Odonnell', 'BEASLEY', 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'), -('oxz1985a', 'Paul', 'GROSS', 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'), -('pdi1904a', 'Brady', 'ASHLEY', 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'), -('pfv1965a', 'Francine', 'COMBS', 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'), -('pos1958a', 'Juliana', 'FULLER', 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'), -('psg1965a', 'Knapp', 'STEPHENS', 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'), -('qoe1974a', 'Raquel', 'CUNNINGHAM', 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'), -('rmj1965a', 'Bridges', 'ROSALES', 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'), -('rpl1936a', 'Tamera', 'MOSES', 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'), -('rwg1909a', 'Kelly', 'WALLACE', 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'), -('scm1996a', 'Dotson', 'SANDOVAL', 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'), -('sft1994a', 'Norris', 'BROCK', 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'), -('sjl1937a', 'English', 'POPE', 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'), -('sjw1936a', 'Cross', 'MEYERS', 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'), -('ssr1906a', 'Howell', 'FAULKNER', 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'), -('ste1994a', 'Allison', 'CALLAHAN', 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'), -('swd1951a', 'Jenny', 'GRAHAM', 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'), -('tdc1978a', 'Bird', 'TRAVIS', 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'), -('tkz1955a', 'Nora', 'BREWER', 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'), -('tnx1949a', 'Dejesus', 'WALTON', 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'), -('uix1942a', 'Kristen', 'GIBSON', 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'), -('vau1957a', 'Kathy', 'STOUT', 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'), -('vdj1905a', 'Dean', 'ESPINOZA', 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'), -('vgb1979a', 'Baird', 'FORD', 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'), -('vul1953a', 'Robyn', 'BATES', 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'), -('wbt1993a', 'Goodman', 'PAUL', 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'), -('wnx1995a', 'Lorraine', 'PADILLA', 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'), -('wpa1966a', 'Collier', 'ENGLISH', 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'), -('wvn1982a', 'Sears', 'WELCH', 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'), -('xdh1989a', 'Rasmussen', 'PAGE', 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'), -('xdi1926a', 'Ferrell', 'SALAS', 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'), -('xtb1903a', 'Kelly', 'FLYNN', 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'), -('ydw1981a', 'Glenda', 'WILKINSON', 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'), -('yjh1944a', 'Thompson', 'SOLIS', 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'), -('ylq1926a', 'Stein', 'SILVA', 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'), -('ypo1964a', 'Marylou', 'HOPKINS', 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'), -('ypt1989a', 'Simon', 'MORALES', 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'), -('yyt1926a', 'Bryant', 'CHANEY', 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'), -('zge1937a', 'Ella', 'GARZA', 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'), -('zgy1948a', 'Emily', 'ALVARADO', 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'); +INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `sexe`, `mail`, `mdp`, `droits`) VALUES +('admin', 'monsieur', 'administrateur', 1, 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'), +('admin2', 'madame', 'administratrice', 0, 'mme.admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin'), +('aft1950a', 'Rachel', 'DAVENPORT', 0, 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'), +('agl1956a', 'Cruz', 'HOWE', 1, 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'), +('agq1929a', 'Althea', 'POOLE', 1, 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'), +('aiv1989a', 'Concetta', 'ROBLES', 1, 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'), +('anj1991a', 'Katie', 'GUTIERREZ', 1, 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'), +('auy1966a', 'Bobbi', 'PRATT', 1, 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'), +('awl1901a', 'Clare', 'ROLLINS', 1, 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'), +('bae1943a', 'Shaw', 'GOFF', 1, 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'), +('bit1985a', 'Rosalind', 'FISHER', 1, 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'), +('bky1924a', 'Gena', 'ENGLAND', 1, 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'), +('buz1982a', 'Kemp', 'JACOBS', 1, 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'), +('cda1951a', 'Mcpherson', 'ANTHONY', 1, 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'), +('cuk1947a', 'Baxter', 'HERRERA', 1, 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'), +('cvv1936a', 'Kayla', 'CANTRELL', 1, 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'), +('cyw1979a', 'Zamora', 'RIDDLE', 0, 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'), +('djo1928a', 'Vaughn', 'DURHAM', 1, 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'), +('dtg1946a', 'Ruiz', 'WILKERSON', 1, 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'), +('dui1946a', 'Burns', 'COMPTON', 1, 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'), +('eca1977a', 'Hope', 'WILSON', 1, 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'), +('eee1933a', 'Stacey', 'LITTLE', 0, 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'), +('eme1913a', 'Booth', 'HENRY', 1, 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'), +('fei1944a', 'Esperanza', 'TERRELL', 1, 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'), +('gdb1939a', 'Kate', 'NOEL', 1, 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'), +('gwe1975a', 'Helen', 'HICKS', 1, 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'), +('gyy1983a', 'Merrill', 'WALTER', 1, 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'), +('hcc1997a', 'Madeline', 'MARKS', 1, 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'), +('hku1995a', 'Roslyn', 'MURPHY', 1, 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'), +('hmn1970a', 'Levy', 'ARMSTRONG', 1, 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'), +('hpa1908a', 'Jacklyn', 'BYRD', 1, 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'), +('hrv1902a', 'Irwin', 'HOUSTON', 1, 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'), +('hsx1927a', 'Irene', 'MONROE', 1, 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'), +('hth1975a', 'Pruitt', 'FERGUSON', 1, 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'), +('hzg1935a', 'Clarice', 'ORTEGA', 1, 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'), +('iah1936a', 'Franklin', 'SLATER', 1, 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'), +('ihf1991a', 'Robinson', 'MCGEE', 1, 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'), +('imf1922a', 'Hawkins', 'PATTERSON', 1, 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'), +('iyh1918a', 'Tucker', 'TRAN', 1, 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'), +('jfa1965a', 'Lolita', 'FARRELL', 1, 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'), +('jgd1966a', 'Janelle', 'BURKS', 1, 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'), +('jrc1974a', 'Pierce', 'CHURCH', 1, 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'), +('kfx1995a', 'Mitzi', 'SCHROEDER', 1, 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'), +('kpf1942a', 'Strickland', 'ROACH', 1, 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'), +('ktz1997a', 'Mcgowan', 'COHEN', 1, 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'), +('kul1903a', 'Magdalena', 'SIMON', 1, 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'), +('lbh1609a', 'Hervé', 'LEBLANC', 1, 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'), +('liw1940a', 'Middleton', 'WATERS', 1, 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'), +('ljc1902a', 'Lisa', 'CLEMENTS', 1, 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'), +('lme1952a', 'Hollie', 'GILLIAM', 1, 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'), +('maq1980a', 'Cook', 'DUNN', 1, 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'), +('mhr1952a', 'Socorro', 'BLAIR', 1, 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'), +('mhu1946a', 'Edna', 'GREEN', 1, 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'), +('mma1990a', 'Williamson', 'HATFIELD', 1, 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'), +('mrd1609a', 'Adrien', 'MARQUES', 1, 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'), +('msj1985a', 'Ball', 'AVILA', 1, 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'), +('mzh1955a', 'Leblanc', 'WHEELER', 1, 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'), +('ngw1997a', 'Booker', 'LOPEZ', 1, 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'), +('ngz1932a', 'Faye', 'PAYNE', 1, 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'), +('non1968a', 'Foster', 'TILLMAN', 1, 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'), +('obg1973a', 'Lynch', 'CHANDLER', 1, 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'), +('ono1984a', 'Kitty', 'SANFORD', 0, 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'), +('oqz1937a', 'Morse', 'MICHAEL', 1, 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'), +('otm1902a', 'Woods', 'DEJESUS', 1, 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'), +('otv1930a', 'Odonnell', 'BEASLEY', 0, 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'), +('oxz1985a', 'Paul', 'GROSS', 1, 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'), +('pdi1904a', 'Brady', 'ASHLEY', 1, 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'), +('pfv1965a', 'Francine', 'COMBS', 0, 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'), +('pos1958a', 'Juliana', 'FULLER', 0, 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'), +('psg1965a', 'Knapp', 'STEPHENS', 1, 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'), +('qoe1974a', 'Raquel', 'CUNNINGHAM', 1, 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'), +('rmj1965a', 'Bridges', 'ROSALES', 1, 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'), +('rpl1936a', 'Tamera', 'MOSES', 0, 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'), +('rwg1909a', 'Kelly', 'WALLACE', 0, 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'), +('scm1996a', 'Dotson', 'SANDOVAL', 1, 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'), +('sft1994a', 'Norris', 'BROCK', 1, 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'), +('sjl1937a', 'English', 'POPE', 1, 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'), +('sjw1936a', 'Cross', 'MEYERS', 1, 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'), +('ssr1906a', 'Howell', 'FAULKNER', 1, 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'), +('ste1994a', 'Allison', 'CALLAHAN', 0, 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'), +('swd1951a', 'Jenny', 'GRAHAM', 0, 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'), +('tdc1978a', 'Bird', 'TRAVIS', 1, 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'), +('tkz1955a', 'Nora', 'BREWER', 0, 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'), +('tnx1949a', 'Dejesus', 'WALTON', 1, 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'), +('uix1942a', 'Kristen', 'GIBSON', 0, 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'), +('vau1957a', 'Kathy', 'STOUT', 0, 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'), +('vdj1905a', 'Dean', 'ESPINOZA', 1, 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'), +('vgb1979a', 'Baird', 'FORD', 1, 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'), +('vul1953a', 'Robyn', 'BATES', 1, 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'), +('wbt1993a', 'Goodman', 'PAUL', 1, 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'), +('wnx1995a', 'Lorraine', 'PADILLA', 1, 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'), +('wpa1966a', 'Collier', 'ENGLISH', 1, 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'), +('wvn1982a', 'Sears', 'WELCH', 1, 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'), +('xdh1989a', 'Rasmussen', 'PAGE', 1, 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'), +('xdi1926a', 'Ferrell', 'SALAS', 1, 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'), +('xtb1903a', 'Kelly', 'FLYNN', 0, 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'), +('ydw1981a', 'Glenda', 'WILKINSON', 0, 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'), +('yjh1944a', 'Thompson', 'SOLIS', 1, 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'), +('ylq1926a', 'Stein', 'SILVA', 1, 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'), +('ypo1964a', 'Marylou', 'HOPKINS', 0, 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'), +('ypt1989a', 'Simon', 'MORALES', 1, 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'), +('yyt1926a', 'Bryant', 'CHANEY', 1, 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'), +('zge1937a', 'Ella', 'GARZA', 0, 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'), +('zgy1948a', 'Emily', 'ALVARADO', 0, 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'); -- --- Contraintes pour les tables exportées +-- Constraints for dumped tables -- -- --- Contraintes pour la table `appartenance` +-- Constraints for table `appartenance` -- ALTER TABLE `appartenance` ADD CONSTRAINT `appartenance_ibfk_1` FOREIGN KEY (`id_etudiant`) REFERENCES `utilisateur` (`identifiant`), @@ -691,41 +711,41 @@ ALTER TABLE `appartenance` ADD CONSTRAINT `appartenance_ibfk_3` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`); -- --- Contraintes pour la table `controle` +-- Constraints for table `controle` -- ALTER TABLE `controle` - ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`); + ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`) ON DELETE CASCADE; -- --- Contraintes pour la table `enseignement` +-- Constraints for table `enseignement` -- ALTER TABLE `enseignement` ADD CONSTRAINT `enseignement_id_enseignant` FOREIGN KEY (`id_enseignant`) REFERENCES `utilisateur` (`identifiant`), ADD CONSTRAINT `enseignement_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`); -- --- Contraintes pour la table `mcc_module` +-- Constraints for table `mcc_module` -- ALTER TABLE `mcc_module` - ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`), - ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`); + ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`) ON DELETE CASCADE; -- --- Contraintes pour la table `mcc_ue` +-- Constraints for table `mcc_ue` -- ALTER TABLE `mcc_ue` - ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`), - ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`); + ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`) ON DELETE CASCADE; -- --- Contraintes pour la table `note` +-- Constraints for table `note` -- ALTER TABLE `note` - ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`), - ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`); + ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`) ON DELETE CASCADE, + ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`) ON DELETE CASCADE; -- --- Contraintes pour la table `semestre` +-- Constraints for table `semestre` -- ALTER TABLE `semestre` ADD CONSTRAINT `semestre_id_formation` FOREIGN KEY (`id_formation`) REFERENCES `formation` (`id_formation`); diff --git a/xdoc/structure.sql b/xdoc/structure.sql index 43a087d..49d02e9 100755 --- a/xdoc/structure.sql +++ b/xdoc/structure.sql @@ -2,10 +2,10 @@ -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- --- Client: localhost --- Généré le: Lun 09 Novembre 2015 à 12:49 --- Version du serveur: 5.5.46-0ubuntu0.14.04.2 --- Version de PHP: 5.5.9-1ubuntu4.14 +-- Host: localhost +-- Generation Time: Nov 20, 2015 at 04:57 PM +-- Server version: 5.5.46-0ubuntu0.14.04.2 +-- PHP Version: 5.5.9-1ubuntu4.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; @@ -17,13 +17,13 @@ SET time_zone = "+00:00"; /*!40101 SET NAMES utf8 */; -- --- Base de données: `sid2` +-- Database: `sid2` -- -- -------------------------------------------------------- -- --- Structure de la table `appartenance` +-- Table structure for table `appartenance` -- CREATE TABLE IF NOT EXISTS `appartenance` ( @@ -39,10 +39,10 @@ CREATE TABLE IF NOT EXISTS `appartenance` ( KEY `id_etudiant_2` (`id_etudiant`), KEY `id_groupe_2` (`id_groupe`), KEY `id_semestre_2` (`id_semestre`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=103 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=104 ; -- --- RELATIONS POUR LA TABLE `appartenance`: +-- RELATIONS FOR TABLE `appartenance`: -- `id_etudiant` -- `utilisateur` -> `identifiant` -- `id_groupe` @@ -52,19 +52,19 @@ CREATE TABLE IF NOT EXISTS `appartenance` ( -- -- --- Contenu de la table `appartenance` +-- Dumping data for table `appartenance` -- INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES -(1, 'mrd1609a', 6, 2), -(2, 'ihf1991a', 16, 4), +(1, 'mrd1609a', 2, 2), +(2, 'ihf1991a', 8, 4), (3, 'mma1990a', 13, 1), (4, 'lme1952a', 15, 3), -(5, 'imf1922a', 9, 1), +(5, 'imf1922a', 21, 1), (6, 'gyy1983a', 4, 4), (7, 'otm1902a', 14, 2), (8, 'tnx1949a', 12, 4), -(9, 'sjl1937a', 12, 4), +(9, 'sjl1937a', 4, 4), (10, 'anj1991a', 16, 4), (11, 'xdh1989a', 20, 4), (12, 'agl1956a', 3, 3), @@ -74,14 +74,14 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s (16, 'pdi1904a', 19, 3), (17, 'cuk1947a', 10, 2), (18, 'non1968a', 22, 2), -(19, 'hmn1970a', 21, 1), +(19, 'hmn1970a', 1, 1), (20, 'hth1975a', 5, 1), (21, 'liw1940a', 6, 2), (22, 'dtg1946a', 18, 2), (23, 'oxz1985a', 7, 3), (24, 'ono1984a', 14, 2), -(25, 'auy1966a', 3, 3), -(26, 'dui1946a', 9, 1), +(25, 'auy1966a', 15, 3), +(26, 'dui1946a', 1, 1), (27, 'cyw1979a', 24, 4), (28, 'pfv1965a', 3, 3), (29, 'oqz1937a', 24, 4), @@ -95,21 +95,21 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s (37, 'zgy1948a', 10, 2), (38, 'vau1957a', 23, 3), (39, 'hsx1927a', 19, 3), -(40, 'eca1977a', 11, 3), +(40, 'eca1977a', 3, 3), (41, 'wpa1966a', 20, 4), (42, 'qoe1974a', 20, 4), (43, 'tkz1955a', 11, 3), (44, 'wnx1995a', 16, 4), (45, 'sft1994a', 2, 2), -(46, 'vgb1979a', 3, 3), +(46, 'vgb1979a', 11, 3), (47, 'wbt1993a', 19, 3), (48, 'xtb1903a', 11, 3), (49, 'msj1985a', 13, 1), (50, 'wvn1982a', 9, 1), -(51, 'psg1965a', 8, 4), +(51, 'psg1965a', 4, 4), (52, 'hpa1908a', 5, 1), (53, 'maq1980a', 19, 3), -(54, 'agq1929a', 5, 1), +(54, 'agq1929a', 13, 1), (55, 'gwe1975a', 18, 2), (56, 'gdb1939a', 7, 3), (57, 'jrc1974a', 10, 2), @@ -117,8 +117,8 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s (59, 'buz1982a', 24, 4), (60, 'mhr1952a', 7, 3), (61, 'pos1958a', 11, 3), -(62, 'xdi1926a', 7, 3), -(63, 'awl1901a', 1, 1), +(62, 'xdi1926a', 3, 3), +(63, 'awl1901a', 17, 1), (64, 'uix1942a', 7, 3), (65, 'ngz1932a', 19, 3), (66, 'kpf1942a', 15, 3), @@ -138,10 +138,10 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s (80, 'kfx1995a', 18, 2), (81, 'jgd1966a', 3, 3), (82, 'rwg1909a', 14, 2), -(83, 'ngw1997a', 1, 1), +(83, 'ngw1997a', 17, 1), (84, 'obg1973a', 2, 2), (85, 'hzg1935a', 12, 4), -(86, 'iyh1918a', 11, 3), +(86, 'iyh1918a', 3, 3), (87, 'tdc1978a', 13, 1), (88, 'swd1951a', 2, 2), (89, 'vdj1905a', 22, 2), @@ -153,51 +153,55 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s (95, 'bky1924a', 22, 2), (96, 'vul1953a', 5, 1), (97, 'ssr1906a', 9, 1), -(98, 'yjh1944a', 3, 3), +(98, 'yjh1944a', 11, 3), (99, 'ste1994a', 10, 2), -(100, 'ypo1964a', 7, 3); +(100, 'ypo1964a', 7, 3), +(103, 'mrd1609a', 1, 1); -- -------------------------------------------------------- -- --- Structure de la table `controle` +-- Table structure for table `controle` -- CREATE TABLE IF NOT EXISTS `controle` ( `id_controle` int(11) NOT NULL AUTO_INCREMENT, `id_mcc_module` int(11) NOT NULL, - `intitule` varchar(50) NOT NULL, + `intitule` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `base` int(11) NOT NULL, `coefficient` float NOT NULL, `date_publication` date NOT NULL, PRIMARY KEY (`id_controle`), KEY `id_mcc_module` (`id_mcc_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ; -- --- RELATIONS POUR LA TABLE `controle`: +-- RELATIONS FOR TABLE `controle`: -- `id_mcc_module` -- `mcc_module` -> `id_mcc_module` -- -- --- Contenu de la table `controle` +-- Dumping data for table `controle` -- INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `intitule`, `base`, `coefficient`, `date_publication`) VALUES -(1, 5, 'Partiel 1', 20, 1, '2015-11-09'), -(2, 5, 'Partiel 2', 20, 1, '2015-11-10'), -(3, 6, 'Partiel 3', 20, 1, '2015-11-11'), -(4, 6, 'Partiel 4', 20, 1, '2015-11-12'), -(5, 7, 'Partiel 5', 20, 1, '2015-11-13'), -(6, 7, 'Partiel 6', 20, 1, '2015-11-14'), -(7, 8, 'Partiel 7', 20, 1, '2015-11-15'), -(8, 8, 'Partiel 8', 20, 1, '2015-11-16'); +(1, 1, 'Partiel 1', 20, 1, '2015-11-09'), +(2, 1, 'Partiel 2', 20, 1, '2015-11-10'), +(3, 2, 'Partiel 3', 20, 1, '2015-11-11'), +(4, 2, 'Partiel 4', 20, 1, '2015-11-12'), +(5, 3, 'Partiel 5', 20, 1, '2015-11-13'), +(6, 3, 'Partiel 6', 20, 1, '2015-11-14'), +(7, 4, 'Partiel 7', 20, 1, '2015-11-15'), +(8, 4, 'Partiel 8', 20, 1, '2015-11-16'), +(9, 5, 'Partiel 9', 20, 9, '2015-11-17'), +(10, 10, 'Partiel 10', 20, 10, '2015-11-18'), +(11, 9, 'Controle de TP', 20, 20, '2015-11-19'); -- -------------------------------------------------------- -- --- Structure de la table `enseignement` +-- Table structure for table `enseignement` -- CREATE TABLE IF NOT EXISTS `enseignement` ( @@ -208,10 +212,10 @@ CREATE TABLE IF NOT EXISTS `enseignement` ( PRIMARY KEY (`id_enseignement`), KEY `id_enseignant` (`id_enseignant`), KEY `id_mcc_module` (`id_mcc_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; -- --- RELATIONS POUR LA TABLE `enseignement`: +-- RELATIONS FOR TABLE `enseignement`: -- `id_enseignant` -- `utilisateur` -> `identifiant` -- `id_mcc_module` @@ -219,17 +223,41 @@ CREATE TABLE IF NOT EXISTS `enseignement` ( -- -- --- Contenu de la table `enseignement` +-- Dumping data for table `enseignement` -- INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES -(1, 'lbh1609a', 5, 0), -(2, 'lbh1609a', 10, 0); +(1, 'lbh1609a', 5, 1), +(2, 'lbh1609a', 10, 1), +(3, 'admin', 9, 1), +(4, 'admin', 1, 1); -- -------------------------------------------------------- -- --- Structure de la table `groupe` +-- Table structure for table `formation` +-- + +CREATE TABLE IF NOT EXISTS `formation` ( + `id_formation` int(11) NOT NULL AUTO_INCREMENT, + `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nb_semestres` int(11) NOT NULL, + PRIMARY KEY (`id_formation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; + +-- +-- Dumping data for table `formation` +-- + +INSERT INTO `formation` (`id_formation`, `code`, `nom`, `nb_semestres`) VALUES +(1, 'ITINN1', 'DUT 1A INFORMATIQUE', 2), +(2, 'ITINN2', 'DUT 2A INFORMATIQUE', 2); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `groupe` -- CREATE TABLE IF NOT EXISTS `groupe` ( @@ -239,7 +267,7 @@ CREATE TABLE IF NOT EXISTS `groupe` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ; -- --- Contenu de la table `groupe` +-- Dumping data for table `groupe` -- INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES @@ -271,7 +299,7 @@ INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `mcc_module` +-- Table structure for table `mcc_module` -- CREATE TABLE IF NOT EXISTS `mcc_module` ( @@ -282,10 +310,10 @@ CREATE TABLE IF NOT EXISTS `mcc_module` ( PRIMARY KEY (`id_mcc_module`), KEY `id_mcc_ue` (`id_mcc_ue`), KEY `id_module` (`id_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ; -- --- RELATIONS POUR LA TABLE `mcc_module`: +-- RELATIONS FOR TABLE `mcc_module`: -- `id_module` -- `module` -> `id_module` -- `id_mcc_ue` @@ -293,7 +321,7 @@ CREATE TABLE IF NOT EXISTS `mcc_module` ( -- -- --- Contenu de la table `mcc_module` +-- Dumping data for table `mcc_module` -- INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficient`) VALUES @@ -317,7 +345,7 @@ INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficien -- -------------------------------------------------------- -- --- Structure de la table `mcc_ue` +-- Table structure for table `mcc_ue` -- CREATE TABLE IF NOT EXISTS `mcc_ue` ( @@ -328,10 +356,10 @@ CREATE TABLE IF NOT EXISTS `mcc_ue` ( PRIMARY KEY (`id_mcc_ue`), KEY `id_semestre` (`id_semestre`), KEY `id_ue` (`id_ue`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=33818 ; -- --- RELATIONS POUR LA TABLE `mcc_ue`: +-- RELATIONS FOR TABLE `mcc_ue`: -- `id_ue` -- `ue` -> `id_ue` -- `id_semestre` @@ -339,7 +367,7 @@ CREATE TABLE IF NOT EXISTS `mcc_ue` ( -- -- --- Contenu de la table `mcc_ue` +-- Dumping data for table `mcc_ue` -- INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES @@ -355,18 +383,18 @@ INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `module` +-- Table structure for table `module` -- CREATE TABLE IF NOT EXISTS `module` ( `id_module` int(11) NOT NULL AUTO_INCREMENT, - `nom` varchar(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `libelle` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id_module`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1916 ; -- --- Contenu de la table `module` +-- Dumping data for table `module` -- INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES @@ -390,7 +418,7 @@ INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `note` +-- Table structure for table `note` -- CREATE TABLE IF NOT EXISTS `note` ( @@ -401,10 +429,10 @@ CREATE TABLE IF NOT EXISTS `note` ( PRIMARY KEY (`id_note`), KEY `id_appartenance` (`id_appartenance`), KEY `id_controle` (`id_controle`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=78 ; -- --- RELATIONS POUR LA TABLE `note`: +-- RELATIONS FOR TABLE `note`: -- `id_controle` -- `controle` -> `id_controle` -- `id_appartenance` @@ -412,52 +440,117 @@ CREATE TABLE IF NOT EXISTS `note` ( -- -- --- Contenu de la table `note` +-- Dumping data for table `note` -- INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUES -(11, 1, 1, 1), -(12, 1, 2, 2), -(13, 1, 3, 3), -(14, 1, 4, 4), -(15, 1, 5, 5), -(16, 1, 6, 6), -(17, 1, 7, 7), -(18, 1, 8, 8); +(11, 103, 1, 14.25), +(13, 103, 3, 3), +(14, 103, 4, 4), +(15, 103, 5, 5), +(16, 103, 6, 6), +(17, 103, 7, 7), +(18, 103, 8, 8), +(19, 103, 9, 9), +(20, 20, 1, 19), +(21, 77, 1, 20), +(22, 83, 1, 2.5), +(23, 91, 1, 14.75), +(24, 19, 1, 14.75), +(25, 58, 1, 15.25), +(26, 49, 2, 6), +(27, 87, 2, 7), +(28, 3, 2, 8), +(29, 74, 1, 14.75), +(30, 26, 1, 19), +(31, 97, 1, 20), +(32, 32, 1, 20), +(33, 50, 1, 20), +(34, 73, 1, 20), +(35, 52, 1, 20), +(36, 4, 10, 10.25), +(37, 56, 10, 1), +(38, 94, 10, 3), +(39, 64, 10, 2), +(40, 100, 10, 4), +(41, 23, 10, 5), +(42, 30, 10, 6), +(44, 83, 2, 2), +(45, 91, 2, 3), +(46, 13, 1, 2), +(47, 67, 1, 0), +(48, 70, 1, 0.5), +(49, 5, 1, 1.75), +(50, 46, 11, 1), +(51, 33, 11, 2), +(52, 61, 11, 3), +(53, 48, 11, 4), +(54, 43, 11, 5), +(55, 98, 11, 6), +(56, 56, 11, 1), +(57, 74, 2, 5), +(58, 78, 2, 7), +(59, 20, 2, 8), +(60, 52, 2, 6), +(61, 96, 2, 9), +(62, 25, 10, 12), +(63, 54, 1, 0.25), +(64, 16, 11, 1), +(65, 68, 11, 3), +(66, 39, 11, 6), +(67, 65, 11, 4), +(68, 53, 11, 2), +(69, 47, 11, 5), +(70, 90, 11, 7), +(71, 71, 11, 20), +(72, 12, 10, 1), +(73, 28, 10, 3), +(74, 40, 10, 4), +(75, 86, 10, 6), +(76, 62, 10, 2), +(77, 81, 10, 5); -- -------------------------------------------------------- -- --- Structure de la table `semestre` +-- Table structure for table `semestre` -- CREATE TABLE IF NOT EXISTS `semestre` ( `id_semestre` int(11) NOT NULL AUTO_INCREMENT, + `id_formation` int(11) NOT NULL, `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `rang` tinyint(4) NOT NULL, `annee` year(4) NOT NULL, PRIMARY KEY (`id_semestre`), - UNIQUE KEY `rang` (`rang`,`annee`) + UNIQUE KEY `rang` (`rang`,`annee`), + KEY `id_formation` (`id_formation`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ; -- --- Contenu de la table `semestre` +-- RELATIONS FOR TABLE `semestre`: +-- `id_formation` +-- `formation` -> `id_formation` -- -INSERT INTO `semestre` (`id_semestre`, `nom`, `rang`, `annee`) VALUES -(1, 'S1', 1, 2015), -(2, 'S2', 2, 2015), -(3, 'S3', 3, 2015), -(4, 'S4', 4, 2015), -(5, 'S1', 1, 2016), -(6, 'S2', 2, 2016), -(7, 'S3', 3, 2016), -(8, 'S4', 4, 2016); +-- +-- Dumping data for table `semestre` +-- + +INSERT INTO `semestre` (`id_semestre`, `id_formation`, `nom`, `rang`, `annee`) VALUES +(1, 1, 'S1', 1, 2015), +(2, 1, 'S2', 2, 2015), +(3, 2, 'S3', 3, 2015), +(4, 2, 'S4', 4, 2015), +(5, 1, 'S1', 1, 2016), +(6, 1, 'S2', 2, 2016), +(7, 2, 'S3', 3, 2016), +(8, 2, 'S4', 4, 2016); -- -------------------------------------------------------- -- --- Structure de la table `ue` +-- Table structure for table `ue` -- CREATE TABLE IF NOT EXISTS `ue` ( @@ -465,10 +558,10 @@ CREATE TABLE IF NOT EXISTS `ue` ( `nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id_ue`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; +) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ; -- --- Contenu de la table `ue` +-- Dumping data for table `ue` -- INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES @@ -480,13 +573,14 @@ INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES -- -------------------------------------------------------- -- --- Structure de la table `utilisateur` +-- Table structure for table `utilisateur` -- CREATE TABLE IF NOT EXISTS `utilisateur` ( `identifiant` varchar(50) NOT NULL, `prenom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `sexe` tinyint(1) NOT NULL DEFAULT '1', `mail` varchar(50) NOT NULL, `mdp` varchar(40) NOT NULL, `droits` varchar(44) NOT NULL DEFAULT '[]', @@ -495,120 +589,121 @@ CREATE TABLE IF NOT EXISTS `utilisateur` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- --- Contenu de la table `utilisateur` +-- Dumping data for table `utilisateur` -- -INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `mail`, `mdp`, `droits`) VALUES -('admin', 'monsieur', 'administrateur', 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'), -('aft1950a', 'Rachel', 'DAVENPORT', 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'), -('agl1956a', 'Cruz', 'HOWE', 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'), -('agq1929a', 'Althea', 'POOLE', 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'), -('aiv1989a', 'Concetta', 'ROBLES', 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'), -('anj1991a', 'Katie', 'GUTIERREZ', 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'), -('auy1966a', 'Bobbi', 'PRATT', 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'), -('awl1901a', 'Clare', 'ROLLINS', 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'), -('bae1943a', 'Shaw', 'GOFF', 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'), -('bit1985a', 'Rosalind', 'FISHER', 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'), -('bky1924a', 'Gena', 'ENGLAND', 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'), -('buz1982a', 'Kemp', 'JACOBS', 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'), -('cda1951a', 'Mcpherson', 'ANTHONY', 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'), -('cuk1947a', 'Baxter', 'HERRERA', 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'), -('cvv1936a', 'Kayla', 'CANTRELL', 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'), -('cyw1979a', 'Zamora', 'RIDDLE', 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'), -('djo1928a', 'Vaughn', 'DURHAM', 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'), -('dtg1946a', 'Ruiz', 'WILKERSON', 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'), -('dui1946a', 'Burns', 'COMPTON', 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'), -('eca1977a', 'Hope', 'WILSON', 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'), -('eee1933a', 'Stacey', 'LITTLE', 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'), -('eme1913a', 'Booth', 'HENRY', 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'), -('fei1944a', 'Esperanza', 'TERRELL', 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'), -('gdb1939a', 'Kate', 'NOEL', 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'), -('gwe1975a', 'Helen', 'HICKS', 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'), -('gyy1983a', 'Merrill', 'WALTER', 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'), -('hcc1997a', 'Madeline', 'MARKS', 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'), -('hku1995a', 'Roslyn', 'MURPHY', 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'), -('hmn1970a', 'Levy', 'ARMSTRONG', 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'), -('hpa1908a', 'Jacklyn', 'BYRD', 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'), -('hrv1902a', 'Irwin', 'HOUSTON', 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'), -('hsx1927a', 'Irene', 'MONROE', 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'), -('hth1975a', 'Pruitt', 'FERGUSON', 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'), -('hzg1935a', 'Clarice', 'ORTEGA', 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'), -('iah1936a', 'Franklin', 'SLATER', 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'), -('ihf1991a', 'Robinson', 'MCGEE', 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'), -('imf1922a', 'Hawkins', 'PATTERSON', 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'), -('iyh1918a', 'Tucker', 'TRAN', 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'), -('jfa1965a', 'Lolita', 'FARRELL', 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'), -('jgd1966a', 'Janelle', 'BURKS', 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'), -('jrc1974a', 'Pierce', 'CHURCH', 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'), -('kfx1995a', 'Mitzi', 'SCHROEDER', 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'), -('kpf1942a', 'Strickland', 'ROACH', 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'), -('ktz1997a', 'Mcgowan', 'COHEN', 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'), -('kul1903a', 'Magdalena', 'SIMON', 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'), -('lbh1609a', 'Hervé', 'LEBLANC', 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'), -('liw1940a', 'Middleton', 'WATERS', 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'), -('ljc1902a', 'Lisa', 'CLEMENTS', 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'), -('lme1952a', 'Hollie', 'GILLIAM', 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'), -('maq1980a', 'Cook', 'DUNN', 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'), -('mhr1952a', 'Socorro', 'BLAIR', 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'), -('mhu1946a', 'Edna', 'GREEN', 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'), -('mma1990a', 'Williamson', 'HATFIELD', 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'), -('mrd1609a', 'Adrien', 'MARQUES', 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'), -('msj1985a', 'Ball', 'AVILA', 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'), -('mzh1955a', 'Leblanc', 'WHEELER', 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'), -('ngw1997a', 'Booker', 'LOPEZ', 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'), -('ngz1932a', 'Faye', 'PAYNE', 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'), -('non1968a', 'Foster', 'TILLMAN', 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'), -('obg1973a', 'Lynch', 'CHANDLER', 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'), -('ono1984a', 'Kitty', 'SANFORD', 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'), -('oqz1937a', 'Morse', 'MICHAEL', 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'), -('otm1902a', 'Woods', 'DEJESUS', 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'), -('otv1930a', 'Odonnell', 'BEASLEY', 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'), -('oxz1985a', 'Paul', 'GROSS', 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'), -('pdi1904a', 'Brady', 'ASHLEY', 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'), -('pfv1965a', 'Francine', 'COMBS', 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'), -('pos1958a', 'Juliana', 'FULLER', 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'), -('psg1965a', 'Knapp', 'STEPHENS', 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'), -('qoe1974a', 'Raquel', 'CUNNINGHAM', 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'), -('rmj1965a', 'Bridges', 'ROSALES', 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'), -('rpl1936a', 'Tamera', 'MOSES', 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'), -('rwg1909a', 'Kelly', 'WALLACE', 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'), -('scm1996a', 'Dotson', 'SANDOVAL', 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'), -('sft1994a', 'Norris', 'BROCK', 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'), -('sjl1937a', 'English', 'POPE', 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'), -('sjw1936a', 'Cross', 'MEYERS', 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'), -('ssr1906a', 'Howell', 'FAULKNER', 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'), -('ste1994a', 'Allison', 'CALLAHAN', 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'), -('swd1951a', 'Jenny', 'GRAHAM', 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'), -('tdc1978a', 'Bird', 'TRAVIS', 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'), -('tkz1955a', 'Nora', 'BREWER', 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'), -('tnx1949a', 'Dejesus', 'WALTON', 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'), -('uix1942a', 'Kristen', 'GIBSON', 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'), -('vau1957a', 'Kathy', 'STOUT', 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'), -('vdj1905a', 'Dean', 'ESPINOZA', 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'), -('vgb1979a', 'Baird', 'FORD', 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'), -('vul1953a', 'Robyn', 'BATES', 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'), -('wbt1993a', 'Goodman', 'PAUL', 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'), -('wnx1995a', 'Lorraine', 'PADILLA', 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'), -('wpa1966a', 'Collier', 'ENGLISH', 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'), -('wvn1982a', 'Sears', 'WELCH', 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'), -('xdh1989a', 'Rasmussen', 'PAGE', 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'), -('xdi1926a', 'Ferrell', 'SALAS', 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'), -('xtb1903a', 'Kelly', 'FLYNN', 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'), -('ydw1981a', 'Glenda', 'WILKINSON', 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'), -('yjh1944a', 'Thompson', 'SOLIS', 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'), -('ylq1926a', 'Stein', 'SILVA', 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'), -('ypo1964a', 'Marylou', 'HOPKINS', 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'), -('ypt1989a', 'Simon', 'MORALES', 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'), -('yyt1926a', 'Bryant', 'CHANEY', 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'), -('zge1937a', 'Ella', 'GARZA', 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'), -('zgy1948a', 'Emily', 'ALVARADO', 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'); +INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `sexe`, `mail`, `mdp`, `droits`) VALUES +('admin', 'monsieur', 'administrateur', 1, 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'), +('admin2', 'madame', 'administratrice', 0, 'mme.admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin'), +('aft1950a', 'Rachel', 'DAVENPORT', 0, 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'), +('agl1956a', 'Cruz', 'HOWE', 1, 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'), +('agq1929a', 'Althea', 'POOLE', 1, 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'), +('aiv1989a', 'Concetta', 'ROBLES', 1, 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'), +('anj1991a', 'Katie', 'GUTIERREZ', 1, 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'), +('auy1966a', 'Bobbi', 'PRATT', 1, 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'), +('awl1901a', 'Clare', 'ROLLINS', 1, 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'), +('bae1943a', 'Shaw', 'GOFF', 1, 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'), +('bit1985a', 'Rosalind', 'FISHER', 1, 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'), +('bky1924a', 'Gena', 'ENGLAND', 1, 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'), +('buz1982a', 'Kemp', 'JACOBS', 1, 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'), +('cda1951a', 'Mcpherson', 'ANTHONY', 1, 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'), +('cuk1947a', 'Baxter', 'HERRERA', 1, 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'), +('cvv1936a', 'Kayla', 'CANTRELL', 1, 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'), +('cyw1979a', 'Zamora', 'RIDDLE', 0, 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'), +('djo1928a', 'Vaughn', 'DURHAM', 1, 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'), +('dtg1946a', 'Ruiz', 'WILKERSON', 1, 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'), +('dui1946a', 'Burns', 'COMPTON', 1, 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'), +('eca1977a', 'Hope', 'WILSON', 1, 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'), +('eee1933a', 'Stacey', 'LITTLE', 0, 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'), +('eme1913a', 'Booth', 'HENRY', 1, 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'), +('fei1944a', 'Esperanza', 'TERRELL', 1, 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'), +('gdb1939a', 'Kate', 'NOEL', 1, 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'), +('gwe1975a', 'Helen', 'HICKS', 1, 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'), +('gyy1983a', 'Merrill', 'WALTER', 1, 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'), +('hcc1997a', 'Madeline', 'MARKS', 1, 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'), +('hku1995a', 'Roslyn', 'MURPHY', 1, 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'), +('hmn1970a', 'Levy', 'ARMSTRONG', 1, 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'), +('hpa1908a', 'Jacklyn', 'BYRD', 1, 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'), +('hrv1902a', 'Irwin', 'HOUSTON', 1, 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'), +('hsx1927a', 'Irene', 'MONROE', 1, 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'), +('hth1975a', 'Pruitt', 'FERGUSON', 1, 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'), +('hzg1935a', 'Clarice', 'ORTEGA', 1, 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'), +('iah1936a', 'Franklin', 'SLATER', 1, 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'), +('ihf1991a', 'Robinson', 'MCGEE', 1, 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'), +('imf1922a', 'Hawkins', 'PATTERSON', 1, 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'), +('iyh1918a', 'Tucker', 'TRAN', 1, 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'), +('jfa1965a', 'Lolita', 'FARRELL', 1, 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'), +('jgd1966a', 'Janelle', 'BURKS', 1, 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'), +('jrc1974a', 'Pierce', 'CHURCH', 1, 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'), +('kfx1995a', 'Mitzi', 'SCHROEDER', 1, 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'), +('kpf1942a', 'Strickland', 'ROACH', 1, 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'), +('ktz1997a', 'Mcgowan', 'COHEN', 1, 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'), +('kul1903a', 'Magdalena', 'SIMON', 1, 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'), +('lbh1609a', 'Hervé', 'LEBLANC', 1, 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'), +('liw1940a', 'Middleton', 'WATERS', 1, 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'), +('ljc1902a', 'Lisa', 'CLEMENTS', 1, 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'), +('lme1952a', 'Hollie', 'GILLIAM', 1, 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'), +('maq1980a', 'Cook', 'DUNN', 1, 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'), +('mhr1952a', 'Socorro', 'BLAIR', 1, 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'), +('mhu1946a', 'Edna', 'GREEN', 1, 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'), +('mma1990a', 'Williamson', 'HATFIELD', 1, 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'), +('mrd1609a', 'Adrien', 'MARQUES', 1, 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'), +('msj1985a', 'Ball', 'AVILA', 1, 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'), +('mzh1955a', 'Leblanc', 'WHEELER', 1, 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'), +('ngw1997a', 'Booker', 'LOPEZ', 1, 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'), +('ngz1932a', 'Faye', 'PAYNE', 1, 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'), +('non1968a', 'Foster', 'TILLMAN', 1, 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'), +('obg1973a', 'Lynch', 'CHANDLER', 1, 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'), +('ono1984a', 'Kitty', 'SANFORD', 0, 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'), +('oqz1937a', 'Morse', 'MICHAEL', 1, 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'), +('otm1902a', 'Woods', 'DEJESUS', 1, 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'), +('otv1930a', 'Odonnell', 'BEASLEY', 0, 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'), +('oxz1985a', 'Paul', 'GROSS', 1, 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'), +('pdi1904a', 'Brady', 'ASHLEY', 1, 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'), +('pfv1965a', 'Francine', 'COMBS', 0, 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'), +('pos1958a', 'Juliana', 'FULLER', 0, 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'), +('psg1965a', 'Knapp', 'STEPHENS', 1, 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'), +('qoe1974a', 'Raquel', 'CUNNINGHAM', 1, 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'), +('rmj1965a', 'Bridges', 'ROSALES', 1, 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'), +('rpl1936a', 'Tamera', 'MOSES', 0, 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'), +('rwg1909a', 'Kelly', 'WALLACE', 0, 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'), +('scm1996a', 'Dotson', 'SANDOVAL', 1, 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'), +('sft1994a', 'Norris', 'BROCK', 1, 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'), +('sjl1937a', 'English', 'POPE', 1, 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'), +('sjw1936a', 'Cross', 'MEYERS', 1, 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'), +('ssr1906a', 'Howell', 'FAULKNER', 1, 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'), +('ste1994a', 'Allison', 'CALLAHAN', 0, 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'), +('swd1951a', 'Jenny', 'GRAHAM', 0, 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'), +('tdc1978a', 'Bird', 'TRAVIS', 1, 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'), +('tkz1955a', 'Nora', 'BREWER', 0, 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'), +('tnx1949a', 'Dejesus', 'WALTON', 1, 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'), +('uix1942a', 'Kristen', 'GIBSON', 0, 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'), +('vau1957a', 'Kathy', 'STOUT', 0, 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'), +('vdj1905a', 'Dean', 'ESPINOZA', 1, 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'), +('vgb1979a', 'Baird', 'FORD', 1, 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'), +('vul1953a', 'Robyn', 'BATES', 1, 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'), +('wbt1993a', 'Goodman', 'PAUL', 1, 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'), +('wnx1995a', 'Lorraine', 'PADILLA', 1, 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'), +('wpa1966a', 'Collier', 'ENGLISH', 1, 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'), +('wvn1982a', 'Sears', 'WELCH', 1, 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'), +('xdh1989a', 'Rasmussen', 'PAGE', 1, 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'), +('xdi1926a', 'Ferrell', 'SALAS', 1, 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'), +('xtb1903a', 'Kelly', 'FLYNN', 0, 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'), +('ydw1981a', 'Glenda', 'WILKINSON', 0, 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'), +('yjh1944a', 'Thompson', 'SOLIS', 1, 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'), +('ylq1926a', 'Stein', 'SILVA', 1, 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'), +('ypo1964a', 'Marylou', 'HOPKINS', 0, 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'), +('ypt1989a', 'Simon', 'MORALES', 1, 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'), +('yyt1926a', 'Bryant', 'CHANEY', 1, 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'), +('zge1937a', 'Ella', 'GARZA', 0, 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'), +('zgy1948a', 'Emily', 'ALVARADO', 0, 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'); -- --- Contraintes pour les tables exportées +-- Constraints for dumped tables -- -- --- Contraintes pour la table `appartenance` +-- Constraints for table `appartenance` -- ALTER TABLE `appartenance` ADD CONSTRAINT `appartenance_ibfk_1` FOREIGN KEY (`id_etudiant`) REFERENCES `utilisateur` (`identifiant`), @@ -616,38 +711,44 @@ ALTER TABLE `appartenance` ADD CONSTRAINT `appartenance_ibfk_3` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`); -- --- Contraintes pour la table `controle` +-- Constraints for table `controle` -- ALTER TABLE `controle` - ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`); + ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`) ON DELETE CASCADE; -- --- Contraintes pour la table `enseignement` +-- Constraints for table `enseignement` -- ALTER TABLE `enseignement` ADD CONSTRAINT `enseignement_id_enseignant` FOREIGN KEY (`id_enseignant`) REFERENCES `utilisateur` (`identifiant`), ADD CONSTRAINT `enseignement_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`); -- --- Contraintes pour la table `mcc_module` +-- Constraints for table `mcc_module` -- ALTER TABLE `mcc_module` - ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`), - ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`); + ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`) ON DELETE CASCADE; -- --- Contraintes pour la table `mcc_ue` +-- Constraints for table `mcc_ue` -- ALTER TABLE `mcc_ue` - ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`), - ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`); + ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`) ON DELETE CASCADE, + ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`) ON DELETE CASCADE; -- --- Contraintes pour la table `note` +-- Constraints for table `note` -- ALTER TABLE `note` - ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`), - ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`); + ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`) ON DELETE CASCADE, + ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`) ON DELETE CASCADE; + +-- +-- Constraints for table `semestre` +-- +ALTER TABLE `semestre` + ADD CONSTRAINT `semestre_id_formation` FOREIGN KEY (`id_formation`) REFERENCES `formation` (`id_formation`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;