· 8 years ago · Apr 11, 2018, 02:48 PM
1-- MySQL dump 10.13 Distrib 5.7.21, for osx10.13 (x86_64)
2--
3-- Host: localhost Database: f_gaudin_wcs_bordeaux
4-- ------------------------------------------------------
5-- Server version 5.7.21
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 `resa`
20--
21
22DROP TABLE IF EXISTS `resa`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `resa` (
26 `id_resa` int(11) NOT NULL AUTO_INCREMENT,
27 `id_student` int(11) DEFAULT NULL,
28 `id_teacher` int(11) DEFAULT NULL,
29 `id_salle` int(11) DEFAULT NULL,
30 `date` date DEFAULT NULL,
31 `time` time DEFAULT NULL,
32 PRIMARY KEY (`id_resa`),
33 KEY `id_student` (`id_student`),
34 KEY `id_teacher` (`id_teacher`),
35 KEY `id_salle` (`id_salle`),
36 CONSTRAINT `resa_ibfk_1` FOREIGN KEY (`id_student`) REFERENCES `student` (`id_student`),
37 CONSTRAINT `resa_ibfk_2` FOREIGN KEY (`id_teacher`) REFERENCES `teacher` (`id_teacher`),
38 CONSTRAINT `resa_ibfk_3` FOREIGN KEY (`id_salle`) REFERENCES `room` (`id_salle`)
39) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
40/*!40101 SET character_set_client = @saved_cs_client */;
41
42--
43-- Dumping data for table `resa`
44--
45
46LOCK TABLES `resa` WRITE;
47/*!40000 ALTER TABLE `resa` DISABLE KEYS */;
48INSERT INTO `resa` VALUES (1,7,NULL,3,'2018-04-10','10:30:00'),(2,NULL,1,1,'2018-04-02','09:00:00'),(4,1,NULL,1,'2018-04-03','09:30:00'),(5,2,NULL,1,'2018-04-03','10:30:00'),(6,3,NULL,5,'2018-04-03','11:30:00'),(7,4,NULL,5,'2018-04-03','14:30:00'),(8,5,NULL,6,'2018-04-03','12:30:00'),(9,6,NULL,6,'2018-04-03','12:30:00'),(10,7,NULL,6,'2018-04-03','12:30:00'),(11,8,NULL,6,'2018-04-03','12:30:00');
49/*!40000 ALTER TABLE `resa` ENABLE KEYS */;
50UNLOCK TABLES;
51
52--
53-- Table structure for table `room`
54--
55
56DROP TABLE IF EXISTS `room`;
57/*!40101 SET @saved_cs_client = @@character_set_client */;
58/*!40101 SET character_set_client = utf8 */;
59CREATE TABLE `room` (
60 `id_salle` int(11) NOT NULL AUTO_INCREMENT,
61 `Name` varchar(100) DEFAULT NULL,
62 PRIMARY KEY (`id_salle`)
63) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
64/*!40101 SET character_set_client = @saved_cs_client */;
65
66--
67-- Dumping data for table `room`
68--
69
70LOCK TABLES `room` WRITE;
71/*!40000 ALTER TABLE `room` DISABLE KEYS */;
72INSERT INTO `room` VALUES (1,'Salle de dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
73/*!40000 ALTER TABLE `room` ENABLE KEYS */;
74UNLOCK TABLES;
75
76--
77-- Table structure for table `student`
78--
79
80DROP TABLE IF EXISTS `student`;
81/*!40101 SET @saved_cs_client = @@character_set_client */;
82/*!40101 SET character_set_client = utf8 */;
83CREATE TABLE `student` (
84 `id_student` int(11) NOT NULL,
85 `Name` varchar(30) DEFAULT NULL,
86 `Last_Name` varchar(30) DEFAULT NULL,
87 `Old` int(11) DEFAULT NULL,
88 `Address` varchar(50) DEFAULT NULL,
89 PRIMARY KEY (`id_student`)
90) ENGINE=InnoDB DEFAULT CHARSET=utf8;
91/*!40101 SET character_set_client = @saved_cs_client */;
92
93--
94-- Dumping data for table `student`
95--
96
97LOCK TABLES `student` WRITE;
98/*!40000 ALTER TABLE `student` DISABLE KEYS */;
99INSERT INTO `student` VALUES (1,'Ruat','Marion',30,'Bordeaux'),(2,'Niedzwiecki','Julien',33,'La Rochelle'),(3,'Cointet','Thibaut',28,'Bordeaux'),(4,'Chêne','Frederic',34,'Bordeaux'),(5,'Broteille','Coralie',26,'Bordeaux'),(6,'Lorie','X',33,'Paris'),(7,'Google','google',100,'New York'),(8,'Mad','Max',50,'San Francisco'),(9,'Cherchez','Charlie',45,'La Tremblade'),(10,'Pineau','Tom',8,'Arvert');
100/*!40000 ALTER TABLE `student` ENABLE KEYS */;
101UNLOCK TABLES;
102
103--
104-- Table structure for table `teacher`
105--
106
107DROP TABLE IF EXISTS `teacher`;
108/*!40101 SET @saved_cs_client = @@character_set_client */;
109/*!40101 SET character_set_client = utf8 */;
110CREATE TABLE `teacher` (
111 `id_teacher` int(11) NOT NULL,
112 `Name` varchar(100) DEFAULT NULL,
113 `Last_Name` varchar(100) DEFAULT NULL,
114 `Languages` varchar(150) DEFAULT NULL,
115 PRIMARY KEY (`id_teacher`)
116) ENGINE=InnoDB DEFAULT CHARSET=utf8;
117/*!40101 SET character_set_client = @saved_cs_client */;
118
119--
120-- Dumping data for table `teacher`
121--
122
123LOCK TABLES `teacher` WRITE;
124/*!40000 ALTER TABLE `teacher` DISABLE KEYS */;
125INSERT INTO `teacher` VALUES (1,'Lorion','Alexandre','JS'),(2,'Nom','Guillaume','JS');
126/*!40000 ALTER TABLE `teacher` ENABLE KEYS */;
127UNLOCK TABLES;
128/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
129
130/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
131/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
132/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
133/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
134/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
135/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
136/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
137
138-- Dump completed on 2018-04-03 16:10:11