text: -- MySQL dump 10.13  Distrib 5.7.21, for macos10.13 (x86_64)
  --
  -- Host: localhost    Database: posts
  -- ------------------------------------------------------
  -- Server version	5.7.21
  
  /*!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 `commentary`
  --
  
  DROP TABLE IF EXISTS `commentary`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `commentary` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_note` int(11) DEFAULT NULL,
    `id_post` int(11) DEFAULT NULL,
    `id_author` int(11) DEFAULT NULL,
    `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`id`),
    KEY `IDX_1CAC12CA449DE616` (`id_note`),
    KEY `IDX_1CAC12CAD1AA708F` (`id_post`),
    KEY `IDX_1CAC12CA9B986D25` (`id_author`),
    CONSTRAINT `FK_1CAC12CA449DE616` FOREIGN KEY (`id_note`) REFERENCES `note` (`id`),
    CONSTRAINT `FK_1CAC12CA9B986D25` FOREIGN KEY (`id_author`) REFERENCES `fos_user` (`id`),
    CONSTRAINT `FK_1CAC12CAD1AA708F` FOREIGN KEY (`id_post`) REFERENCES `post` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `commentary`
  --
  
  LOCK TABLES `commentary` WRITE;
  /*!40000 ALTER TABLE `commentary` DISABLE KEYS */;
  /*!40000 ALTER TABLE `commentary` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `fos_user`
  --
  
  DROP TABLE IF EXISTS `fos_user`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `fos_user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `username` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `username_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `email` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `email_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL,
    `enabled` tinyint(1) NOT NULL,
    `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
    `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `last_login` datetime DEFAULT NULL,
    `confirmation_token` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL,
    `password_requested_at` datetime DEFAULT NULL,
    `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)',
    `note` decimal(2,1) NOT NULL,
    PRIMARY KEY (`id`),
    UNIQUE KEY `UNIQ_957A647992FC23A8` (`username_canonical`),
    UNIQUE KEY `UNIQ_957A6479A0D96FBF` (`email_canonical`),
    UNIQUE KEY `UNIQ_957A6479C05FB297` (`confirmation_token`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `fos_user`
  --
  
  LOCK TABLES `fos_user` WRITE;
  /*!40000 ALTER TABLE `fos_user` DISABLE KEYS */;
  INSERT INTO `fos_user` VALUES (1,'test','test','maxclouet@wanadoo.fr','maxclouet@wanadoo.fr',1,NULL,'$2y$13$otuLrquI0okfmj99pjMssOiCs2sdJpp0oQ0FBVXV4CrgdydaDXDwy','2018-06-14 09:07:27',NULL,NULL,'a:0:{}',4.5),(2,'bite','bite','test@test.com','test@test.com',1,NULL,'$2y$13$dEfFcpNjxYfULNpJiPReFupD3vzA4bGubANnD80WfaTNKtS4PQcY.','2018-06-14 09:07:39',NULL,NULL,'a:0:{}',4.5);
  /*!40000 ALTER TABLE `fos_user` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `note`
  --
  
  DROP TABLE IF EXISTS `note`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `note` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_comment` int(11) DEFAULT NULL,
    `id_user_rated` int(11) DEFAULT NULL,
    `id_author` int(11) NOT NULL,
    `note` int(11) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `IDX_CFBDFA144AE9FB1C` (`id_comment`),
    KEY `IDX_CFBDFA14804F5574` (`id_user_rated`),
    CONSTRAINT `FK_CFBDFA144AE9FB1C` FOREIGN KEY (`id_comment`) REFERENCES `commentary` (`id`),
    CONSTRAINT `FK_CFBDFA14804F5574` FOREIGN KEY (`id_user_rated`) REFERENCES `fos_user` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `note`
  --
  
  LOCK TABLES `note` WRITE;
  /*!40000 ALTER TABLE `note` DISABLE KEYS */;
  /*!40000 ALTER TABLE `note` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `post`
  --
  
  DROP TABLE IF EXISTS `post`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `post` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `id_author` int(11) DEFAULT NULL,
    `created_at` datetime NOT NULL,
    `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `description` longtext COLLATE utf8_unicode_ci NOT NULL,
    `state` int(11) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `IDX_5A8A6C8D9B986D25` (`id_author`),
    CONSTRAINT `FK_5A8A6C8D9B986D25` FOREIGN KEY (`id_author`) REFERENCES `fos_user` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `post`
  --
  
  LOCK TABLES `post` WRITE;
  /*!40000 ALTER TABLE `post` DISABLE KEYS */;
  /*!40000 ALTER TABLE `post` 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-14 11:09:39
  