Ravi Srinivasan
2018-09-10 41d5004b9e40b9e29b37c26cbd1c154b97e2fe7a
commit | author | age
41d500 1 -- MySQL dump 10.14  Distrib 5.5.52-MariaDB, for Linux (x86_64)
RS 2 --
3 -- Host: services    Database: todo
4 -- ------------------------------------------------------
5 -- Server version    5.5.52-MariaDB
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 USE todo;
19
20 --
21 -- Table structure for table `Email`
22 --
23
24 DROP TABLE IF EXISTS `Email`;
25 /*!40101 SET @saved_cs_client     = @@character_set_client */;
26 /*!40101 SET character_set_client = utf8 */;
27 CREATE TABLE `Email` (
28   `id` bigint(20) NOT NULL AUTO_INCREMENT,
29   `address` varchar(255) DEFAULT NULL,
30   PRIMARY KEY (`id`)
31 ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
32 /*!40101 SET character_set_client = @saved_cs_client */;
33
34 --
35 -- Dumping data for table `Email`
36 --
37
38 LOCK TABLES `Email` WRITE;
39 /*!40000 ALTER TABLE `Email` DISABLE KEYS */;
40 INSERT INTO `Email` VALUES (1,'development@example.com'),(2,'admin@example.com'),(3,'sales@example.com'),(4,'research@example.com'),(5,'ceo@example.com'),(6,'problems@example.com'),(7,'help-desk@example.com'),(8,'hr@example.com'),(9,'supplies@example.com');
41 /*!40000 ALTER TABLE `Email` ENABLE KEYS */;
42 UNLOCK TABLES;
43
44 --
45 -- Table structure for table `User`
46 --
47
48 DROP TABLE IF EXISTS `User`;
49 /*!40101 SET @saved_cs_client     = @@character_set_client */;
50 /*!40101 SET character_set_client = utf8 */;
51 CREATE TABLE `User` (
52   `id` bigint(20) NOT NULL AUTO_INCREMENT,
53   `name` varchar(255) DEFAULT NULL,
54   `emailID` bigint(20) DEFAULT NULL,
55   `groupID` bigint(20) DEFAULT NULL,
56   PRIMARY KEY (`id`),
57   KEY `FK4ac5lo10mt8w444x6qyag7noi` (`emailID`),
58   KEY `FKqw2hxxa638ygi29htecfitk9j` (`groupID`),
59   CONSTRAINT `FKqw2hxxa638ygi29htecfitk9j` FOREIGN KEY (`groupID`) REFERENCES `UserGroup` (`id`),
60   CONSTRAINT `FK4ac5lo10mt8w444x6qyag7noi` FOREIGN KEY (`emailID`) REFERENCES `Email` (`id`)
61 ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
62 /*!40101 SET character_set_client = @saved_cs_client */;
63
64 --
65 -- Dumping data for table `User`
66 --
67
68 LOCK TABLES `User` WRITE;
69 /*!40000 ALTER TABLE `User` DISABLE KEYS */;
70 INSERT INTO `User` (`id`,`name`,`emailID`,`groupID`) VALUES (1,'William',1,1),(2,'Rose',2,1),(3,'Pat',3,1),(4,'Rodney',4,2),(5,'Kim',5,2),(6,'Tom',6,2),(7,'Matt',7,3),(8,'George',8,3),(9,'Jean',9,3);
71 /*!40000 ALTER TABLE `User` ENABLE KEYS */;
72 UNLOCK TABLES;
73
74 --
75 -- Table structure for table `UserGroup`
76 --
77
78 DROP TABLE IF EXISTS `UserGroup`;
79 /*!40101 SET @saved_cs_client     = @@character_set_client */;
80 /*!40101 SET character_set_client = utf8 */;
81 CREATE TABLE `UserGroup` (
82   `id` bigint(20) NOT NULL AUTO_INCREMENT,
83   `name` varchar(255) DEFAULT NULL,
84   PRIMARY KEY (`id`)
85 ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
86 /*!40101 SET character_set_client = @saved_cs_client */;
87
88 --
89 -- Dumping data for table `UserGroup`
90 --
91
92 LOCK TABLES `UserGroup` WRITE;
93 /*!40000 ALTER TABLE `UserGroup` DISABLE KEYS */;
94 INSERT INTO `UserGroup` VALUES (1,'dev'),(2,'qa'),(3,'stage');
95 /*!40000 ALTER TABLE `UserGroup` ENABLE KEYS */;
96 UNLOCK TABLES;
97 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
98
99 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
100 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
101 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
102 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
103 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
104 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
105 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
106
107 -- Dump completed on 2017-10-06  8:57:43