devFront
root 2018-06-06 12:25:32 +02:00
parent 99679ef5b9
commit 2dfc307eca
1 changed files with 106 additions and 0 deletions

106
database.sql Normal file
View File

@ -0,0 +1,106 @@
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64)
--
-- Host: localhost Database: amilate
-- ------------------------------------------------------
-- Server version 5.7.22-0ubuntu18.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 `migration_versions`
--
DROP TABLE IF EXISTS `migration_versions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migration_versions` (
`version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `migration_versions`
--
LOCK TABLES `migration_versions` WRITE;
/*!40000 ALTER TABLE `migration_versions` DISABLE KEYS */;
INSERT INTO `migration_versions` VALUES ('20180507081943'),('20180507084936');
/*!40000 ALTER TABLE `migration_versions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `question`
--
DROP TABLE IF EXISTS `question`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date` datetime NOT NULL,
`sticker` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `question`
--
LOCK TABLES `question` WRITE;
/*!40000 ALTER TABLE `question` DISABLE KEYS */;
INSERT INTO `question` VALUES (36,'Vous arrivez devant l\'entrée d\'HETIC, qui est fermée. Que faites-vous ?','2018-06-06 10:12:28','https://risibank.fr/cache/stickers/d325/32563-static.png'),(37,'Un passant vous vois essayer d\'escalader le mur et appelle la police','2018-06-06 10:12:28','https://risibank.fr/cache/stickers/d52/5245-thumb.jpg'),(38,'A peine entré, un étudiant vous demande si vous ne vous êtes pas perdu, que faites-vous ?','2018-06-06 11:39:34','https://risibank.fr/cache/stickers/d760/76074-thumb.png'),(39,'Il vous croit, mais les gilberts sont déjà sur les lieux.','2018-06-06 11:51:14','https://risibank.fr/cache/stickers/d35/3522-thumb.png');
/*!40000 ALTER TABLE `question` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `response`
--
DROP TABLE IF EXISTS `response`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `response` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`question_id` int(11) DEFAULT NULL,
`child_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `IDX_3E7B0BFB1E27F6BF` (`question_id`),
KEY `IDX_3E7B0BFBDD62C21B` (`child_id`),
CONSTRAINT `FK_3E7B0BFB1E27F6BF` FOREIGN KEY (`question_id`) REFERENCES `question` (`id`),
CONSTRAINT `FK_3E7B0BFBDD62C21B` FOREIGN KEY (`child_id`) REFERENCES `question` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=172 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `response`
--
LOCK TABLES `response` WRITE;
/*!40000 ALTER TABLE `response` DISABLE KEYS */;
INSERT INTO `response` VALUES (164,'J\'abandonne, tempis pour le cours.',36,NULL),(165,'J\'escalade le mur à mains nues',36,37),(166,'Vous lui expliquez qu\'il s\'agit d\'un malentendu, vous testez la sécurité du batiment',37,39),(167,'-',37,NULL),(168,'-',37,NULL),(169,'J\'appelle le directeur Mr. Beaux',36,NULL),(170,'Je passe par le bâtiment des H',36,38),(171,'J\'ai glissé chef',39,NULL);
/*!40000 ALTER TABLE `response` 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-06-06 12:03:52