Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
- --
- -- Host: localhost Database: WildCoSchool
- -- ------------------------------------------------------
- -- 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 */;
- --
- -- Current Database: `WildCoSchool`
- --
- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `WildCoSchool` /*!40100 DEFAULT CHARACTER SET latin1 */;
- USE `WildCoSchool`;
- --
- -- Table structure for table `students`
- --
- DROP TABLE IF EXISTS `students`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `students` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) DEFAULT NULL,
- `adress` varchar(50) DEFAULT NULL,
- `id_formateur` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `id_formateur` (`id_formateur`),
- CONSTRAINT `students_ibfk_1` FOREIGN KEY (`id_formateur`) REFERENCES `nosFormateurs` (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `students`
- --
- LOCK TABLES `students` WRITE;
- /*!40000 ALTER TABLE `students` DISABLE KEYS */;
- INSERT INTO `students` VALUES (1,'lemecamadroite','Cannejan',1),(2,'letypedevant','Issykesmoulineux',1),(3,'lafillelabas','limoges',2),(4,'lesautres','voila',2),(5,'voila','voila',1);
- /*!40000 ALTER TABLE `students` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `nosFormateurs`
- --
- DROP TABLE IF EXISTS `nosFormateurs`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `nosFormateurs` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(50) DEFAULT NULL,
- `language` varchar(50) DEFAULT NULL,
- `num_salles` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `num_salles` (`num_salles`),
- CONSTRAINT `nosFormateurs_ibfk_1` FOREIGN KEY (`num_salles`) REFERENCES `salles` (`num_salles`)
- ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `nosFormateurs`
- --
- LOCK TABLES `nosFormateurs` WRITE;
- /*!40000 ALTER TABLE `nosFormateurs` DISABLE KEYS */;
- INSERT INTO `nosFormateurs` VALUES (1,'Alex','JS',1),(2,'Luigi','Php',1),(3,'Toad','Js',5),(4,'Yoshi','Js',6),(5,'Voila','js',6),(6,'Ok','js',5),(7,'Rocket','Php',1),(8,'Warrio','Js',3),(9,'Mulan','php',6),(10,'Hector','Js',6);
- /*!40000 ALTER TABLE `nosFormateurs` 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` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `date` varchar(5) DEFAULT NULL,
- `heure` varchar(5) DEFAULT NULL,
- `duration` int(11) DEFAULT NULL,
- `salles_id` int(11) DEFAULT NULL,
- `formateur_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `salles_id` (`salles_id`),
- KEY `formateur_id` (`formateur_id`),
- CONSTRAINT `reservation_ibfk_1` FOREIGN KEY (`salles_id`) REFERENCES `salles` (`num_salles`),
- CONSTRAINT `reservation_ibfk_2` FOREIGN KEY (`formateur_id`) REFERENCES `nosFormateurs` (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=6 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 (1,'07/04','10h00',180,1,1),(2,'02/04','17h30',2,1,1),(3,'08/04','9h33',57,5,3),(4,'03/04','19h00',10,1,2),(5,'03/04','13h00',60,3,1);
- /*!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` (
- `num_salles` int(11) NOT NULL AUTO_INCREMENT,
- `name_salles` varchar(50) DEFAULT NULL,
- PRIMARY KEY (`num_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,'Dojo'),(2,'Salles de reunion'),(3,'BatCave'),(4,'Cuisinella'),(5,'Office'),(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-04-14 14:01:02
Add Comment
Please, Sign In to add comment