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: mydb
- -- ------------------------------------------------------
- -- Server version 5.7.21-0ubuntu0.17.10.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 `dossier`
- --
- DROP TABLE IF EXISTS `dossier`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `dossier` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `num_dossier` varchar(45) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `num_dossier_UNIQUE` (`num_dossier`)
- ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `dossier`
- --
- LOCK TABLES `dossier` WRITE;
- /*!40000 ALTER TABLE `dossier` DISABLE KEYS */;
- INSERT INTO `dossier` VALUES (9,'E001'),(10,'E002'),(11,'E003'),(12,'E004'),(13,'E005'),(14,'E006'),(16,'E007'),(5,'F001'),(6,'F002'),(7,'F003'),(8,'F004');
- /*!40000 ALTER TABLE `dossier` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `eleve`
- --
- DROP TABLE IF EXISTS `eleve`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `eleve` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `nom` varchar(45) NOT NULL,
- `prenom` varchar(45) NOT NULL,
- `id_dossier` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='\n';
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `eleve`
- --
- LOCK TABLES `eleve` WRITE;
- /*!40000 ALTER TABLE `eleve` DISABLE KEYS */;
- INSERT INTO `eleve` VALUES (1,'Machine','Laurie',9),(2,'Boon','Danie',10),(3,'Proviste','Alain',11),(4,'Ulet','Yvon',12),(5,'Ulet','Jacque',13),(6,'Houaletrouaveclalangue','Ginette',14),(7,'Mond','Ray',16);
- /*!40000 ALTER TABLE `eleve` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `formateur`
- --
- DROP TABLE IF EXISTS `formateur`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `formateur` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `nom` varchar(45) NOT NULL,
- `prenom` varchar(45) NOT NULL,
- `id_dossier` int(11) NOT NULL,
- `id_langue` int(11) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `formateur`
- --
- LOCK TABLES `formateur` WRITE;
- /*!40000 ALTER TABLE `formateur` DISABLE KEYS */;
- INSERT INTO `formateur` VALUES (1,'George','Michael',5,3),(2,'Yvon','Jacque',6,3),(3,'Google','doc',7,3),(4,'Laurie','gamy',8,3);
- /*!40000 ALTER TABLE `formateur` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `langue`
- --
- DROP TABLE IF EXISTS `langue`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `langue` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `langue` varchar(45) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `langue`
- --
- LOCK TABLES `langue` WRITE;
- /*!40000 ALTER TABLE `langue` DISABLE KEYS */;
- INSERT INTO `langue` VALUES (1,'php'),(2,'java'),(3,'SQL');
- /*!40000 ALTER TABLE `langue` 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` date NOT NULL,
- `duree` time NOT NULL,
- `id_dossier` int(11) NOT NULL,
- `id_salle` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `id_dossier_UNIQUE` (`id_dossier`),
- KEY `fk_reservation_salle1_idx` (`id_salle`),
- CONSTRAINT `fk_reservation_dossier1` FOREIGN KEY (`id_dossier`) REFERENCES `dossier` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
- CONSTRAINT `fk_reservation_salle1` FOREIGN KEY (`id_salle`) REFERENCES `salle` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
- ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
- /*!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 (2,'1954-05-05','05:30:25',5,1),(3,'1954-05-05','05:30:25',6,1),(4,'1920-06-05','05:30:25',7,1),(5,'1920-06-05','05:30:25',9,5),(6,'1920-07-05','05:30:25',10,5),(7,'1920-08-05','05:30:25',11,3),(8,'1921-08-05','05:30:25',8,6),(9,'1922-08-05','05:30:25',12,6),(10,'1923-08-05','05:30:25',13,6),(11,'1924-08-05','05:30:25',14,6);
- /*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
- UNLOCK TABLES;
- --
- -- Table structure for table `salle`
- --
- DROP TABLE IF EXISTS `salle`;
- /*!40101 SET @saved_cs_client = @@character_set_client */;
- /*!40101 SET character_set_client = utf8 */;
- CREATE TABLE `salle` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `nom` varchar(45) NOT NULL,
- `numero` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `index2` (`numero`),
- UNIQUE KEY `index3` (`nom`)
- ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
- /*!40101 SET character_set_client = @saved_cs_client */;
- --
- -- Dumping data for table `salle`
- --
- LOCK TABLES `salle` WRITE;
- /*!40000 ALTER TABLE `salle` DISABLE KEYS */;
- INSERT INTO `salle` VALUES (1,'Salle de dojo',1),(2,'Salle de réunion',2),(3,'Salle de repos',3),(4,'cuisine',4),(5,'Bureau',5),(6,'OpenSpace',6);
- /*!40000 ALTER TABLE `salle` 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-13 14:40:23
Add Comment
Please, Sign In to add comment