· 8 years ago · Nov 28, 2017, 03:18 AM
1-- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64)
2--
3-- Host: localhost Database: atschool
4-- ------------------------------------------------------
5-- Server version 5.7.20-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: `atschool`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `atschool` /*!40100 DEFAULT CHARACTER SET utf8 */;
23
24USE `atschool`;
25
26--
27-- Table structure for table `personnes`
28--
29
30DROP TABLE IF EXISTS `personnes`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `personnes` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `lastname` varchar(20) DEFAULT NULL,
36 `firstname` varchar(20) DEFAULT NULL,
37 PRIMARY KEY (`id`)
38) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
39/*!40101 SET character_set_client = @saved_cs_client */;
40
41--
42-- Dumping data for table `personnes`
43--
44
45LOCK TABLES `personnes` WRITE;
46/*!40000 ALTER TABLE `personnes` DISABLE KEYS */;
47INSERT INTO `personnes` VALUES (1,'Est Ton Ami','Google'),(2,'Asushi','Laurie'),(3,'Chuong','Caroline'),(4,'Huet','Cyrielle'),(5,'Grandjean','Florian'),(6,'Ducerf','Alexis'),(7,'Liwenge','Cindy'),(8,'Beauzel','Anyzia'),(9,'Bonté','Marine'),(10,'Ancel-Pirouelle','Emeline');
48/*!40000 ALTER TABLE `personnes` ENABLE KEYS */;
49UNLOCK TABLES;
50
51--
52-- Table structure for table `resa`
53--
54
55DROP TABLE IF EXISTS `resa`;
56/*!40101 SET @saved_cs_client = @@character_set_client */;
57/*!40101 SET character_set_client = utf8 */;
58CREATE TABLE `resa` (
59 `id` int(11) NOT NULL AUTO_INCREMENT,
60 `personnes_id` int(11) NOT NULL,
61 `salles_id` int(11) NOT NULL,
62 `horaire` datetime DEFAULT NULL,
63 `duree` time DEFAULT NULL,
64 PRIMARY KEY (`id`),
65 KEY `fk_salles_id` (`salles_id`),
66 KEY `fk_personnes_id` (`personnes_id`),
67 CONSTRAINT `fk_personnes_id` FOREIGN KEY (`personnes_id`) REFERENCES `personnes` (`id`),
68 CONSTRAINT `fk_salles_id` FOREIGN KEY (`salles_id`) REFERENCES `salles` (`id`)
69) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
70/*!40101 SET character_set_client = @saved_cs_client */;
71
72--
73-- Dumping data for table `resa`
74--
75
76LOCK TABLES `resa` WRITE;
77/*!40000 ALTER TABLE `resa` DISABLE KEYS */;
78INSERT INTO `resa` VALUES (1,1,1,'2017-11-29 17:00:00','01:00:00'),(2,2,1,'2017-11-29 14:15:00','02:00:00'),(3,3,1,'2017-11-30 14:00:00','01:00:00'),(4,4,3,'2017-12-01 11:00:00','01:30:00'),(5,5,5,'2017-11-30 09:30:00','01:30:00'),(6,6,5,'2017-12-01 09:30:00','02:30:00'),(7,7,6,'2017-11-27 09:45:00','02:15:00'),(8,8,6,'2017-11-27 15:30:00','01:45:00'),(9,9,6,'2017-12-02 10:00:00','01:00:00'),(10,10,6,'2017-11-28 14:30:00','02:00:00');
79/*!40000 ALTER TABLE `resa` ENABLE KEYS */;
80UNLOCK TABLES;
81
82--
83-- Table structure for table `salles`
84--
85
86DROP TABLE IF EXISTS `salles`;
87/*!40101 SET @saved_cs_client = @@character_set_client */;
88/*!40101 SET character_set_client = utf8 */;
89CREATE TABLE `salles` (
90 `id` int(11) NOT NULL AUTO_INCREMENT,
91 `name` varchar(20) DEFAULT NULL,
92 PRIMARY KEY (`id`)
93) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
94/*!40101 SET character_set_client = @saved_cs_client */;
95
96--
97-- Dumping data for table `salles`
98--
99
100LOCK TABLES `salles` WRITE;
101/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
102INSERT INTO `salles` VALUES (1,'salle de dojo'),(2,'salle de réunion'),(3,'salle de repos'),(4,'cuisine'),(5,'bureau'),(6,'open space');
103/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
104UNLOCK TABLES;
105/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
106
107/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
108/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
109/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
110/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
111/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
112/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
113/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
114
115-- Dump completed on 2017-11-26 20:16:15