· 8 years ago · Aug 27, 2018, 07:48 PM
1-- MySQL dump 10.13 Distrib 8.0.12, for macos10.13 (x86_64)
2--
3-- Host: localhost Database: cedric_f_wcs_bdx
4-- ------------------------------------------------------
5-- Server version 8.0.12
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 SET NAMES utf8mb4 ;
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: `cedric_f_wcs_bdx`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `cedric_f_wcs_bdx` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */;
23
24USE `cedric_f_wcs_bdx`;
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 SET character_set_client = utf8mb4 ;
33CREATE TABLE `eleves` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `nom` varchar(50) DEFAULT NULL,
36 `prenom` varchar(50) DEFAULT NULL,
37 `age` int(11) DEFAULT NULL,
38 `Lieu_residence` varchar(50) DEFAULT NULL,
39 PRIMARY KEY (`id`)
40) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
41/*!40101 SET character_set_client = @saved_cs_client */;
42
43--
44-- Dumping data for table `eleves`
45--
46
47LOCK TABLES `eleves` WRITE;
48/*!40000 ALTER TABLE `eleves` DISABLE KEYS */;
49INSERT INTO `eleves` VALUES (1,'Bond','James',56,'London'),(2,'Stoff','Eric',34,'Bordeaux'),(3,'Auchon','Paul',28,'Bayonne'),(4,'Mac','Adam',36,'Bordeaux'),(5,'Daniels','Jack',45,'Toulouse'),(6,'Google','Barnabé',20,'LA'),(7,'Machine','Lorie',38,'Paris'),(8,'Premier','Francois',85,'Rome'),(9,'George','Guy',65,'Lille'),(10,'Duck','Guy',65,'Lille');
50/*!40000 ALTER TABLE `eleves` ENABLE KEYS */;
51UNLOCK TABLES;
52
53--
54-- Table structure for table `reservation`
55--
56
57DROP TABLE IF EXISTS `reservation`;
58/*!40101 SET @saved_cs_client = @@character_set_client */;
59 SET character_set_client = utf8mb4 ;
60CREATE TABLE `reservation` (
61 `reservation_id` int(11) NOT NULL AUTO_INCREMENT,
62 `salle_id` int(11) DEFAULT NULL,
63 `eleve_id` int(11) DEFAULT NULL,
64 `date` date DEFAULT NULL,
65 `duree` int(11) DEFAULT NULL,
66 PRIMARY KEY (`reservation_id`)
67) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
68/*!40101 SET character_set_client = @saved_cs_client */;
69
70--
71-- Dumping data for table `reservation`
72--
73
74LOCK TABLES `reservation` WRITE;
75/*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
76INSERT INTO `reservation` VALUES (1,1,1,'2018-09-03',40),(2,1,2,'2018-09-04',30),(3,1,3,'2018-09-04',60),(4,5,4,'2018-09-05',20),(5,5,5,'2018-09-06',70),(6,3,6,'2018-09-07',45),(7,6,7,'2018-09-03',45),(8,6,8,'2018-09-04',60),(9,6,9,'2018-09-05',50),(10,6,10,'2018-09-06',30);
77/*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
78UNLOCK TABLES;
79
80--
81-- Table structure for table `salles`
82--
83
84DROP TABLE IF EXISTS `salles`;
85/*!40101 SET @saved_cs_client = @@character_set_client */;
86 SET character_set_client = utf8mb4 ;
87CREATE TABLE `salles` (
88 `salle_id` int(11) NOT NULL AUTO_INCREMENT,
89 `salle_nom` varchar(100) DEFAULT NULL,
90 PRIMARY KEY (`salle_id`)
91) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
92/*!40101 SET character_set_client = @saved_cs_client */;
93
94--
95-- Dumping data for table `salles`
96--
97
98LOCK TABLES `salles` WRITE;
99/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
100INSERT INTO `salles` VALUES (1,'Salle de Dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
101/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
102UNLOCK TABLES;
103/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
104
105/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
106/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
107/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
108/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
109/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
110/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
111/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
112
113-- Dump completed on 2018-08-27 20:14:43