Mise à jour de xdoc/sid.sql
This commit is contained in:
parent
334272f0d1
commit
6d24b03256
101
xdoc/sid.sql
101
xdoc/sid.sql
|
@ -3,7 +3,7 @@
|
||||||
-- http://www.phpmyadmin.net
|
-- http://www.phpmyadmin.net
|
||||||
--
|
--
|
||||||
-- Client: localhost
|
-- Client: localhost
|
||||||
-- Généré le: Lun 09 Novembre 2015 à 12:49
|
-- Généré le: Sam 14 Novembre 2015 à 18:33
|
||||||
-- Version du serveur: 5.5.46-0ubuntu0.14.04.2
|
-- Version du serveur: 5.5.46-0ubuntu0.14.04.2
|
||||||
-- Version de PHP: 5.5.9-1ubuntu4.14
|
-- Version de PHP: 5.5.9-1ubuntu4.14
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS `appartenance` (
|
||||||
KEY `id_etudiant_2` (`id_etudiant`),
|
KEY `id_etudiant_2` (`id_etudiant`),
|
||||||
KEY `id_groupe_2` (`id_groupe`),
|
KEY `id_groupe_2` (`id_groupe`),
|
||||||
KEY `id_semestre_2` (`id_semestre`)
|
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 POUR LA TABLE `appartenance`:
|
||||||
|
@ -60,7 +60,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(2, 'ihf1991a', 16, 4),
|
(2, 'ihf1991a', 16, 4),
|
||||||
(3, 'mma1990a', 13, 1),
|
(3, 'mma1990a', 13, 1),
|
||||||
(4, 'lme1952a', 15, 3),
|
(4, 'lme1952a', 15, 3),
|
||||||
(5, 'imf1922a', 9, 1),
|
(5, 'imf1922a', 21, 1),
|
||||||
(6, 'gyy1983a', 4, 4),
|
(6, 'gyy1983a', 4, 4),
|
||||||
(7, 'otm1902a', 14, 2),
|
(7, 'otm1902a', 14, 2),
|
||||||
(8, 'tnx1949a', 12, 4),
|
(8, 'tnx1949a', 12, 4),
|
||||||
|
@ -74,14 +74,14 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(16, 'pdi1904a', 19, 3),
|
(16, 'pdi1904a', 19, 3),
|
||||||
(17, 'cuk1947a', 10, 2),
|
(17, 'cuk1947a', 10, 2),
|
||||||
(18, 'non1968a', 22, 2),
|
(18, 'non1968a', 22, 2),
|
||||||
(19, 'hmn1970a', 21, 1),
|
(19, 'hmn1970a', 1, 1),
|
||||||
(20, 'hth1975a', 5, 1),
|
(20, 'hth1975a', 5, 1),
|
||||||
(21, 'liw1940a', 6, 2),
|
(21, 'liw1940a', 6, 2),
|
||||||
(22, 'dtg1946a', 18, 2),
|
(22, 'dtg1946a', 18, 2),
|
||||||
(23, 'oxz1985a', 7, 3),
|
(23, 'oxz1985a', 7, 3),
|
||||||
(24, 'ono1984a', 14, 2),
|
(24, 'ono1984a', 14, 2),
|
||||||
(25, 'auy1966a', 3, 3),
|
(25, 'auy1966a', 3, 3),
|
||||||
(26, 'dui1946a', 9, 1),
|
(26, 'dui1946a', 5, 1),
|
||||||
(27, 'cyw1979a', 24, 4),
|
(27, 'cyw1979a', 24, 4),
|
||||||
(28, 'pfv1965a', 3, 3),
|
(28, 'pfv1965a', 3, 3),
|
||||||
(29, 'oqz1937a', 24, 4),
|
(29, 'oqz1937a', 24, 4),
|
||||||
|
@ -95,13 +95,13 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(37, 'zgy1948a', 10, 2),
|
(37, 'zgy1948a', 10, 2),
|
||||||
(38, 'vau1957a', 23, 3),
|
(38, 'vau1957a', 23, 3),
|
||||||
(39, 'hsx1927a', 19, 3),
|
(39, 'hsx1927a', 19, 3),
|
||||||
(40, 'eca1977a', 11, 3),
|
(40, 'eca1977a', 3, 3),
|
||||||
(41, 'wpa1966a', 20, 4),
|
(41, 'wpa1966a', 20, 4),
|
||||||
(42, 'qoe1974a', 20, 4),
|
(42, 'qoe1974a', 20, 4),
|
||||||
(43, 'tkz1955a', 11, 3),
|
(43, 'tkz1955a', 11, 3),
|
||||||
(44, 'wnx1995a', 16, 4),
|
(44, 'wnx1995a', 16, 4),
|
||||||
(45, 'sft1994a', 2, 2),
|
(45, 'sft1994a', 2, 2),
|
||||||
(46, 'vgb1979a', 3, 3),
|
(46, 'vgb1979a', 11, 3),
|
||||||
(47, 'wbt1993a', 19, 3),
|
(47, 'wbt1993a', 19, 3),
|
||||||
(48, 'xtb1903a', 11, 3),
|
(48, 'xtb1903a', 11, 3),
|
||||||
(49, 'msj1985a', 13, 1),
|
(49, 'msj1985a', 13, 1),
|
||||||
|
@ -109,7 +109,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(51, 'psg1965a', 8, 4),
|
(51, 'psg1965a', 8, 4),
|
||||||
(52, 'hpa1908a', 5, 1),
|
(52, 'hpa1908a', 5, 1),
|
||||||
(53, 'maq1980a', 19, 3),
|
(53, 'maq1980a', 19, 3),
|
||||||
(54, 'agq1929a', 5, 1),
|
(54, 'agq1929a', 13, 1),
|
||||||
(55, 'gwe1975a', 18, 2),
|
(55, 'gwe1975a', 18, 2),
|
||||||
(56, 'gdb1939a', 7, 3),
|
(56, 'gdb1939a', 7, 3),
|
||||||
(57, 'jrc1974a', 10, 2),
|
(57, 'jrc1974a', 10, 2),
|
||||||
|
@ -117,8 +117,8 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(59, 'buz1982a', 24, 4),
|
(59, 'buz1982a', 24, 4),
|
||||||
(60, 'mhr1952a', 7, 3),
|
(60, 'mhr1952a', 7, 3),
|
||||||
(61, 'pos1958a', 11, 3),
|
(61, 'pos1958a', 11, 3),
|
||||||
(62, 'xdi1926a', 7, 3),
|
(62, 'xdi1926a', 3, 3),
|
||||||
(63, 'awl1901a', 1, 1),
|
(63, 'awl1901a', 17, 1),
|
||||||
(64, 'uix1942a', 7, 3),
|
(64, 'uix1942a', 7, 3),
|
||||||
(65, 'ngz1932a', 19, 3),
|
(65, 'ngz1932a', 19, 3),
|
||||||
(66, 'kpf1942a', 15, 3),
|
(66, 'kpf1942a', 15, 3),
|
||||||
|
@ -141,7 +141,7 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(83, 'ngw1997a', 1, 1),
|
(83, 'ngw1997a', 1, 1),
|
||||||
(84, 'obg1973a', 2, 2),
|
(84, 'obg1973a', 2, 2),
|
||||||
(85, 'hzg1935a', 12, 4),
|
(85, 'hzg1935a', 12, 4),
|
||||||
(86, 'iyh1918a', 11, 3),
|
(86, 'iyh1918a', 3, 3),
|
||||||
(87, 'tdc1978a', 13, 1),
|
(87, 'tdc1978a', 13, 1),
|
||||||
(88, 'swd1951a', 2, 2),
|
(88, 'swd1951a', 2, 2),
|
||||||
(89, 'vdj1905a', 22, 2),
|
(89, 'vdj1905a', 22, 2),
|
||||||
|
@ -153,9 +153,10 @@ INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_s
|
||||||
(95, 'bky1924a', 22, 2),
|
(95, 'bky1924a', 22, 2),
|
||||||
(96, 'vul1953a', 5, 1),
|
(96, 'vul1953a', 5, 1),
|
||||||
(97, 'ssr1906a', 9, 1),
|
(97, 'ssr1906a', 9, 1),
|
||||||
(98, 'yjh1944a', 3, 3),
|
(98, 'yjh1944a', 11, 3),
|
||||||
(99, 'ste1994a', 10, 2),
|
(99, 'ste1994a', 10, 2),
|
||||||
(100, 'ypo1964a', 7, 3);
|
(100, 'ypo1964a', 7, 3),
|
||||||
|
(103, 'mrd1609a', 1, 1);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -172,7 +173,7 @@ CREATE TABLE IF NOT EXISTS `controle` (
|
||||||
`date_publication` date NOT NULL,
|
`date_publication` date NOT NULL,
|
||||||
PRIMARY KEY (`id_controle`),
|
PRIMARY KEY (`id_controle`),
|
||||||
KEY `id_mcc_module` (`id_mcc_module`)
|
KEY `id_mcc_module` (`id_mcc_module`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- RELATIONS POUR LA TABLE `controle`:
|
-- RELATIONS POUR LA TABLE `controle`:
|
||||||
|
@ -185,14 +186,16 @@ CREATE TABLE IF NOT EXISTS `controle` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `intitule`, `base`, `coefficient`, `date_publication`) VALUES
|
INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `intitule`, `base`, `coefficient`, `date_publication`) VALUES
|
||||||
(1, 5, 'Partiel 1', 20, 1, '2015-11-09'),
|
(1, 1, 'Partiel 1', 20, 1, '2015-11-09'),
|
||||||
(2, 5, 'Partiel 2', 20, 1, '2015-11-10'),
|
(2, 1, 'Partiel 2', 20, 1, '2015-11-10'),
|
||||||
(3, 6, 'Partiel 3', 20, 1, '2015-11-11'),
|
(3, 2, 'Partiel 3', 20, 1, '2015-11-11'),
|
||||||
(4, 6, 'Partiel 4', 20, 1, '2015-11-12'),
|
(4, 2, 'Partiel 4', 20, 1, '2015-11-12'),
|
||||||
(5, 7, 'Partiel 5', 20, 1, '2015-11-13'),
|
(5, 3, 'Partiel 5', 20, 1, '2015-11-13'),
|
||||||
(6, 7, 'Partiel 6', 20, 1, '2015-11-14'),
|
(6, 3, 'Partiel 6', 20, 1, '2015-11-14'),
|
||||||
(7, 8, 'Partiel 7', 20, 1, '2015-11-15'),
|
(7, 4, 'Partiel 7', 20, 1, '2015-11-15'),
|
||||||
(8, 8, 'Partiel 8', 20, 1, '2015-11-16');
|
(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');
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -208,7 +211,7 @@ CREATE TABLE IF NOT EXISTS `enseignement` (
|
||||||
PRIMARY KEY (`id_enseignement`),
|
PRIMARY KEY (`id_enseignement`),
|
||||||
KEY `id_enseignant` (`id_enseignant`),
|
KEY `id_enseignant` (`id_enseignant`),
|
||||||
KEY `id_mcc_module` (`id_mcc_module`)
|
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 POUR LA TABLE `enseignement`:
|
||||||
|
@ -223,8 +226,10 @@ CREATE TABLE IF NOT EXISTS `enseignement` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES
|
INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `correcteur`) VALUES
|
||||||
(1, 'lbh1609a', 5, 0),
|
(1, 'lbh1609a', 5, 1),
|
||||||
(2, 'lbh1609a', 10, 0);
|
(2, 'lbh1609a', 10, 1),
|
||||||
|
(3, 'admin', 9, 1),
|
||||||
|
(4, 'admin', 1, 1);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -286,10 +291,10 @@ CREATE TABLE IF NOT EXISTS `mcc_module` (
|
||||||
|
|
||||||
--
|
--
|
||||||
-- RELATIONS POUR LA TABLE `mcc_module`:
|
-- RELATIONS POUR LA TABLE `mcc_module`:
|
||||||
-- `id_module`
|
|
||||||
-- `module` -> `id_module`
|
|
||||||
-- `id_mcc_ue`
|
-- `id_mcc_ue`
|
||||||
-- `mcc_ue` -> `id_mcc_ue`
|
-- `mcc_ue` -> `id_mcc_ue`
|
||||||
|
-- `id_module`
|
||||||
|
-- `module` -> `id_module`
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -332,10 +337,10 @@ CREATE TABLE IF NOT EXISTS `mcc_ue` (
|
||||||
|
|
||||||
--
|
--
|
||||||
-- RELATIONS POUR LA TABLE `mcc_ue`:
|
-- RELATIONS POUR LA TABLE `mcc_ue`:
|
||||||
-- `id_ue`
|
|
||||||
-- `ue` -> `id_ue`
|
|
||||||
-- `id_semestre`
|
-- `id_semestre`
|
||||||
-- `semestre` -> `id_semestre`
|
-- `semestre` -> `id_semestre`
|
||||||
|
-- `id_ue`
|
||||||
|
-- `ue` -> `id_ue`
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -401,14 +406,14 @@ CREATE TABLE IF NOT EXISTS `note` (
|
||||||
PRIMARY KEY (`id_note`),
|
PRIMARY KEY (`id_note`),
|
||||||
KEY `id_appartenance` (`id_appartenance`),
|
KEY `id_appartenance` (`id_appartenance`),
|
||||||
KEY `id_controle` (`id_controle`)
|
KEY `id_controle` (`id_controle`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- RELATIONS POUR LA TABLE `note`:
|
-- RELATIONS POUR LA TABLE `note`:
|
||||||
-- `id_controle`
|
|
||||||
-- `controle` -> `id_controle`
|
|
||||||
-- `id_appartenance`
|
-- `id_appartenance`
|
||||||
-- `appartenance` -> `id_appartenance`
|
-- `appartenance` -> `id_appartenance`
|
||||||
|
-- `id_controle`
|
||||||
|
-- `controle` -> `id_controle`
|
||||||
--
|
--
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -416,14 +421,17 @@ CREATE TABLE IF NOT EXISTS `note` (
|
||||||
--
|
--
|
||||||
|
|
||||||
INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUES
|
INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUES
|
||||||
(11, 1, 1, 1),
|
(11, 103, 1, 1),
|
||||||
(12, 1, 2, 2),
|
(12, 54, 2, 2),
|
||||||
(13, 1, 3, 3),
|
(13, 103, 3, 3),
|
||||||
(14, 1, 4, 4),
|
(14, 103, 4, 4),
|
||||||
(15, 1, 5, 5),
|
(15, 103, 5, 5),
|
||||||
(16, 1, 6, 6),
|
(16, 103, 6, 6),
|
||||||
(17, 1, 7, 7),
|
(17, 103, 7, 7),
|
||||||
(18, 1, 8, 8);
|
(18, 103, 8, 8),
|
||||||
|
(19, 103, 9, 9),
|
||||||
|
(20, 20, 1, 19),
|
||||||
|
(21, 77, 1, 18);
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
@ -500,6 +508,7 @@ CREATE TABLE IF NOT EXISTS `utilisateur` (
|
||||||
|
|
||||||
INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `mail`, `mdp`, `droits`) VALUES
|
INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `mail`, `mdp`, `droits`) VALUES
|
||||||
('admin', 'monsieur', 'administrateur', 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin,teacher'),
|
('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'),
|
('aft1950a', 'Rachel', 'DAVENPORT', 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'),
|
||||||
('agl1956a', 'Cruz', 'HOWE', 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'),
|
('agl1956a', 'Cruz', 'HOWE', 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'),
|
||||||
('agq1929a', 'Althea', 'POOLE', 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'),
|
('agq1929a', 'Althea', 'POOLE', 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'),
|
||||||
|
@ -632,22 +641,22 @@ ALTER TABLE `enseignement`
|
||||||
-- Contraintes pour la table `mcc_module`
|
-- Contraintes pour la table `mcc_module`
|
||||||
--
|
--
|
||||||
ALTER 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_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`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Contraintes pour la table `mcc_ue`
|
-- Contraintes pour la table `mcc_ue`
|
||||||
--
|
--
|
||||||
ALTER 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_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`);
|
ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Contraintes pour la table `note`
|
-- Contraintes pour la table `note`
|
||||||
--
|
--
|
||||||
ALTER 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_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`);
|
ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`);
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||||
|
|
Loading…
Reference in New Issue