|
| 1 | +-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) |
| 2 | +-- |
| 3 | +-- Host: localhost Database: accounts |
| 4 | +-- ------------------------------------------------------ |
| 5 | +-- Server version 5.7.18-0ubuntu0.16.10.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 | +-- Table structure for table `role` |
| 20 | +-- |
| 21 | + |
| 22 | +DROP TABLE IF EXISTS `role`; |
| 23 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 24 | +/*!40101 SET character_set_client = utf8 */; |
| 25 | +CREATE TABLE `role` ( |
| 26 | + `id` int(11) NOT NULL AUTO_INCREMENT, |
| 27 | + `name` varchar(45) DEFAULT NULL, |
| 28 | + PRIMARY KEY (`id`) |
| 29 | +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; |
| 30 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 31 | + |
| 32 | +-- |
| 33 | +-- Dumping data for table `role` |
| 34 | +-- |
| 35 | + |
| 36 | +LOCK TABLES `role` WRITE; |
| 37 | +/*!40000 ALTER TABLE `role` DISABLE KEYS */; |
| 38 | +INSERT INTO `role` VALUES (1,'ROLE_USER'); |
| 39 | +/*!40000 ALTER TABLE `role` ENABLE KEYS */; |
| 40 | +UNLOCK TABLES; |
| 41 | + |
| 42 | +-- |
| 43 | +-- Table structure for table `user` |
| 44 | +-- |
| 45 | + |
| 46 | +DROP TABLE IF EXISTS `user`; |
| 47 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 48 | +/*!40101 SET character_set_client = utf8 */; |
| 49 | +CREATE TABLE `user` ( |
| 50 | + `id` int(11) NOT NULL AUTO_INCREMENT, |
| 51 | + `username` varchar(255) DEFAULT NULL, |
| 52 | + `userEmail` varchar(255) DEFAULT NULL, |
| 53 | + `password` varchar(255) DEFAULT NULL, |
| 54 | + PRIMARY KEY (`id`) |
| 55 | +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; |
| 56 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 57 | + |
| 58 | +-- |
| 59 | +-- Dumping data for table `user` |
| 60 | +-- |
| 61 | + |
| 62 | +LOCK TABLES `user` WRITE; |
| 63 | +/*!40000 ALTER TABLE `user` DISABLE KEYS */; |
| 64 | +INSERT INTO `user` VALUES (4,'admin_vp','admin@visualpathit.com','$2a$11$DSEIKJNrgPjG.iCYUwErvOkREtC67mqzQ.ogkZbc/KOW1OPOpZfY6'); |
| 65 | +/*!40000 ALTER TABLE `user` ENABLE KEYS */; |
| 66 | +UNLOCK TABLES; |
| 67 | + |
| 68 | +-- |
| 69 | +-- Table structure for table `user_role` |
| 70 | +-- |
| 71 | + |
| 72 | +DROP TABLE IF EXISTS `user_role`; |
| 73 | +/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 74 | +/*!40101 SET character_set_client = utf8 */; |
| 75 | +CREATE TABLE `user_role` ( |
| 76 | + `user_id` int(11) NOT NULL, |
| 77 | + `role_id` int(11) NOT NULL, |
| 78 | + PRIMARY KEY (`user_id`,`role_id`), |
| 79 | + KEY `fk_user_role_roleid_idx` (`role_id`), |
| 80 | + CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
| 81 | + CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE |
| 82 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
| 83 | +/*!40101 SET character_set_client = @saved_cs_client */; |
| 84 | + |
| 85 | +-- |
| 86 | +-- Dumping data for table `user_role` |
| 87 | +-- |
| 88 | + |
| 89 | +LOCK TABLES `user_role` WRITE; |
| 90 | +/*!40000 ALTER TABLE `user_role` DISABLE KEYS */; |
| 91 | +INSERT INTO `user_role` VALUES (4,1); |
| 92 | +/*!40000 ALTER TABLE `user_role` ENABLE KEYS */; |
| 93 | +UNLOCK TABLES; |
| 94 | +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 95 | + |
| 96 | +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
| 97 | +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
| 98 | +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
| 99 | +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
| 100 | +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
| 101 | +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
| 102 | +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
| 103 | + |
| 104 | +-- Dump completed on 2017-08-28 10:50:51 |
0 commit comments