· 8 years ago · Aug 27, 2018, 10:36 PM
1-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64)
2--
3-- Host: localhost Database: marina_wcs_rooms
4-- ------------------------------------------------------
5-- Server version 5.7.23-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: `marina_wcs_rooms`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `marina_wcs_rooms` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `marina_wcs_rooms`;
25
26--
27-- Table structure for table `eleves`
28--
29
30DROP TABLE IF EXISTS `eleves`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `eleves` (
34 `num_dossier` int(11) NOT NULL AUTO_INCREMENT,
35 `nom` varchar(30) DEFAULT NULL,
36 `prenom` varchar(30) DEFAULT NULL,
37 `adresse` varchar(200) DEFAULT NULL,
38 PRIMARY KEY (`num_dossier`)
39) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
40/*!40101 SET character_set_client = @saved_cs_client */;
41
42--
43-- Dumping data for table `eleves`
44--
45
46LOCK TABLES `eleves` WRITE;
47/*!40000 ALTER TABLE `eleves` DISABLE KEYS */;
48INSERT INTO `eleves` VALUES (1,'Arya','Stark','Winterfell'),(2,'Sansa','Stark','Winterfell'),(3,'Bran','Stark','Winterfell'),(4,'Robb','Stark','Winterfell'),(5,'Theon','Greyjoy','Iron Islands'),(6,'Yara','Greyjoy','Iron Islands');
49/*!40000 ALTER TABLE `eleves` ENABLE KEYS */;
50UNLOCK TABLES;
51
52--
53-- Table structure for table `formateurs`
54--
55
56DROP TABLE IF EXISTS `formateurs`;
57/*!40101 SET @saved_cs_client = @@character_set_client */;
58/*!40101 SET character_set_client = utf8 */;
59CREATE TABLE `formateurs` (
60 `num_dossier` int(11) NOT NULL AUTO_INCREMENT,
61 `nom` varchar(30) DEFAULT NULL,
62 `prenom` varchar(30) DEFAULT NULL,
63 `langage` varchar(30) DEFAULT NULL,
64 PRIMARY KEY (`num_dossier`)
65) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
66/*!40101 SET character_set_client = @saved_cs_client */;
67
68--
69-- Dumping data for table `formateurs`
70--
71
72LOCK TABLES `formateurs` WRITE;
73/*!40000 ALTER TABLE `formateurs` DISABLE KEYS */;
74INSERT INTO `formateurs` VALUES (1,'Tyrion','Lannister','C++'),(2,'Cersei','Lannister','PHP'),(3,'Jaime','Lannister','JavaScript'),(4,'Tywin','Lannister','Java');
75/*!40000 ALTER TABLE `formateurs` ENABLE KEYS */;
76UNLOCK TABLES;
77
78--
79-- Table structure for table `reservations_eleves`
80--
81
82DROP TABLE IF EXISTS `reservations_eleves`;
83/*!40101 SET @saved_cs_client = @@character_set_client */;
84/*!40101 SET character_set_client = utf8 */;
85CREATE TABLE `reservations_eleves` (
86 `id` int(11) NOT NULL AUTO_INCREMENT,
87 `FK_num_salle` int(11) NOT NULL,
88 `FK_num_dossier` int(11) NOT NULL,
89 `date_debut` datetime DEFAULT NULL,
90 `date_fin` datetime DEFAULT NULL,
91 PRIMARY KEY (`id`),
92 KEY `FK_num_salle` (`FK_num_salle`),
93 KEY `FK_num_dossier` (`FK_num_dossier`),
94 CONSTRAINT `reservations_eleves_ibfk_1` FOREIGN KEY (`FK_num_salle`) REFERENCES `salles` (`num_salle`),
95 CONSTRAINT `reservations_eleves_ibfk_2` FOREIGN KEY (`FK_num_dossier`) REFERENCES `eleves` (`num_dossier`)
96) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
97/*!40101 SET character_set_client = @saved_cs_client */;
98
99--
100-- Dumping data for table `reservations_eleves`
101--
102
103LOCK TABLES `reservations_eleves` WRITE;
104/*!40000 ALTER TABLE `reservations_eleves` DISABLE KEYS */;
105INSERT INTO `reservations_eleves` VALUES (1,1,5,'2018-08-27 12:00:00','2018-08-27 13:00:00'),(2,1,2,'2018-08-27 12:00:00','2018-08-27 13:00:00'),(3,1,4,'2018-08-27 12:00:00','2018-08-27 13:00:00'),(5,6,1,'2018-08-27 09:00:00','2018-08-27 10:50:00'),(6,6,3,'2018-08-27 09:00:00','2018-08-27 10:50:00'),(7,6,6,'2018-08-27 09:00:00','2018-08-27 10:50:00');
106/*!40000 ALTER TABLE `reservations_eleves` ENABLE KEYS */;
107UNLOCK TABLES;
108
109--
110-- Table structure for table `reservations_formateurs`
111--
112
113DROP TABLE IF EXISTS `reservations_formateurs`;
114/*!40101 SET @saved_cs_client = @@character_set_client */;
115/*!40101 SET character_set_client = utf8 */;
116CREATE TABLE `reservations_formateurs` (
117 `id` int(11) NOT NULL AUTO_INCREMENT,
118 `FK_num_salle` int(11) NOT NULL,
119 `FK_num_dossier` int(11) NOT NULL,
120 `date_debut` datetime DEFAULT NULL,
121 `date_fin` datetime DEFAULT NULL,
122 PRIMARY KEY (`id`),
123 KEY `FK_num_salle` (`FK_num_salle`),
124 KEY `FK_num_dossier` (`FK_num_dossier`),
125 CONSTRAINT `reservations_formateurs_ibfk_1` FOREIGN KEY (`FK_num_salle`) REFERENCES `salles` (`num_salle`),
126 CONSTRAINT `reservations_formateurs_ibfk_2` FOREIGN KEY (`FK_num_dossier`) REFERENCES `formateurs` (`num_dossier`)
127) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
128/*!40101 SET character_set_client = @saved_cs_client */;
129
130--
131-- Dumping data for table `reservations_formateurs`
132--
133
134LOCK TABLES `reservations_formateurs` WRITE;
135/*!40000 ALTER TABLE `reservations_formateurs` DISABLE KEYS */;
136INSERT INTO `reservations_formateurs` VALUES (1,5,1,'2018-08-27 09:00:00','2018-08-27 18:00:00'),(2,5,3,'2018-08-27 09:00:00','2018-08-27 18:00:00'),(3,3,4,'2018-08-27 10:00:00','2018-08-27 10:30:00'),(4,6,2,'2018-08-27 10:00:00','2018-08-27 10:30:00');
137/*!40000 ALTER TABLE `reservations_formateurs` ENABLE KEYS */;
138UNLOCK TABLES;
139
140--
141-- Table structure for table `salles`
142--
143
144DROP TABLE IF EXISTS `salles`;
145/*!40101 SET @saved_cs_client = @@character_set_client */;
146/*!40101 SET character_set_client = utf8 */;
147CREATE TABLE `salles` (
148 `num_salle` int(11) NOT NULL AUTO_INCREMENT,
149 `nom` varchar(50) DEFAULT NULL,
150 PRIMARY KEY (`num_salle`)
151) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
152/*!40101 SET character_set_client = @saved_cs_client */;
153
154--
155-- Dumping data for table `salles`
156--
157
158LOCK TABLES `salles` WRITE;
159/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
160INSERT INTO `salles` VALUES (1,'Salle de dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
161/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
162UNLOCK TABLES;
163/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
164
165/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
166/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
167/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
168/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
169/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
170/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
171/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
172
173-- Dump completed on 2018-08-27 22:24:27