Mise à jour sid.sql

This commit is contained in:
xdrm-brackets 2015-11-06 11:16:41 +01:00
parent 9a75ef5f9f
commit 55a2e54594
1 changed files with 71 additions and 57 deletions

View File

@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Mar 03 Novembre 2015 à 11:11
-- Généré le: Ven 06 Novembre 2015 à 11:16
-- Version du serveur: 5.5.46-0ubuntu0.14.04.2
-- Version de PHP: 5.5.9-1ubuntu4.14
@ -56,7 +56,7 @@ CREATE TABLE IF NOT EXISTS `appartenance` (
--
INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES
(1, 'mrd1609a', 6, 2),
(1, 'mrd1609a', 2, 2),
(2, 'ihf1991a', 16, 4),
(3, 'mma1990a', 13, 1),
(4, 'lme1952a', 15, 3),
@ -90,7 +90,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
(32, 'kul1903a', 9, 1),
(33, 'rmj1965a', 11, 3),
(34, 'yyt1926a', 21, 1),
(35, 'ktz1997a', 2, 2),
(35, 'ktz1997a', 6, 2),
(36, 'hku1995a', 17, 1),
(37, 'zgy1948a', 10, 2),
(38, 'vau1957a', 23, 3),
@ -100,7 +100,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
(42, 'qoe1974a', 20, 4),
(43, 'tkz1955a', 11, 3),
(44, 'wnx1995a', 16, 4),
(45, 'sft1994a', 6, 2),
(45, 'sft1994a', 2, 2),
(46, 'vgb1979a', 7, 3),
(47, 'wbt1993a', 19, 3),
(48, 'xtb1903a', 11, 3),
@ -171,7 +171,7 @@ 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=1 ;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- RELATIONS POUR LA TABLE `enseignement`:
@ -181,11 +181,15 @@ CREATE TABLE IF NOT EXISTS `enseignement` (
-- `mcc_module` -> `id_mcc_module`
--
-- --------------------------------------------------------
--
-- Contenu de la table `enseignement`
--
INSERT INTO `enseignement`(`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES
(1, 'lbh1609a', 5 , 0), -- leblanc [S2 UE1 2015 - M2101 - Bases de la POO]
(2, 'lbh1609a', 10, 0); -- leblanc [S3 UE3 2015 - 3302 - POO Avancee]
INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES
(1, 'lbh1609a', 5, 0),
(2, 'lbh1609a', 10, 0);
-- --------------------------------------------------------
--
-- Structure de la table `groupe`
@ -241,7 +245,7 @@ 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=1 ;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
--
-- RELATIONS POUR LA TABLE `mcc_module`:
@ -250,30 +254,28 @@ CREATE TABLE IF NOT EXISTS `mcc_module` (
-- `id_mcc_ue`
-- `mcc_ue` -> `id_mcc_ue`
--
INSERT INTO `mcc_module`(`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficient`) VALUES
(1 , 1, 1, 1.0), -- S1 2015 - UE1(1) - M1101(1 ) - coeff 1.0
(2 , 1, 2, 1.0), -- S1 2015 - UE1(1) - M1102(2 ) - coeff 1.0
(3 , 2, 3, 1.0), -- S1 2015 - UE2(2) - M1201(3 ) - coeff 1.0
(4 , 2, 4, 1.0), -- S1 2015 - UE2(2) - M1202(4 ) - coeff 1.0
--
-- Contenu de la table `mcc_module`
--
(5 , 3, 5, 1.0), -- S2 2015 - UE1(3) - M2101(5 ) - coeff 1.0
(6 , 3, 6, 1.0), -- S2 2015 - UE1(3) - M2102(6 ) - coeff 1.0
(7 , 4, 7, 1.0), -- S2 2015 - UE2(4) - M2201(7 ) - coeff 1.0
(8 , 4, 8, 1.0), -- S2 2015 - UE2(4) - M2202(8 ) - coeff 1.0
(9 , 5, 9, 1.0), -- S3 2015 - UE3(5) - M1101(9 ) - coeff 1.0
(10, 5, 10, 1.0), -- S3 2015 - UE3(5) - M1102(10) - coeff 1.0
(11, 6, 11, 1.0), -- S3 2015 - UE4(6) - M1101(11) - coeff 1.0
(12, 6, 12, 1.0), -- S3 2015 - UE4(6) - M1102(12) - coeff 1.0
(13, 7, 13, 1.0), -- S4 2015 - UE3(7) - M1101(13) - coeff 1.0
(14, 7, 14, 1.0), -- S4 2015 - UE3(7) - M1102(14) - coeff 1.0
(15, 8, 15, 1.0), -- S4 2015 - UE4(8) - M1101(15) - coeff 1.0
(16, 8, 16, 1.0); -- S4 2015 - UE4(8) - M1102(16) - coeff 1.0
INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficient`) VALUES
(1, 1, 1, 1),
(2, 1, 2, 1),
(3, 2, 3, 1),
(4, 2, 4, 1),
(5, 3, 5, 1),
(6, 3, 6, 1),
(7, 4, 7, 1),
(8, 4, 8, 1),
(9, 5, 9, 1),
(10, 5, 10, 1),
(11, 6, 11, 1),
(12, 6, 12, 1),
(13, 7, 13, 1),
(14, 7, 14, 1),
(15, 8, 15, 1),
(16, 8, 16, 1);
-- --------------------------------------------------------
@ -289,7 +291,7 @@ 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=1 ;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- RELATIONS POUR LA TABLE `mcc_ue`:
@ -299,15 +301,20 @@ CREATE TABLE IF NOT EXISTS `mcc_ue` (
-- `semestre` -> `id_semestre`
--
INSERT INTO `mcc_ue`(`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES
(1, 1, 1, 1.0), -- S1 2015(1) - UE1(1) - coeff 1.0
(2, 1, 2, 1.0), -- S1 2015(1) - UE2(2) - coeff 1.0
(3, 2, 1, 1.0), -- S2 2015(2) - UE1(1) - coeff 1.0
(4, 2, 2, 1.0), -- S2 2015(2) - UE2(2) - coeff 1.0
(5, 3, 3, 1.0), -- S3 2015(3) - UE3(3) - coeff 1.0
(6, 3, 4, 1.0), -- S3 2015(3) - UE4(4) - coeff 1.0
(7, 4, 3, 1.0), -- S4 2015(4) - UE3(3) - coeff 1.0
(8, 4, 4, 1.0); -- S4 2015(4) - UE4(4) - coeff 1.0
--
-- Contenu de la table `mcc_ue`
--
INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES
(1, 1, 1, 1),
(2, 1, 2, 1),
(3, 2, 1, 1),
(4, 2, 2, 1),
(5, 3, 3, 1),
(6, 3, 4, 1),
(7, 4, 3, 1),
(8, 4, 4, 1);
-- --------------------------------------------------------
--
@ -353,33 +360,40 @@ CREATE TABLE IF NOT EXISTS `note` (
`id_note` int(11) NOT NULL AUTO_INCREMENT,
`id_appartenance` int(11) NOT NULL,
`id_mcc_module` int(11) NOT NULL,
`intitule` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`intitule` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`valeur` float NOT NULL,
`base` float NOT NULL,
`coefficient` float NOT NULL,
PRIMARY KEY (`id_note`),
KEY `id_appartenance` (`id_appartenance`),
KEY `id_mcc_module` (`id_mcc_module`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- RELATIONS POUR LA TABLE `note`:
-- `id_mcc_module`
-- `mcc_module` -> `id_mcc_module`
-- `id_appartenance`
-- `appartenance` -> `id_appartenance`
-- `id_mcc_module`
-- `mcc_module` -> `id_mcc_module`
--
--
-- Contenu de la table `note`
--
-- --------------------------------------------------------
INSERT INTO `note` (`id_note`, `id_appartenance`, `id_mcc_module`, `date`, `intitule`, `valeur`, `base`, `coefficient`) VALUES
(1, 1, 5, '0000-00-00 00:00:00', 'Partiel 1', 1, 10, 1),
(2, 1, 5, '0000-00-00 00:00:00', 'Partiel 2', 2, 10, 1),
(3, 1, 6, '0000-00-00 00:00:00', 'Partiel 3', 3, 10, 1),
(4, 1, 6, '0000-00-00 00:00:00', 'Partiel 4', 4, 10, 1),
(5, 1, 7, '0000-00-00 00:00:00', 'Partiel 5', 5, 10, 1),
(6, 1, 7, '0000-00-00 00:00:00', 'Partiel 6', 6, 10, 1),
(7, 1, 8, '0000-00-00 00:00:00', 'Partiel 7', 7, 10, 1),
(8, 1, 8, '0000-00-00 00:00:00', 'Partiel 8', 8, 10, 1);
(1, 1, 5, '0000-00-00 00:00:00', 'Partiel 1', 5.11, 10, 1),
(2, 1, 5, '0000-00-00 00:00:00', 'Partiel 2', 5.21, 10, 1),
(3, 1, 6, '0000-00-00 00:00:00', 'Partiel 3', 5.31, 10, 1),
(4, 1, 6, '0000-00-00 00:00:00', 'Partiel 4', 5.41, 10, 1),
(5, 1, 7, '0000-00-00 00:00:00', 'Partiel 5', 5.51, 10, 1),
(6, 1, 7, '0000-00-00 00:00:00', 'Partiel 6', 5.61, 10, 1),
(7, 1, 8, '0000-00-00 00:00:00', 'Partiel 7', 5.71, 10, 1),
(8, 1, 8, '0000-00-00 00:00:00', 'Partiel 8', 5.81, 10, 1);
-- --------------------------------------------------------
--
-- Structure de la table `semestre`
--
@ -592,8 +606,8 @@ ALTER TABLE `mcc_ue`
-- Contraintes pour la table `note`
--
ALTER TABLE `note`
ADD CONSTRAINT `note_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`),
ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`);
ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`),
ADD CONSTRAINT `note_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;