text: -- MySQL dump 10.13  Distrib 5.7.23, for Linux (x86_64)
  --
  -- Host: localhost    Database: registration_02
  -- ------------------------------------------------------
  -- Server version	5.7.23-0ubuntu0.18.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 `hibernate_sequence`
  --
  
  DROP TABLE IF EXISTS `hibernate_sequence`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `hibernate_sequence` (
    `next_val` bigint(20) DEFAULT NULL
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `hibernate_sequence`
  --
  
  LOCK TABLES `hibernate_sequence` WRITE;
  /*!40000 ALTER TABLE `hibernate_sequence` DISABLE KEYS */;
  INSERT INTO `hibernate_sequence` VALUES (13),(13),(13),(13),(13);
  /*!40000 ALTER TABLE `hibernate_sequence` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `passwordresettoken`
  --
  
  DROP TABLE IF EXISTS `passwordresettoken`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `passwordresettoken` (
    `id` bigint(20) NOT NULL,
    `expiryDate` datetime(6) DEFAULT NULL,
    `token` varchar(255) DEFAULT NULL,
    `user_id` bigint(20) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `FKgdew0adk8xruaoq2rgdsy34w2` (`user_id`),
    CONSTRAINT `FKgdew0adk8xruaoq2rgdsy34w2` FOREIGN KEY (`user_id`) REFERENCES `user_account` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `passwordresettoken`
  --
  
  LOCK TABLES `passwordresettoken` WRITE;
  /*!40000 ALTER TABLE `passwordresettoken` DISABLE KEYS */;
  /*!40000 ALTER TABLE `passwordresettoken` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `privilege`
  --
  
  DROP TABLE IF EXISTS `privilege`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `privilege` (
    `id` bigint(20) NOT NULL,
    `name` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `privilege`
  --
  
  LOCK TABLES `privilege` WRITE;
  /*!40000 ALTER TABLE `privilege` DISABLE KEYS */;
  INSERT INTO `privilege` VALUES (1,'READ_PRIVILEGE'),(2,'WRITE_PRIVILEGE'),(3,'CHANGE_PASSWORD_PRIVILEGE');
  /*!40000 ALTER TABLE `privilege` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `role`
  --
  
  DROP TABLE IF EXISTS `role`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `role` (
    `id` bigint(20) NOT NULL,
    `name` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `role`
  --
  
  LOCK TABLES `role` WRITE;
  /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  INSERT INTO `role` VALUES (4,'ROLE_ADMIN'),(5,'ROLE_USER');
  /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `roles_privileges`
  --
  
  DROP TABLE IF EXISTS `roles_privileges`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `roles_privileges` (
    `role_id` bigint(20) NOT NULL,
    `privilege_id` bigint(20) NOT NULL,
    KEY `FKp0x1d9k5aksyqd1akwwfkh0ki` (`privilege_id`),
    KEY `FK2rfl694fu6ls2f2mqcxesqc6p` (`role_id`),
    CONSTRAINT `FK2rfl694fu6ls2f2mqcxesqc6p` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`),
    CONSTRAINT `FKp0x1d9k5aksyqd1akwwfkh0ki` FOREIGN KEY (`privilege_id`) REFERENCES `privilege` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `roles_privileges`
  --
  
  LOCK TABLES `roles_privileges` WRITE;
  /*!40000 ALTER TABLE `roles_privileges` DISABLE KEYS */;
  INSERT INTO `roles_privileges` VALUES (4,1),(4,2),(4,3),(5,1),(5,3);
  /*!40000 ALTER TABLE `roles_privileges` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user_account`
  --
  
  DROP TABLE IF EXISTS `user_account`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user_account` (
    `id` bigint(20) NOT NULL,
    `email` varchar(255) DEFAULT NULL,
    `enabled` bit(1) NOT NULL,
    `firstName` varchar(255) DEFAULT NULL,
    `isUsing2FA` bit(1) NOT NULL,
    `lastName` varchar(255) DEFAULT NULL,
    `password` varchar(60) DEFAULT NULL,
    `secret` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user_account`
  --
  
  LOCK TABLES `user_account` WRITE;
  /*!40000 ALTER TABLE `user_account` DISABLE KEYS */;
  INSERT INTO `user_account` VALUES (6,'test@test.com',_binary '','Test',_binary '\0','Test','$2a$11$/4U.e2Sy.hVOJpbBAOA.p.3zLy1ucF5EB03UOOywEjU.hN7Ka0TIm','TYG2XKNQUL462TP2'),(9,'hoa9x3@gmail.com',_binary '','Quang',_binary '','Hoa','$2a$11$AucjcnU.RYP3N90h6ukSsOYY0ie1cT6cgJBVeNgiLRHA3wqSdsEIW','7PEDIPJC2FNGSOWD'),(11,'hoa.cristiano@gmail.com',_binary '','asas',_binary '\0','asasas','$2a$11$/4U.e2Sy.hVOJpbBAOA.p.3zLy1ucF5EB03UOOywEjU.hN7Ka0TIm','KWKAIAKXV6JNLYLR');
  /*!40000 ALTER TABLE `user_account` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `users_roles`
  --
  
  DROP TABLE IF EXISTS `users_roles`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `users_roles` (
    `user_id` bigint(20) NOT NULL,
    `role_id` bigint(20) NOT NULL,
    KEY `FKa9r8g5hiyy57ts5u4tkf0lbab` (`role_id`),
    KEY `FKci4mdvg1fmo9eqmwno1y9o0fa` (`user_id`),
    CONSTRAINT `FKa9r8g5hiyy57ts5u4tkf0lbab` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`),
    CONSTRAINT `FKci4mdvg1fmo9eqmwno1y9o0fa` FOREIGN KEY (`user_id`) REFERENCES `user_account` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `users_roles`
  --
  
  LOCK TABLES `users_roles` WRITE;
  /*!40000 ALTER TABLE `users_roles` DISABLE KEYS */;
  INSERT INTO `users_roles` VALUES (9,5),(11,5),(6,4);
  /*!40000 ALTER TABLE `users_roles` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `verificationtoken`
  --
  
  DROP TABLE IF EXISTS `verificationtoken`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `verificationtoken` (
    `id` bigint(20) NOT NULL,
    `expiryDate` datetime(6) DEFAULT NULL,
    `token` varchar(255) DEFAULT NULL,
    `user_id` bigint(20) NOT NULL,
    PRIMARY KEY (`id`),
    KEY `FK_VERIFY_USER` (`user_id`),
    CONSTRAINT `FK_VERIFY_USER` FOREIGN KEY (`user_id`) REFERENCES `user_account` (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `verificationtoken`
  --
  
  LOCK TABLES `verificationtoken` WRITE;
  /*!40000 ALTER TABLE `verificationtoken` DISABLE KEYS */;
  INSERT INTO `verificationtoken` VALUES (10,'2018-10-20 09:10:59.112000','72328862-1a1b-492f-ac2b-0221049ee939',9),(12,'2018-10-20 09:13:51.207000','fac35fa4-ed18-4ca6-a080-aae36df91c8b',11);
  /*!40000 ALTER TABLE `verificationtoken` 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-10-19 11:15:33
  