Guest User

Untitled

a guest
Mar 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.85 KB | None | 0 0
  1. -- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64)
  2. --
  3. -- Host: localhost Database: QuestSQL
  4. -- ------------------------------------------------------
  5. -- Server version 5.7.21-0ubuntu0.16.04.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: `QuestSQL`
  20. --
  21.  
  22. CREATE DATABASE /*!32312 IF NOT EXISTS*/ `QuestSQL` /*!40100 DEFAULT CHARACTER SET latin1 */;
  23.  
  24. USE `QuestSQL`;
  25.  
  26. --
  27. -- Table structure for table `Book`
  28. --
  29.  
  30. DROP TABLE IF EXISTS `Book`;
  31. /*!40101 SET @saved_cs_client = @@character_set_client */;
  32. /*!40101 SET character_set_client = utf8 */;
  33. CREATE TABLE `Book` (
  34. `Pk_Book_Id` int(11) NOT NULL,
  35. `Name` varchar(255) DEFAULT NULL,
  36. `ISBN` varchar(255) DEFAULT NULL,
  37. PRIMARY KEY (`Pk_Book_Id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  39. /*!40101 SET character_set_client = @saved_cs_client */;
  40.  
  41. --
  42. -- Dumping data for table `Book`
  43. --
  44.  
  45. LOCK TABLES `Book` WRITE;
  46. /*!40000 ALTER TABLE `Book` DISABLE KEYS */;
  47. /*!40000 ALTER TABLE `Book` ENABLE KEYS */;
  48. UNLOCK TABLES;
  49.  
  50. --
  51. -- Table structure for table `eleve`
  52. --
  53.  
  54. DROP TABLE IF EXISTS `eleve`;
  55. /*!40101 SET @saved_cs_client = @@character_set_client */;
  56. /*!40101 SET character_set_client = utf8 */;
  57. CREATE TABLE `eleve` (
  58. `id` int(11) NOT NULL AUTO_INCREMENT,
  59. `nom` varchar(50) DEFAULT NULL,
  60. `prenom` varchar(50) DEFAULT NULL,
  61. `adresse` text,
  62. `dossier_eleve` int(10) DEFAULT NULL,
  63. PRIMARY KEY (`id`)
  64. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
  65. /*!40101 SET character_set_client = @saved_cs_client */;
  66.  
  67. --
  68. -- Dumping data for table `eleve`
  69. --
  70.  
  71. LOCK TABLES `eleve` WRITE;
  72. /*!40000 ALTER TABLE `eleve` DISABLE KEYS */;
  73. INSERT INTO `eleve` VALUES (1,'Fertinel','Axel','Strasbourg',1),(2,'Dark','Vador','Strasbourg',2),(3,'Lorie','Lorie','Paris',3),(4,'Google','Google','Google',4),(5,'Man','SUper','Saturne',5),(6,'Cortex','Minus','Paris',6),(7,'Modo','Cassi','Montpellier',7),(8,'Bins','JarJar','lille',8),(9,'Moinsto','Pluto','Pluton',9),(10,'Rube','Xavier','Biaritz',10);
  74. /*!40000 ALTER TABLE `eleve` ENABLE KEYS */;
  75. UNLOCK TABLES;
  76.  
  77. --
  78. -- Table structure for table `reservation`
  79. --
  80.  
  81. DROP TABLE IF EXISTS `reservation`;
  82. /*!40101 SET @saved_cs_client = @@character_set_client */;
  83. /*!40101 SET character_set_client = utf8 */;
  84. CREATE TABLE `reservation` (
  85. `id` int(11) NOT NULL AUTO_INCREMENT,
  86. `date` int(10) DEFAULT NULL,
  87. `dure` int(10) DEFAULT NULL,
  88. `eleveid` int(10) DEFAULT NULL,
  89. `salleid` int(10) DEFAULT NULL,
  90. PRIMARY KEY (`id`),
  91. KEY `eleveid` (`eleveid`),
  92. KEY `salleid` (`salleid`),
  93. CONSTRAINT `reservation_ibfk_1` FOREIGN KEY (`eleveid`) REFERENCES `eleve` (`id`),
  94. CONSTRAINT `reservation_ibfk_2` FOREIGN KEY (`salleid`) REFERENCES `salle` (`id`)
  95. ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
  96. /*!40101 SET character_set_client = @saved_cs_client */;
  97.  
  98. --
  99. -- Dumping data for table `reservation`
  100. --
  101.  
  102. LOCK TABLES `reservation` WRITE;
  103. /*!40000 ALTER TABLE `reservation` DISABLE KEYS */;
  104. INSERT INTO `reservation` VALUES (1,905,1,1,1),(3,1005,1,2,1),(4,1105,1,3,1),(5,1105,1,4,6),(6,1205,1,5,6),(7,1205,1,6,3),(8,1305,1,7,5),(9,1405,1,8,5),(10,1505,1,9,5),(11,1605,1,10,5);
  105. /*!40000 ALTER TABLE `reservation` ENABLE KEYS */;
  106. UNLOCK TABLES;
  107.  
  108. --
  109. -- Table structure for table `salle`
  110. --
  111.  
  112. DROP TABLE IF EXISTS `salle`;
  113. /*!40101 SET @saved_cs_client = @@character_set_client */;
  114. /*!40101 SET character_set_client = utf8 */;
  115. CREATE TABLE `salle` (
  116. `id` int(11) NOT NULL AUTO_INCREMENT,
  117. `nom` varchar(50) DEFAULT NULL,
  118. `numero_salle` int(10) DEFAULT NULL,
  119. PRIMARY KEY (`id`)
  120. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
  121. /*!40101 SET character_set_client = @saved_cs_client */;
  122.  
  123. --
  124. -- Dumping data for table `salle`
  125. --
  126.  
  127. LOCK TABLES `salle` WRITE;
  128. /*!40000 ALTER TABLE `salle` DISABLE KEYS */;
  129. INSERT INTO `salle` VALUES (1,'dojo',101),(2,'Reunion',102),(3,'Repos',103),(4,'Cuisine',104),(5,'Openspace',105),(6,'Bureau',106);
  130. /*!40000 ALTER TABLE `salle` ENABLE KEYS */;
  131. UNLOCK TABLES;
  132. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  133.  
  134. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  135. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  136. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  137. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  138. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  139. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  140. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  141.  
  142. -- Dump completed on 2018-03-15 14:26:28
Add Comment
Please, Sign In to add comment