· 8 years ago · Mar 22, 2018, 04:28 AM
1-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
2--
3-- Host: localhost Database: mydb
4-- ------------------------------------------------------
5-- Server version 5.7.21-0ubuntu0.17.10.1
6
7/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10/*!40101 SET NAMES utf8 */;
11/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12/*!40103 SET TIME_ZONE='+00:00' */;
13/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18--
19-- Table structure for table `dossier`
20--
21
22DROP TABLE IF EXISTS `dossier`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `dossier` (
26 `id` int(11) NOT NULL AUTO_INCREMENT,
27 `num_dossier` varchar(45) NOT NULL,
28 PRIMARY KEY (`id`),
29 UNIQUE KEY `num_dossier_UNIQUE` (`num_dossier`)
30) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
31/*!40101 SET character_set_client = @saved_cs_client */;
32
33--
34-- Dumping data for table `dossier`
35--
36
37LOCK TABLES `dossier` WRITE;
38/*!40000 ALTER TABLE `dossier` DISABLE KEYS */;
39INSERT INTO `dossier` VALUES (9,'E001'),(10,'E002'),(11,'E003'),(12,'E004'),(13,'E005'),(14,'E006'),(16,'E007'),(5,'F001'),(6,'F002'),(7,'F003'),(8,'F004');
40/*!40000 ALTER TABLE `dossier` ENABLE KEYS */;
41UNLOCK TABLES;
42
43--
44-- Table structure for table `eleve`
45--
46
47DROP TABLE IF EXISTS `eleve`;
48/*!40101 SET @saved_cs_client = @@character_set_client */;
49/*!40101 SET character_set_client = utf8 */;
50CREATE TABLE `eleve` (
51 `id` int(11) NOT NULL AUTO_INCREMENT,
52 `nom` varchar(45) NOT NULL,
53 `prenom` varchar(45) NOT NULL,
54 `id_dossier` int(10) unsigned NOT NULL,
55 PRIMARY KEY (`id`)
56) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='\n';
57/*!40101 SET character_set_client = @saved_cs_client */;
58
59--
60-- Dumping data for table `eleve`
61--
62
63LOCK TABLES `eleve` WRITE;
64/*!40000 ALTER TABLE `eleve` DISABLE KEYS */;
65INSERT INTO `eleve` VALUES (1,'Machine','Laurie',9),(2,'Boon','Danie',10),(3,'Proviste','Alain',11),(4,'Ulet','Yvon',12),(5,'Ulet','Jacque',13),(6,'Houaletrouaveclalangue','Ginette',14),(7,'Mond','Ray',16);
66/*!40000 ALTER TABLE `eleve` ENABLE KEYS */;
67UNLOCK TABLES;
68
69--
70-- Table structure for table `formateur`
71--
72
73DROP TABLE IF EXISTS `formateur`;
74/*!40101 SET @saved_cs_client = @@character_set_client */;
75/*!40101 SET character_set_client = utf8 */;
76CREATE TABLE `formateur` (
77 `id` int(11) NOT NULL AUTO_INCREMENT,
78 `nom` varchar(45) NOT NULL,
79 `prenom` varchar(45) NOT NULL,
80 `id_dossier` int(11) NOT NULL,
81 `id_langue` int(11) NOT NULL,
82 PRIMARY KEY (`id`)
83) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
84/*!40101 SET character_set_client = @saved_cs_client */;
85
86--
87-- Dumping data for table `formateur`
88--
89
90LOCK TABLES `formateur` WRITE;
91/*!40000 ALTER TABLE `formateur` DISABLE KEYS */;
92INSERT INTO `formateur` VALUES (1,'George','Michael',5,3),(2,'Yvon','Jacque',6,3),(3,'Google','doc',7,3),(4,'Laurie','gamy',8,3);
93/*!40000 ALTER TABLE `formateur` ENABLE KEYS */;
94UNLOCK TABLES;
95
96--
97-- Table structure for table `langue`
98--
99
100DROP TABLE IF EXISTS `langue`;
101/*!40101 SET @saved_cs_client = @@character_set_client */;
102/*!40101 SET character_set_client = utf8 */;
103CREATE TABLE `langue` (
104 `id` int(11) NOT NULL AUTO_INCREMENT,
105 `langue` varchar(45) NOT NULL,
106 PRIMARY KEY (`id`)
107) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
108/*!40101 SET character_set_client = @saved_cs_client */;
109
110--
111-- Dumping data for table `langue`
112--
113
114LOCK TABLES `langue` WRITE;
115/*!40000 ALTER TABLE `langue` DISABLE KEYS */;
116INSERT INTO `langue` VALUES (1,'php'),(2,'java'),(3,'SQL');
117/*!40000 ALTER TABLE `langue` ENABLE KEYS */;
118UNLOCK TABLES;
119
120--
121-- Table structure for table `reservation`
122--
123
124DROP TABLE IF EXISTS `reservation`;
125/*!40101 SET @saved_cs_client = @@character_set_client */;
126/*!40101 SET character_set_client = utf8 */;
127CREATE TABLE `reservation` (
128 `id` int(11) NOT NULL AUTO_INCREMENT,
129 `date` date NOT NULL,
130 `duree` time NOT NULL,
131 `id_dossier` int(11) NOT NULL,
132 `id_salle` int(11) NOT NULL,
133 PRIMARY KEY (`id`),
134 UNIQUE KEY `id_dossier_UNIQUE` (`id_dossier`),
135 KEY `fk_reservation_salle1_idx` (`id_salle`),
136 CONSTRAINT `fk_reservation_dossier1` FOREIGN KEY (`id_dossier`) REFERENCES `dossier` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
137 CONSTRAINT `fk_reservation_salle1` FOREIGN KEY (`id_salle`) REFERENCES `salle` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
138) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
139/*!40101 SET character_set_client = @saved_cs_client */;
140
141--
142-- Dumping data for table `reservation`
143--
144
145LOCK TABLES `reservation` WRITE;
146/*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
147INSERT INTO `reservation` VALUES (2,'1954-05-05','05:30:25',5,1),(3,'1954-05-05','05:30:25',6,1),(4,'1920-06-05','05:30:25',7,1),(5,'1920-06-05','05:30:25',9,5),(6,'1920-07-05','05:30:25',10,5),(7,'1920-08-05','05:30:25',11,3),(8,'1921-08-05','05:30:25',8,6),(9,'1922-08-05','05:30:25',12,6),(10,'1923-08-05','05:30:25',13,6),(11,'1924-08-05','05:30:25',14,6);
148/*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
149UNLOCK TABLES;
150
151--
152-- Table structure for table `salle`
153--
154
155DROP TABLE IF EXISTS `salle`;
156/*!40101 SET @saved_cs_client = @@character_set_client */;
157/*!40101 SET character_set_client = utf8 */;
158CREATE TABLE `salle` (
159 `id` int(11) NOT NULL AUTO_INCREMENT,
160 `nom` varchar(45) NOT NULL,
161 `numero` int(11) NOT NULL,
162 PRIMARY KEY (`id`),
163 UNIQUE KEY `index2` (`numero`),
164 UNIQUE KEY `index3` (`nom`)
165) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
166/*!40101 SET character_set_client = @saved_cs_client */;
167
168--
169-- Dumping data for table `salle`
170--
171
172LOCK TABLES `salle` WRITE;
173/*!40000 ALTER TABLE `salle` DISABLE KEYS */;
174INSERT INTO `salle` VALUES (1,'Salle de dojo',1),(2,'Salle de réunion',2),(3,'Salle de repos',3),(4,'cuisine',4),(5,'Bureau',5),(6,'OpenSpace',6);
175/*!40000 ALTER TABLE `salle` ENABLE KEYS */;
176UNLOCK TABLES;
177/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
178
179/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
180/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
181/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
182/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
183/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
184/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
185/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
186
187-- Dump completed on 2018-03-13 14:40:23