Skip to content

Instantly share code, notes, and snippets.

@tiga-tiga
Created March 28, 2018 09:33
Show Gist options
  • Save tiga-tiga/3418ad88466a37e75c5bdcbbb0028bde to your computer and use it in GitHub Desktop.
Save tiga-tiga/3418ad88466a37e75c5bdcbbb0028bde to your computer and use it in GitHub Desktop.
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
--
-- Host: localhost Database: georges_wcs_tls
-- ------------------------------------------------------
-- Server version 5.7.21-0ubuntu0.16.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `Wilder`
--
DROP TABLE IF EXISTS `Wilder`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Wilder` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(25) DEFAULT NULL,
`prenom` varchar(25) DEFAULT NULL,
`adresse` varchar(25) DEFAULT NULL,
`langage` varchar(25) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Wilder`
--
LOCK TABLES `Wilder` WRITE;
/*!40000 ALTER TABLE `Wilder` DISABLE KEYS */;
INSERT INTO `Wilder` VALUES (1,'Google','Chrome','Toulouse',NULL),(2,'Laurie','Comment','Paris',NULL),(3,'Sarr','Georges','Toulouse',NULL),(4,'Morrand','Perrine','Toulouse',NULL),(5,'Petit','Mathieu','Toulouse',NULL),(6,'Krettly','Bastien',NULL,'Java'),(7,'Hubert','Benoit',NULL,'JS'),(8,'Leutchmann','Pablo','Toulouse',''),(9,'Benaissa','Hédi','St-Simon',''),(10,'Hoareau','Nicolas','Toulouse','');
/*!40000 ALTER TABLE `Wilder` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reservation`
--
DROP TABLE IF EXISTS `reservation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reservation` (
`dates` date NOT NULL,
`heures` time DEFAULT NULL,
`ID` int(11) NOT NULL,
`ID_salles` int(11) NOT NULL,
PRIMARY KEY (`ID`,`ID_salles`),
KEY `FK_reservation_ID_salles` (`ID_salles`),
CONSTRAINT `FK_reservation_ID` FOREIGN KEY (`ID`) REFERENCES `Wilder` (`ID`),
CONSTRAINT `FK_reservation_ID_salles` FOREIGN KEY (`ID_salles`) REFERENCES `salles` (`ID_salles`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reservation`
--
LOCK TABLES `reservation` WRITE;
/*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
INSERT INTO `reservation` VALUES ('1991-01-01','00:00:12',1,1),('2018-01-01','01:10:12',2,1),('2018-02-01','01:10:12',3,1),('2018-01-01','01:10:12',4,5),('2018-01-01','01:10:12',5,5),('2018-01-01','01:10:12',6,6),('2018-01-01','01:10:12',7,3),('2018-01-01','01:10:12',8,6),('2018-01-01','01:10:12',9,6),('2018-01-01','01:10:12',10,6);
/*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `salles`
--
DROP TABLE IF EXISTS `salles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `salles` (
`ID_salles` int(11) NOT NULL AUTO_INCREMENT,
`nom_salles` varchar(25) DEFAULT NULL,
PRIMARY KEY (`ID_salles`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `salles`
--
LOCK TABLES `salles` WRITE;
/*!40000 ALTER TABLE `salles` DISABLE KEYS */;
INSERT INTO `salles` VALUES (1,'Salle de Dojo'),(2,'Salle de réunion'),(3,'Salle de repos'),(4,'Cuisine'),(5,'Bureau'),(6,'OpenSpace');
/*!40000 ALTER TABLE `salles` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-03-28 11:31:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment