· 8 years ago · Apr 03, 2018, 11:20 PM
1-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
2--
3-- Host: localhost Database: perrine_wcs
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: `perrine_wcs`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `perrine_wcs` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `perrine_wcs`;
25
26--
27-- Table structure for table `reserv`
28--
29
30DROP TABLE IF EXISTS `reserv`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `reserv` (
34 `date` varchar(15) DEFAULT NULL,
35 `duree` varchar(15) DEFAULT NULL,
36 `num_dossier` int(11) DEFAULT NULL,
37 `id_salle` int(11) DEFAULT NULL,
38 KEY `FK_reserv_user` (`num_dossier`),
39 KEY `FK_reserv_salle` (`id_salle`),
40 CONSTRAINT `FK_reserv_salle` FOREIGN KEY (`id_salle`) REFERENCES `salles` (`id_salle`),
41 CONSTRAINT `FK_reserv_user` FOREIGN KEY (`num_dossier`) REFERENCES `user` (`num_dossier`)
42) ENGINE=InnoDB DEFAULT CHARSET=latin1;
43/*!40101 SET character_set_client = @saved_cs_client */;
44
45--
46-- Dumping data for table `reserv`
47--
48
49LOCK TABLES `reserv` WRITE;
50/*!40000 ALTER TABLE `reserv` DISABLE KEYS */;
51INSERT INTO `reserv` VALUES ('12/03','3h',1234,1),('12/03','3h',1235,1),('12/03','3h',1236,1),('13/03','1h',1237,5),('13/03','1h',1238,5),('21/03','2h30',1239,3),('20/03','0h30',1240,6),('20/03','0h30',1241,6),('20/03','0h30',1242,6),('20/03','0h30',1243,6);
52/*!40000 ALTER TABLE `reserv` ENABLE KEYS */;
53UNLOCK TABLES;
54
55--
56-- Table structure for table `salles`
57--
58
59DROP TABLE IF EXISTS `salles`;
60/*!40101 SET @saved_cs_client = @@character_set_client */;
61/*!40101 SET character_set_client = utf8 */;
62CREATE TABLE `salles` (
63 `nom` varchar(50) DEFAULT NULL,
64 `id_salle` int(11) NOT NULL AUTO_INCREMENT,
65 PRIMARY KEY (`id_salle`)
66) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
67/*!40101 SET character_set_client = @saved_cs_client */;
68
69--
70-- Dumping data for table `salles`
71--
72
73LOCK TABLES `salles` WRITE;
74/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
75INSERT INTO `salles` VALUES ('Salle de dojo',1),('Salle de réunion',2),('Salle de repos',3),('Cuisine',4),('Bureau',5),('OpenSpace',6);
76/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
77UNLOCK TABLES;
78
79--
80-- Table structure for table `user`
81--
82
83DROP TABLE IF EXISTS `user`;
84/*!40101 SET @saved_cs_client = @@character_set_client */;
85/*!40101 SET character_set_client = utf8 */;
86CREATE TABLE `user` (
87 `num_dossier` int(11) NOT NULL,
88 `nom` varchar(50) DEFAULT NULL,
89 `prenom` varchar(50) DEFAULT NULL,
90 PRIMARY KEY (`num_dossier`)
91) ENGINE=InnoDB DEFAULT CHARSET=latin1;
92/*!40101 SET character_set_client = @saved_cs_client */;
93
94--
95-- Dumping data for table `user`
96--
97
98LOCK TABLES `user` WRITE;
99/*!40000 ALTER TABLE `user` DISABLE KEYS */;
100INSERT INTO `user` VALUES (1234,'Morand','Perrine'),(1235,'Wolff','Benjamin'),(1236,'Paterac','Thomas'),(1237,'Hoareau','Nicolas'),(1238,'Blabla','Wild'),(1239,'Wild','Circus'),(1240,'Krettly','Bastien'),(1241,'Hubert','Benoit'),(1242,'Lacousse','Justine'),(1243,'G','Google'),(1244,'Pester','Lorie');
101/*!40000 ALTER TABLE `user` 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-03-26 17:31:08