· 8 years ago · Apr 17, 2018, 09:26 AM
1-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
2--
3-- Host: localhost Database: EXERCISE
4-- ------------------------------------------------------
5-- Server version 5.7.21-0ubuntu0.17.10.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: `EXERCISE`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `EXERCISE` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `EXERCISE`;
25
26--
27-- Table structure for table `Reservation`
28--
29
30DROP TABLE IF EXISTS `Reservation`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `Reservation` (
34 `id_Reservation` int(11) NOT NULL AUTO_INCREMENT,
35 `id_eleve` int(11) NOT NULL,
36 `id_salle` int(11) NOT NULL,
37 `date` date DEFAULT NULL,
38 `durée` varchar(100) DEFAULT NULL,
39 `personne` varchar(50) DEFAULT NULL,
40 PRIMARY KEY (`id_Reservation`),
41 KEY `id_eleve` (`id_eleve`),
42 KEY `id_salle` (`id_salle`),
43 CONSTRAINT `Reservation_ibfk_1` FOREIGN KEY (`id_eleve`) REFERENCES `eleves` (`id_eleve`),
44 CONSTRAINT `Reservation_ibfk_2` FOREIGN KEY (`id_salle`) REFERENCES `salle` (`id_salle`)
45) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
46/*!40101 SET character_set_client = @saved_cs_client */;
47
48--
49-- Dumping data for table `Reservation`
50--
51
52LOCK TABLES `Reservation` WRITE;
53/*!40000 ALTER TABLE `Reservation` DISABLE KEYS */;
54INSERT INTO `Reservation` VALUES (1,1,1,'2018-04-08','2 hours','roger'),(2,2,1,'2018-04-08','2 hours','roger'),(3,3,1,'2018-04-08','2 hours','roger'),(4,4,3,'2018-04-08','2 hours','roger'),(5,5,5,'2018-04-08','2 hours','roger'),(6,6,5,'2018-04-08','2 hours','roger'),(7,7,6,'2018-04-08','2 hours','roger'),(8,8,6,'2018-04-08','2 hours','roger'),(9,9,6,'2018-04-08','2 hours','roger'),(10,10,6,'2018-04-08','2 hours','roger');
55/*!40000 ALTER TABLE `Reservation` ENABLE KEYS */;
56UNLOCK TABLES;
57
58--
59-- Table structure for table `eleves`
60--
61
62DROP TABLE IF EXISTS `eleves`;
63/*!40101 SET @saved_cs_client = @@character_set_client */;
64/*!40101 SET character_set_client = utf8 */;
65CREATE TABLE `eleves` (
66 `id_eleve` int(11) NOT NULL AUTO_INCREMENT,
67 `prenom` varchar(50) DEFAULT NULL,
68 `nom` varchar(100) DEFAULT NULL,
69 `age` varchar(3) DEFAULT NULL,
70 `lieu_de_residence` text,
71 PRIMARY KEY (`id_eleve`)
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 `eleves`
77--
78
79LOCK TABLES `eleves` WRITE;
80/*!40000 ALTER TABLE `eleves` DISABLE KEYS */;
81INSERT INTO `eleves` VALUES (1,'Delbe','Nicolas','22','Lille'),(2,'Copin','Thomas','28','Lille'),(3,'Poirier','Lucas','20','Lille'),(4,'Bruge','Louis','211','Lille'),(5,'google','google','12','Californie'),(6,'Bernard','Alexandre','38','Lille'),(7,'Lorie','Lorie','00','Lille'),(8,'petit','Sébastient','22','Lille'),(9,'Dujardin','Jean','40','USA'),(10,'Delaine','Maxence','28','Lille');
82/*!40000 ALTER TABLE `eleves` ENABLE KEYS */;
83UNLOCK TABLES;
84
85--
86-- Table structure for table `formateur`
87--
88
89DROP TABLE IF EXISTS `formateur`;
90/*!40101 SET @saved_cs_client = @@character_set_client */;
91/*!40101 SET character_set_client = utf8 */;
92CREATE TABLE `formateur` (
93 `id_formateur` int(11) NOT NULL AUTO_INCREMENT,
94 `prenom` varchar(50) DEFAULT NULL,
95 `nom` varchar(100) DEFAULT NULL,
96 `language (php,js)` varchar(50) DEFAULT NULL,
97 PRIMARY KEY (`id_formateur`)
98) ENGINE=InnoDB DEFAULT CHARSET=latin1;
99/*!40101 SET character_set_client = @saved_cs_client */;
100
101--
102-- Dumping data for table `formateur`
103--
104
105LOCK TABLES `formateur` WRITE;
106/*!40000 ALTER TABLE `formateur` DISABLE KEYS */;
107/*!40000 ALTER TABLE `formateur` ENABLE KEYS */;
108UNLOCK TABLES;
109
110--
111-- Table structure for table `salle`
112--
113
114DROP TABLE IF EXISTS `salle`;
115/*!40101 SET @saved_cs_client = @@character_set_client */;
116/*!40101 SET character_set_client = utf8 */;
117CREATE TABLE `salle` (
118 `id_salle` int(11) NOT NULL AUTO_INCREMENT,
119 `nom_de_la_salle` varchar(50) DEFAULT NULL,
120 PRIMARY KEY (`id_salle`)
121) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
122/*!40101 SET character_set_client = @saved_cs_client */;
123
124--
125-- Dumping data for table `salle`
126--
127
128LOCK TABLES `salle` WRITE;
129/*!40000 ALTER TABLE `salle` DISABLE KEYS */;
130INSERT INTO `salle` VALUES (1,'dojo'),(2,'reunion'),(3,'repos'),(4,'cuisine'),(5,'bureau'),(6,'openspace');
131/*!40000 ALTER TABLE `salle` ENABLE KEYS */;
132UNLOCK TABLES;
133/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
134
135/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
136/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
137/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
138/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
139/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
140/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
141/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
142
143-- Dump completed on 2018-04-09 16:21:06