· 8 years ago · Nov 21, 2017, 08:14 PM
1-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64)
2--
3-- Host: localhost Database: db_name
4-- ------------------------------------------------------
5-- Server version 5.7.20-0ubuntu0.16.04.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 `langage`
20--
21
22DROP TABLE IF EXISTS `langage`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `langage` (
26 `id` int(11) NOT NULL AUTO_INCREMENT,
27 `nom` varchar(100) DEFAULT NULL,
28 PRIMARY KEY (`id`)
29) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
30/*!40101 SET character_set_client = @saved_cs_client */;
31
32--
33-- Dumping data for table `langage`
34--
35
36LOCK TABLES `langage` WRITE;
37/*!40000 ALTER TABLE `langage` DISABLE KEYS */;
38INSERT INTO `langage` VALUES (1,'Php'),(2,'Java'),(3,'Python'),(4,'React');
39/*!40000 ALTER TABLE `langage` ENABLE KEYS */;
40UNLOCK TABLES;
41
42--
43-- Table structure for table `personne`
44--
45
46DROP TABLE IF EXISTS `personne`;
47/*!40101 SET @saved_cs_client = @@character_set_client */;
48/*!40101 SET character_set_client = utf8 */;
49CREATE TABLE `personne` (
50 `id` int(11) NOT NULL AUTO_INCREMENT,
51 `nom` varchar(100) DEFAULT NULL,
52 `prénom` varchar(100) DEFAULT NULL,
53 `id_role` int(11) DEFAULT NULL,
54 PRIMARY KEY (`id`),
55 KEY `id_role` (`id_role`),
56 CONSTRAINT `personne_ibfk_1` FOREIGN KEY (`id_role`) REFERENCES `role` (`id`)
57) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
58/*!40101 SET character_set_client = @saved_cs_client */;
59
60--
61-- Dumping data for table `personne`
62--
63
64LOCK TABLES `personne` WRITE;
65/*!40000 ALTER TABLE `personne` DISABLE KEYS */;
66INSERT INTO `personne` VALUES (1,'Sabrina',NULL,NULL),(2,'Julien',NULL,NULL),(3,'Aisha',NULL,NULL),(4,'Alex',NULL,NULL),(5,'Mona',NULL,NULL),(6,'Google',NULL,NULL),(7,'Laurie',NULL,NULL),(8,'Filipe',NULL,NULL),(9,'Sandra',NULL,NULL),(10,'Catherine',NULL,NULL);
67/*!40000 ALTER TABLE `personne` ENABLE KEYS */;
68UNLOCK TABLES;
69
70--
71-- Table structure for table `personne_langage`
72--
73
74DROP TABLE IF EXISTS `personne_langage`;
75/*!40101 SET @saved_cs_client = @@character_set_client */;
76/*!40101 SET character_set_client = utf8 */;
77CREATE TABLE `personne_langage` (
78 `id_personne` int(11) DEFAULT NULL,
79 `id_langage` int(11) DEFAULT NULL,
80 KEY `id_personne` (`id_personne`),
81 KEY `id_langage` (`id_langage`),
82 CONSTRAINT `personne_langage_ibfk_1` FOREIGN KEY (`id_personne`) REFERENCES `personne` (`id`),
83 CONSTRAINT `personne_langage_ibfk_2` FOREIGN KEY (`id_langage`) REFERENCES `langage` (`id`)
84) ENGINE=InnoDB DEFAULT CHARSET=latin1;
85/*!40101 SET character_set_client = @saved_cs_client */;
86
87--
88-- Dumping data for table `personne_langage`
89--
90
91LOCK TABLES `personne_langage` WRITE;
92/*!40000 ALTER TABLE `personne_langage` DISABLE KEYS */;
93INSERT INTO `personne_langage` VALUES (1,NULL),(2,2),(8,3);
94/*!40000 ALTER TABLE `personne_langage` ENABLE KEYS */;
95UNLOCK TABLES;
96
97--
98-- Table structure for table `reservation`
99--
100
101DROP TABLE IF EXISTS `reservation`;
102/*!40101 SET @saved_cs_client = @@character_set_client */;
103/*!40101 SET character_set_client = utf8 */;
104CREATE TABLE `reservation` (
105 `id` int(11) NOT NULL AUTO_INCREMENT,
106 `date` datetime DEFAULT NULL,
107 `id_salle` int(11) DEFAULT NULL,
108 `id_personne` int(11) DEFAULT NULL,
109 PRIMARY KEY (`id`),
110 KEY `id_salle` (`id_salle`),
111 KEY `id_personne` (`id_personne`),
112 CONSTRAINT `reservation_ibfk_1` FOREIGN KEY (`id_salle`) REFERENCES `salle` (`id`),
113 CONSTRAINT `reservation_ibfk_2` FOREIGN KEY (`id_personne`) REFERENCES `personne` (`id`)
114) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
115/*!40101 SET character_set_client = @saved_cs_client */;
116
117--
118-- Dumping data for table `reservation`
119--
120
121LOCK TABLES `reservation` WRITE;
122/*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
123INSERT INTO `reservation` VALUES (1,'2017-11-19 15:00:00',1,1),(2,'2017-11-19 09:00:00',1,2),(3,'2017-11-20 09:00:00',1,3),(4,'2017-11-20 15:00:00',3,4),(5,'2017-11-21 15:00:00',5,5),(6,'2017-11-21 09:00:00',5,6),(7,'2017-11-22 09:00:00',6,7),(8,'2017-11-22 15:00:00',6,8),(9,'2017-11-23 15:00:00',6,9),(10,'2017-11-24 15:00:00',6,10);
124/*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
125UNLOCK TABLES;
126
127--
128-- Table structure for table `role`
129--
130
131DROP TABLE IF EXISTS `role`;
132/*!40101 SET @saved_cs_client = @@character_set_client */;
133/*!40101 SET character_set_client = utf8 */;
134CREATE TABLE `role` (
135 `id` int(11) NOT NULL AUTO_INCREMENT,
136 `nom` varchar(100) DEFAULT NULL,
137 PRIMARY KEY (`id`)
138) ENGINE=InnoDB DEFAULT CHARSET=latin1;
139/*!40101 SET character_set_client = @saved_cs_client */;
140
141--
142-- Dumping data for table `role`
143--
144
145LOCK TABLES `role` WRITE;
146/*!40000 ALTER TABLE `role` DISABLE KEYS */;
147/*!40000 ALTER TABLE `role` ENABLE KEYS */;
148UNLOCK TABLES;
149
150--
151-- Table structure for table `salle`
152--
153
154DROP TABLE IF EXISTS `salle`;
155/*!40101 SET @saved_cs_client = @@character_set_client */;
156/*!40101 SET character_set_client = utf8 */;
157CREATE TABLE `salle` (
158 `id` int(11) NOT NULL AUTO_INCREMENT,
159 `nom` varchar(100) DEFAULT NULL,
160 PRIMARY KEY (`id`)
161) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
162/*!40101 SET character_set_client = @saved_cs_client */;
163
164--
165-- Dumping data for table `salle`
166--
167
168LOCK TABLES `salle` WRITE;
169/*!40000 ALTER TABLE `salle` DISABLE KEYS */;
170INSERT INTO `salle` VALUES (1,'salle de dojo'),(2,'salle de réunion'),(3,'salle de repos'),(4,'cuisine'),(5,'bureau'),(6,'openSpace');
171/*!40000 ALTER TABLE `salle` ENABLE KEYS */;
172UNLOCK TABLES;
173/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
174
175/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
176/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
177/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
178/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
179/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
180/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
181/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
182
183-- Dump completed on 2017-11-20 11:25:24