· 8 years ago · Apr 05, 2018, 07:40 PM
1-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
2--
3-- Host: localhost Database: georges_wcs_tls
4-- ------------------------------------------------------
5-- Server version 5.7.21-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 `Wilder`
20--
21
22DROP TABLE IF EXISTS `Wilder`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `Wilder` (
26 `ID` int(11) NOT NULL AUTO_INCREMENT,
27 `nom` varchar(25) DEFAULT NULL,
28 `prenom` varchar(25) DEFAULT NULL,
29 `adresse` varchar(25) DEFAULT NULL,
30 `langage` varchar(25) DEFAULT NULL,
31 PRIMARY KEY (`ID`)
32) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
33/*!40101 SET character_set_client = @saved_cs_client */;
34
35--
36-- Dumping data for table `Wilder`
37--
38
39LOCK TABLES `Wilder` WRITE;
40/*!40000 ALTER TABLE `Wilder` DISABLE KEYS */;
41INSERT INTO `Wilder` VALUES (1,'Google','Chrome','Toulouse',NULL),(2,'Laurie','Comment','Paris',NULL),(3,'Sarr','Georges','Toulouse',NULL),(4,'Morrand','Perrine','Toulouse',NULL),(5,'Petit','Mathieu','Toulouse',NULL),(6,'Krettly','Bastien',NULL,'Java'),(7,'Hubert','Benoit',NULL,'JS'),(8,'Leutchmann','Pablo','Toulouse',''),(9,'Benaissa','Hédi','St-Simon',''),(10,'Hoareau','Nicolas','Toulouse','');
42/*!40000 ALTER TABLE `Wilder` ENABLE KEYS */;
43UNLOCK TABLES;
44
45--
46-- Table structure for table `reservation`
47--
48
49DROP TABLE IF EXISTS `reservation`;
50/*!40101 SET @saved_cs_client = @@character_set_client */;
51/*!40101 SET character_set_client = utf8 */;
52CREATE TABLE `reservation` (
53 `dates` date NOT NULL,
54 `heures` time DEFAULT NULL,
55 `ID` int(11) NOT NULL,
56 `ID_salles` int(11) NOT NULL,
57 PRIMARY KEY (`ID`,`ID_salles`),
58 KEY `FK_reservation_ID_salles` (`ID_salles`),
59 CONSTRAINT `FK_reservation_ID` FOREIGN KEY (`ID`) REFERENCES `Wilder` (`ID`),
60 CONSTRAINT `FK_reservation_ID_salles` FOREIGN KEY (`ID_salles`) REFERENCES `salles` (`ID_salles`)
61) ENGINE=InnoDB DEFAULT CHARSET=latin1;
62/*!40101 SET character_set_client = @saved_cs_client */;
63
64--
65-- Dumping data for table `reservation`
66--
67
68LOCK TABLES `reservation` WRITE;
69/*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
70INSERT INTO `reservation` VALUES ('1991-01-01','00:00:12',1,1),('2018-01-01','01:10:12',2,1),('2018-02-01','01:10:12',3,1),('2018-01-01','01:10:12',4,5),('2018-01-01','01:10:12',5,5),('2018-01-01','01:10:12',6,6),('2018-01-01','01:10:12',7,3),('2018-01-01','01:10:12',8,6),('2018-01-01','01:10:12',9,6),('2018-01-01','01:10:12',10,6);
71/*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
72UNLOCK TABLES;
73
74--
75-- Table structure for table `salles`
76--
77
78DROP TABLE IF EXISTS `salles`;
79/*!40101 SET @saved_cs_client = @@character_set_client */;
80/*!40101 SET character_set_client = utf8 */;
81CREATE TABLE `salles` (
82 `ID_salles` int(11) NOT NULL AUTO_INCREMENT,
83 `nom_salles` varchar(25) DEFAULT NULL,
84 PRIMARY KEY (`ID_salles`)
85) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
86/*!40101 SET character_set_client = @saved_cs_client */;
87
88--
89-- Dumping data for table `salles`
90--
91
92LOCK TABLES `salles` WRITE;
93/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
94INSERT INTO `salles` VALUES (1,'Salle de Dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
95/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
96UNLOCK TABLES;
97/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
98
99/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
100/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
101/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
102/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
103/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
104/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
105/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
106
107-- Dump completed on 2018-03-28 11:31:30