· 8 years ago · Nov 22, 2017, 12:34 AM
1-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64)
2--
3-- Host: localhost Database: sallesWCS
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-- Current Database: `sallesWCS`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `sallesWCS` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `sallesWCS`;
25
26--
27-- Table structure for table `Langage`
28--
29
30DROP TABLE IF EXISTS `Langage`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `Langage` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `nom` varchar(40) DEFAULT NULL,
36 PRIMARY KEY (`id`)
37) ENGINE=InnoDB DEFAULT CHARSET=latin1;
38/*!40101 SET character_set_client = @saved_cs_client */;
39
40--
41-- Dumping data for table `Langage`
42--
43
44LOCK TABLES `Langage` WRITE;
45/*!40000 ALTER TABLE `Langage` DISABLE KEYS */;
46/*!40000 ALTER TABLE `Langage` ENABLE KEYS */;
47UNLOCK TABLES;
48
49--
50-- Table structure for table `Personne`
51--
52
53DROP TABLE IF EXISTS `Personne`;
54/*!40101 SET @saved_cs_client = @@character_set_client */;
55/*!40101 SET character_set_client = utf8 */;
56CREATE TABLE `Personne` (
57 `id` int(11) NOT NULL AUTO_INCREMENT,
58 `nom` varchar(40) DEFAULT NULL,
59 `prenom` varchar(40) DEFAULT NULL,
60 `fk_id_role` int(11) DEFAULT NULL,
61 PRIMARY KEY (`id`),
62 KEY `Personne_Role` (`fk_id_role`),
63 CONSTRAINT `Personne_Role` FOREIGN KEY (`fk_id_role`) REFERENCES `Role` (`id`)
64) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
65/*!40101 SET character_set_client = @saved_cs_client */;
66
67--
68-- Dumping data for table `Personne`
69--
70
71LOCK TABLES `Personne` WRITE;
72/*!40000 ALTER TABLE `Personne` DISABLE KEYS */;
73INSERT INTO `Personne` VALUES (1,'Google','Mon ami',NULL),(2,'Laurie','Mon amie',NULL),(3,'Juliette','Sohoo',NULL),(4,'Rebecca','Armand',NULL),(5,'Aimée','Hebert',NULL),(6,'Sidney','Gletzere',NULL),(7,'Geraldine','Zopire',NULL),(8,'Estelle','Konan',NULL),(9,'Chrystel','Desmarest',NULL),(10,'Raphael','Adda',NULL);
74/*!40000 ALTER TABLE `Personne` ENABLE KEYS */;
75UNLOCK TABLES;
76
77--
78-- Table structure for table `Personne_Langage`
79--
80
81DROP TABLE IF EXISTS `Personne_Langage`;
82/*!40101 SET @saved_cs_client = @@character_set_client */;
83/*!40101 SET character_set_client = utf8 */;
84CREATE TABLE `Personne_Langage` (
85 `fk_id_Personne` int(10) DEFAULT NULL,
86 `fk_id_Langage` int(10) DEFAULT NULL,
87 KEY `Personne_Personne_Langage` (`fk_id_Personne`),
88 KEY `Personne_Langage_Langage` (`fk_id_Langage`),
89 CONSTRAINT `Personne_Langage_Langage` FOREIGN KEY (`fk_id_Langage`) REFERENCES `Langage` (`id`),
90 CONSTRAINT `Personne_Personne_Langage` FOREIGN KEY (`fk_id_Personne`) REFERENCES `Personne` (`id`)
91) ENGINE=InnoDB DEFAULT CHARSET=latin1;
92/*!40101 SET character_set_client = @saved_cs_client */;
93
94--
95-- Dumping data for table `Personne_Langage`
96--
97
98LOCK TABLES `Personne_Langage` WRITE;
99/*!40000 ALTER TABLE `Personne_Langage` DISABLE KEYS */;
100/*!40000 ALTER TABLE `Personne_Langage` ENABLE KEYS */;
101UNLOCK TABLES;
102
103--
104-- Table structure for table `Reservation`
105--
106
107DROP TABLE IF EXISTS `Reservation`;
108/*!40101 SET @saved_cs_client = @@character_set_client */;
109/*!40101 SET character_set_client = utf8 */;
110CREATE TABLE `Reservation` (
111 `id` int(11) NOT NULL AUTO_INCREMENT,
112 `date` date DEFAULT NULL,
113 `fk_id_salle` int(10) DEFAULT NULL,
114 `fk_id_Personne` int(10) DEFAULT NULL,
115 PRIMARY KEY (`id`),
116 KEY `Personne_Reservation` (`fk_id_Personne`),
117 KEY `Reservation_Room` (`fk_id_salle`),
118 CONSTRAINT `Personne_Reservation` FOREIGN KEY (`fk_id_Personne`) REFERENCES `Personne` (`id`),
119 CONSTRAINT `Reservation_Room` FOREIGN KEY (`fk_id_salle`) REFERENCES `Room` (`id`)
120) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;
121/*!40101 SET character_set_client = @saved_cs_client */;
122
123--
124-- Dumping data for table `Reservation`
125--
126
127LOCK TABLES `Reservation` WRITE;
128/*!40000 ALTER TABLE `Reservation` DISABLE KEYS */;
129INSERT INTO `Reservation` VALUES (1,'2017-12-01',1,1),(2,'2017-12-02',1,2),(3,'2017-12-03',1,3),(4,'2017-12-04',5,4),(5,'2017-12-05',5,5),(6,'2017-12-06',3,6),(7,'2017-12-07',6,7),(8,'2017-12-08',6,8),(9,'2017-12-09',6,9),(10,'2017-12-10',6,10);
130/*!40000 ALTER TABLE `Reservation` ENABLE KEYS */;
131UNLOCK TABLES;
132
133--
134-- Table structure for table `Role`
135--
136
137DROP TABLE IF EXISTS `Role`;
138/*!40101 SET @saved_cs_client = @@character_set_client */;
139/*!40101 SET character_set_client = utf8 */;
140CREATE TABLE `Role` (
141 `id` int(11) NOT NULL AUTO_INCREMENT,
142 `nom` varchar(30) DEFAULT NULL,
143 PRIMARY KEY (`id`)
144) ENGINE=InnoDB DEFAULT CHARSET=latin1;
145/*!40101 SET character_set_client = @saved_cs_client */;
146
147--
148-- Dumping data for table `Role`
149--
150
151LOCK TABLES `Role` WRITE;
152/*!40000 ALTER TABLE `Role` DISABLE KEYS */;
153/*!40000 ALTER TABLE `Role` ENABLE KEYS */;
154UNLOCK TABLES;
155
156--
157-- Table structure for table `Room`
158--
159
160DROP TABLE IF EXISTS `Room`;
161/*!40101 SET @saved_cs_client = @@character_set_client */;
162/*!40101 SET character_set_client = utf8 */;
163CREATE TABLE `Room` (
164 `id` int(11) NOT NULL AUTO_INCREMENT,
165 `nom` varchar(40) DEFAULT NULL,
166 PRIMARY KEY (`id`)
167) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
168/*!40101 SET character_set_client = @saved_cs_client */;
169
170--
171-- Dumping data for table `Room`
172--
173
174LOCK TABLES `Room` WRITE;
175/*!40000 ALTER TABLE `Room` DISABLE KEYS */;
176INSERT INTO `Room` VALUES (1,'Salle de Dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'Openspace');
177/*!40000 ALTER TABLE `Room` ENABLE KEYS */;
178UNLOCK TABLES;
179/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
180
181/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
182/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
183/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
184/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
185/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
186/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
187/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
188
189-- Dump completed on 2017-11-20 15:23:29