· 9 years ago · Sep 20, 2017, 09:00 PM
1-- phpMyAdmin SQL Dump
2-- version 3.5.1
3-- http://www.phpmyadmin.net
4--
5-- Client: localhost
6-- Généré le: Mar 19 Mai 2015 à 18:29
7-- Version du serveur: 5.5.24-log
8-- Version de PHP: 5.4.3
9
10SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11SET time_zone = "+00:00";
12
13
14/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17/*!40101 SET NAMES utf8 */;
18
19--
20-- Base de données: `_gest-form`
21--
22
23-- --------------------------------------------------------
24
25--
26-- Structure de la table `adherent`
27--
28
29CREATE TABLE IF NOT EXISTS `adherent` (
30 `nLicence` bigint(20) NOT NULL AUTO_INCREMENT,
31 `Sexe` varchar(1) DEFAULT NULL,
32 `Nom` varchar(45) DEFAULT NULL,
33 `Prenom` varchar(45) DEFAULT NULL,
34 `DateNais` text,
35 `Adresse` text,
36 `CP` varchar(5) DEFAULT NULL,
37 `Ville` varchar(45) DEFAULT NULL,
38 `username` varchar(45) DEFAULT NULL,
39 `password` varchar(45) DEFAULT NULL,
40 `email` varchar(45) DEFAULT NULL,
41 PRIMARY KEY (`nLicence`)
42) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=170540193740 ;
43
44--
45-- Contenu de la table `adherent`
46--
47
48INSERT INTO `adherent` (`nLicence`, `Sexe`, `Nom`, `Prenom`, `DateNais`, `Adresse`, `CP`, `Ville`, `username`, `password`, `email`) VALUES
49(221, 'M', 'Adherent', 'Adherent', '01/01/1985', '1 avenue des eucalyptus', '54000', 'Nancy', 'adherent', 'adherent', 'adherent@email.fr'),
50(222, 'M', 'BRAVO', 'BRAVO', '29/12/1980', '2, rue de l''ecrin', '34000', 'MONTPELLIER', 'BRAVO', 'BRAVO', 'BRAVO@gmail.com'),
51(170540010121, 'M', 'SILBERT', 'GILLES', '03/01/1957', '2 , grande rue', '54210', 'Azelot', 'GILLES', 'GILLES', 'GILLES@gmail.com'),
52(170540010254, 'F', 'BILLOT', 'MARIANNE', '28/09/1986', '6, rue de la Sapiniére', '54600', 'Villers lés Nancy', 'MARIANNE', 'MARIANNE', 'MARIANNE@gmail.com'),
53(170540010308, 'M', 'BILLOT', 'DIDIER', '24/09/1962', '6, rue de la Sapiniére', '54600', 'Villers lés Nancy', 'DIDIER', 'DIDIER', 'DIDIER@gmail.com'),
54(170540010309, 'M', 'BECKER', 'ROMAIN', '28/03/1998', '1, rue des Mésanges', '54600', 'Villers lés Nancy', 'ROMAIN', 'ROMAIN', 'ROMAIN@gmail.com'),
55(170540010329, 'F', 'BILLOT', 'CLAIRE', '07/06/1963', '6, rue de la Sapiniére', '54600', 'Villers lés Nancy', 'CLAIRE', 'CLAIRE', 'CLAIRE@gmail.com'),
56(170540010334, 'F', 'BIACQUEL', 'VERONIQUE', '09/12/1962', '27, rue de Santifontaine', '54000', 'Nancy', 'VERONIQUE', 'VERONIQUE', 'VERONIQUE@gmail.com'),
57(170540010338, 'M', 'BERBIER', 'THEO', '24/03/1998', '12, rue de Marron', '54600', 'Villers lés Nancy', 'THEO', 'THEO', 'THEO@gmail.com'),
58(170540010339, 'M', 'GARBILLON', 'YANN', '21/03/1994', '31, avenue de Marron', '54600', 'Villers lés Nancy', 'YANN', 'YANN', 'YANN@gmail.com'),
59(170540010340, 'F', 'BERBIER', 'LUCILLE', '24/03/1998', '12, rue de Marron', '54600', 'Villers lés Nancy', 'LUCILLE', 'LUCILLE', 'LUCILLE@gmail.com'),
60(170540010341, 'F', 'HUMERT', 'ISABELLE', '04/06/1976', '4 rue du maréchal Galliéni', '54600', 'Villers lés Nancy', 'ISABELLE', 'ISABELLE', 'ISABELLE@gmail.com'),
61(170540010351, 'M', 'DEPERRIN', 'ARNAUD', '31/12/1982', '40 rue Paul Bert', '54600', 'Villers lés Nancy', 'ARNAUD', 'ARNAUD', 'ARNAUD@gmail.com'),
62(170540010353, 'M', 'PERNOT', 'PAUL', '26/04/1996', '6, rue Winston Churchill', '54000', 'Nancy', 'PAUL', 'PAUL', 'PAUL@gmail.com'),
63(170540010364, 'M', 'LUQUE', 'ETIENNE', '26/12/1951', '1, rue de Normandie', '54500', 'Vandoeuvre', 'ETIENNE', 'ETIENNE', 'ETIENNE@gmail.com'),
64(170540010382, 'F', 'HAGENBACH', 'CLEMENTINE', '26/11/1997', '19, rue de Lavaux', '54520', 'Laxou', 'CLEMENTINE', 'CLEMENTINE', 'CLEMENTINE@gmail.com'),
65(170540010395, 'M', 'GARBILLON', 'GILLES', '08/07/1963', '31, avenue de Marron', '54600', 'Villers lés nancy', 'GILLES', 'GILLES', 'GILLES@gmail.com'),
66(170540010399, 'F', 'BIDELOT', 'BRIGITTE', '20/09/1958', '5, rue des trois épis', '54600', 'Villers lés Nancy', 'BRIGITTE', 'BRIGITTE', 'BRIGITTE@gmail.com'),
67(170540010401, 'M', 'LIEVIN', 'NATHAN', '24/01/1997', '42, rue de la commanderie', '54840', 'Sexey les bois', 'NATHAN', 'NATHAN', 'NATHAN@gmail.com'),
68(170540010402, 'M', 'COTIN', 'FLORIAN', '15/04/1995', '14 route de Toul', '54113', 'Blenod les toul', 'FLORIAN', 'FLORIAN', 'FLORIAN@gmail.com'),
69(170540010405, 'M', 'TORTEMANN', 'PIERRE', '13/10/1997', '34, rue de Badonviller', '54000', 'Nancy', 'PIERRE', 'PIERRE', 'PIERRE@gmail.com'),
70(170540010407, 'M', 'BINNET', 'MARIUS', '21/08/1997', '12, rue Edouard Grosjean', '54520', 'Laxou', 'MARIUS', 'MARIUS', 'MARIUS@gmail.com'),
71(170540010409, 'F', 'DEPRETRE', 'BEATRICE', '27/01/1998', '26, rue du petit étang', '54110', 'Buissoncourt', 'BEATRICE', 'BEATRICE', 'BEATRICE@gmail.com'),
72(170540010414, 'M', 'CHERPION', 'UGO', '24/09/1999', '63, rue Franéais', '54000', 'Nancy', 'UGO', 'UGO', 'UGO@gmail.com'),
73(170540010418, 'F', 'ZUEL', 'STEPHANIE', '25/09/1970', '8, sentier de Saint-Arriant', '54520', 'Laxou', 'STEPHANIE', 'STEPHANIE', 'STEPHANIE@gmail.com'),
74(170540010419, 'M', 'LANIELLE', 'NICOLAS', '02/09/1998', '10, rue des orchidées', '54600', 'Villers les Nancy', 'NICOLAS', 'NICOLAS', 'NICOLAS@gmail.com'),
75(170540010420, 'F', 'HASFELD', 'AUXANE', '08/03/1999', '32, allée de l''observatoire', '54520', 'Laxou', 'AUXANE', 'AUXANE', 'thomas.m314@mail.com'),
76(170540010428, 'M', 'CHEOLLE', 'NICOLAS', '19/04/1983', '46, rue de l''abbé Didelot', '54520', 'Laxou', 'NICOLAS', 'NICOLAS', 'NICOLAS@gmail.com'),
77(170540010429, 'M', 'LAMOINE', 'GREGOIRE', '23/07/1993', '65, rue de la sivrite', '54600', 'Villers lés Nancy', 'GREGOIRE', 'GREGOIRE', 'GREGOIRE@gmail.com'),
78(170540010431, 'M', 'CASTEL', 'TIMOTHE', '10/06/1998', '26, rue de l''abbé Didelot', '54600', 'Villers lés Nancy', 'TIMOTHE', 'TIMOTHE', 'TIMOTHE@gmail.com'),
79(170540010432, 'M', 'LAFIEGLON', 'CLEMENT', '16/11/2002', '62, avenue Paul Dérouléde', '54600', 'Villers lés Nancy', 'CLEMENT', 'CLEMENT', 'CLEMENT@gmail.com'),
80(170540010437, 'M', 'ZOECKEL', 'MATHIEU', '02/06/2000', '15, rue de la Seille', '54320', 'Maxéville', 'MATHIEU', 'MATHIEU', 'MATHIEU@gmail.com'),
81(170540010438, 'M', 'REMILLON', 'ELIOT', '13/11/2001', '3, rue de l''Embanie', '54520', 'Laxou', 'ELIOT', 'ELIOT', 'ELIOT@gmail.com'),
82(170540010439, 'M', 'LOTANG', 'CYPRIEN', '30/09/1999', '16, rue de Gerbéviller', '54000', 'Nancy', 'CYPRIEN', 'CYPRIEN', 'CYPRIEN@gmail.com'),
83(170540010440, 'M', 'CHOUARNO', 'TOM', '02/08/1999', '168, avenue de Boufflers', '54000', 'Nancy', 'TOM', 'TOM', 'TOM@gmail.com'),
84(170540010441, 'M', 'CHEVOITINE', 'LOUIS', '29/03/1998', '40, rue de la république', '54320', 'Maxéville', 'LOUIS', 'LOUIS', 'LOUIS@gmail.com'),
85(170540010442, 'F', 'BIDELOT', 'JULIE', '30/11/1991', '5, rue des trois épis', '54600', 'Villers lés Nancy', 'JULIE', 'JULIE', 'JULIE@gmail.com'),
86(170540010443, 'M', 'BANDILELLA', 'CLEMENT', '26/07/1998', '30, rue Widric 1er', '54600', 'Villers lés Nancy', 'CLEMENT', 'CLEMENT', 'CLEMENT@gmail.com'),
87(170540010444, 'M', 'CALDI', 'THOMAS', '22/09/1998', '12, rue de Malzéville', '54000', 'Nancy', 'THOMAS', 'THOMAS', 'THOMAS@gmail.com'),
88(170540010446, 'M', 'DUCRICK', 'AUGUSTIN', '03/12/1996', '31, rue du chanoine Pierron', '54600', 'Villers lés nancy', 'AUGUSTIN', 'AUGUSTIN', 'AUGUSTIN@gmail.com'),
89(170540010447, 'F', 'SILBERT', 'LEA', '14/04/2000', '1, allée du cénacle', '54520', 'Laxou', 'LEA', 'LEA', 'LEA@gmail.com'),
90(170540010448, 'M', 'ZUERO', 'THOMAS', '14/08/2000', 'immeuble Savoie', '54520', 'Laxou', 'THOMAS', 'THOMAS', 'THOMAS@gmail.com'),
91(170540193739, 'M', 'HEISENBERG', 'WERNER', '05/12/1901', '1,place de Kremlin', '81929', 'Munich Allemagne', 'WALTHER', 'WALTHER', 'WALTHER@gmail.com');
92
93-- --------------------------------------------------------
94
95--
96-- Structure de la table `formation`
97--
98
99CREATE TABLE IF NOT EXISTS `formation` (
100 `idFormation` int(11) NOT NULL,
101 `Motif` varchar(45) DEFAULT NULL,
102 `Organisateur_idOrganisateur` int(11) NOT NULL,
103 `DUREE` text,
104 PRIMARY KEY (`idFormation`,`Organisateur_idOrganisateur`),
105 KEY `fk_Formation_Organisateur1_idx` (`Organisateur_idOrganisateur`)
106) ENGINE=InnoDB DEFAULT CHARSET=utf8;
107
108--
109-- Contenu de la table `formation`
110--
111
112INSERT INTO `formation` (`idFormation`, `Motif`, `Organisateur_idOrganisateur`, `DUREE`) VALUES
113(1, 'CAC', 1, NULL),
114(2, 'ESPORT', 2, NULL);
115
116-- --------------------------------------------------------
117
118--
119-- Structure de la table `ligue`
120--
121
122CREATE TABLE IF NOT EXISTS `ligue` (
123 `idLigue` int(11) NOT NULL AUTO_INCREMENT,
124 `LibLig` varchar(45) DEFAULT NULL,
125 PRIMARY KEY (`idLigue`)
126) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
127
128--
129-- Contenu de la table `ligue`
130--
131
132INSERT INTO `ligue` (`idLigue`, `LibLig`) VALUES
133(1, 'FOOT'),
134(2, 'TENIS');
135
136-- --------------------------------------------------------
137
138--
139-- Structure de la table `organisateur`
140--
141
142CREATE TABLE IF NOT EXISTS `organisateur` (
143 `idOrganisateur` int(11) NOT NULL AUTO_INCREMENT,
144 `Nom` varchar(45) DEFAULT NULL,
145 `Prenom` varchar(45) DEFAULT NULL,
146 `username` varchar(45) DEFAULT NULL,
147 `password` varchar(45) DEFAULT NULL,
148 `email` varchar(45) DEFAULT NULL,
149 `Ligue_idLigue` int(11) NOT NULL,
150 PRIMARY KEY (`idOrganisateur`,`Ligue_idLigue`),
151 KEY `fk_Organisateur_Ligue1_idx` (`Ligue_idLigue`)
152) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
153
154--
155-- Contenu de la table `organisateur`
156--
157
158INSERT INTO `organisateur` (`idOrganisateur`, `Nom`, `Prenom`, `username`, `password`, `email`, `Ligue_idLigue`) VALUES
159(1, 'VEYRE', 'ANTONY', 'ANTONY', 'ANTONY', 'email@gmail.com', 2),
160(2, 'PAPOUCHADO', 'THIERRY', 'THIERRY', 'THIERRY', 'mail@gmail.com', 1),
161(3, 'Organisateur', 'Organisateur', 'organisateur', 'organisateur', 'organisateur@email.fr', 2);
162
163-- --------------------------------------------------------
164
165--
166-- Structure de la table `session`
167--
168
169CREATE TABLE IF NOT EXISTS `session` (
170 `idSession` int(11) NOT NULL,
171 `FORMATION_idFormation` int(11) NOT NULL,
172 `DateDebut` varchar(11) DEFAULT NULL,
173 `NBMAX` tinyint(4) DEFAULT NULL,
174 `NBMIN` tinyint(4) DEFAULT NULL,
175 `VALID` tinyint(1) DEFAULT NULL,
176 PRIMARY KEY (`idSession`),
177 KEY `fk_FORMATION_has_ADHERENT_FORMATION1_idx` (`FORMATION_idFormation`)
178) ENGINE=InnoDB DEFAULT CHARSET=utf8;
179
180-- --------------------------------------------------------
181
182--
183-- Structure de la table `session_adherent`
184--
185
186CREATE TABLE IF NOT EXISTS `session_adherent` (
187 `Session_idSession` int(11) NOT NULL,
188 `ADHERENT_nLicence` bigint(20) NOT NULL,
189 PRIMARY KEY (`Session_idSession`,`ADHERENT_nLicence`),
190 KEY `ADHERENT_nLicence` (`ADHERENT_nLicence`)
191) ENGINE=InnoDB DEFAULT CHARSET=utf8;
192
193--
194-- Contraintes pour les tables exportées
195--
196
197--
198-- Contraintes pour la table `formation`
199--
200ALTER TABLE `formation`
201 ADD CONSTRAINT `fk_Formation_Organisateur1` FOREIGN KEY (`Organisateur_idOrganisateur`) REFERENCES `organisateur` (`idOrganisateur`) ON DELETE NO ACTION ON UPDATE NO ACTION;
202
203--
204-- Contraintes pour la table `organisateur`
205--
206ALTER TABLE `organisateur`
207 ADD CONSTRAINT `fk_Organisateur_Ligue1` FOREIGN KEY (`Ligue_idLigue`) REFERENCES `ligue` (`idLigue`) ON DELETE NO ACTION ON UPDATE NO ACTION;
208
209--
210-- Contraintes pour la table `session`
211--
212ALTER TABLE `session`
213 ADD CONSTRAINT `fk_FORMATION_has_ADHERENT_FORMATION1` FOREIGN KEY (`FORMATION_idFormation`) REFERENCES `formation` (`idFormation`) ON DELETE NO ACTION ON UPDATE NO ACTION;
214
215--
216-- Contraintes pour la table `session_adherent`
217--
218ALTER TABLE `session_adherent`
219 ADD CONSTRAINT `session_adherent_ibfk_2` FOREIGN KEY (`ADHERENT_nLicence`) REFERENCES `adherent` (`nLicence`) ON DELETE NO ACTION ON UPDATE NO ACTION,
220 ADD CONSTRAINT `session_adherent_ibfk_1` FOREIGN KEY (`Session_idSession`) REFERENCES `session` (`idSession`) ON DELETE NO ACTION ON UPDATE NO ACTION;
221
222/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
223/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
224/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;