· 8 years ago · Mar 27, 2018, 12:42 AM
1-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
2--
3-- Host: localhost Database: MLD_quete
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-- Current Database: `MLD_quete`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `MLD_quete` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `MLD_quete`;
25
26--
27-- Table structure for table `membre_ecole`
28--
29
30DROP TABLE IF EXISTS `membre_ecole`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `membre_ecole` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `nom` varchar(100) DEFAULT NULL,
36 `prenom` varchar(100) DEFAULT NULL,
37 `adresse` varchar(100) DEFAULT NULL,
38 `langage` varchar(100) DEFAULT NULL,
39 `statut` varchar(100) DEFAULT NULL,
40 PRIMARY KEY (`id`)
41) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
42/*!40101 SET character_set_client = @saved_cs_client */;
43
44--
45-- Dumping data for table `membre_ecole`
46--
47
48LOCK TABLES `membre_ecole` WRITE;
49/*!40000 ALTER TABLE `membre_ecole` DISABLE KEYS */;
50INSERT INTO `membre_ecole` VALUES (1,'Rasamimanana','Hery','Strasbourg',NULL,'etudiant'),(2,'Huet','Luc',NULL,'PHP','formateur'),(3,'Pester','Lorie','Paris',NULL,'etudiant'),(4,'Google','Accueil',NULL,'JS','formateur'),(5,'Jones','Indiana',NULL,'RUBY','formateur'),(6,'Stark','Tony','New-York',NULL,'etudiant'),(7,'Kent','Clark','Smallville',NULL,'etudiant'),(8,'Kong','King','Skull Island',NULL,'etudiant'),(9,'Women','Wonder','London',NULL,'etudiant'),(10,'Croft','Lara','Londres',NULL,'etudiant');
51/*!40000 ALTER TABLE `membre_ecole` ENABLE KEYS */;
52UNLOCK TABLES;
53
54--
55-- Table structure for table `reservation_creneau`
56--
57
58DROP TABLE IF EXISTS `reservation_creneau`;
59/*!40101 SET @saved_cs_client = @@character_set_client */;
60/*!40101 SET character_set_client = utf8 */;
61CREATE TABLE `reservation_creneau` (
62 `id` int(11) NOT NULL AUTO_INCREMENT,
63 `date_heure` datetime DEFAULT NULL,
64 `duree` time DEFAULT NULL,
65 `membre_ecole_id` int(11) DEFAULT NULL,
66 `salle_id` int(11) DEFAULT NULL,
67 PRIMARY KEY (`id`),
68 KEY `fk_membre_ecole_id` (`membre_ecole_id`),
69 KEY `fk_salle_id` (`salle_id`),
70 CONSTRAINT `fk_membre_ecole_id` FOREIGN KEY (`membre_ecole_id`) REFERENCES `membre_ecole` (`id`),
71 CONSTRAINT `fk_salle_id` FOREIGN KEY (`salle_id`) REFERENCES `salle` (`id`)
72) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
73/*!40101 SET character_set_client = @saved_cs_client */;
74
75--
76-- Dumping data for table `reservation_creneau`
77--
78
79LOCK TABLES `reservation_creneau` WRITE;
80/*!40000 ALTER TABLE `reservation_creneau` DISABLE KEYS */;
81INSERT INTO `reservation_creneau` VALUES (1,'2018-03-20 08:00:00','01:00:00',5,1),(2,'2018-03-20 09:00:00','02:00:00',1,1),(3,'2018-03-20 14:00:00','02:00:00',8,1),(4,'2018-03-20 08:00:00','03:00:00',10,5),(5,'2018-03-20 14:00:00','02:00:00',7,5),(6,'2018-03-20 08:00:00','04:00:00',9,3),(7,'2018-03-20 08:00:00','01:00:00',2,6),(8,'2018-03-20 09:00:00','01:00:00',3,6),(9,'2018-03-20 10:00:00','01:00:00',4,6),(10,'2018-03-20 11:00:00','01:00:00',6,6);
82/*!40000 ALTER TABLE `reservation_creneau` ENABLE KEYS */;
83UNLOCK TABLES;
84
85--
86-- Table structure for table `salle`
87--
88
89DROP TABLE IF EXISTS `salle`;
90/*!40101 SET @saved_cs_client = @@character_set_client */;
91/*!40101 SET character_set_client = utf8 */;
92CREATE TABLE `salle` (
93 `id` int(11) NOT NULL AUTO_INCREMENT,
94 `nom_salle` varchar(100) DEFAULT NULL,
95 PRIMARY KEY (`id`)
96) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
97/*!40101 SET character_set_client = @saved_cs_client */;
98
99--
100-- Dumping data for table `salle`
101--
102
103LOCK TABLES `salle` WRITE;
104/*!40000 ALTER TABLE `salle` DISABLE KEYS */;
105INSERT INTO `salle` VALUES (1,'Salle de dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
106/*!40000 ALTER TABLE `salle` ENABLE KEYS */;
107UNLOCK TABLES;
108/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
109
110/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
111/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
112/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
113/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
114/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
115/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
116/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
117
118-- Dump completed on 2018-03-18 15:31:50