This repository was archived by the owner on May 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateTables.sql
More file actions
48 lines (46 loc) · 1.93 KB
/
createTables.sql
File metadata and controls
48 lines (46 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
CREATE TABLE `ApiKeys` (
`apiKeyId` int(11) NOT NULL AUTO_INCREMENT,
`accessKey` varchar(256) DEFAULT NULL,
`secret` varchar(1024) DEFAULT NULL,
`keyUri` varchar(128) DEFAULT NULL,
`label` varchar(128) DEFAULT NULL,
`note` varchar(1024) DEFAULT NULL,
`keyStatus` varchar(32) DEFAULT NULL,
`includeInEvent` tinyint(1) DEFAULT NULL,
`startDate` datetime DEFAULT NULL,
`endDate` datetime DEFAULT NULL,
`createdDate` datetime DEFAULT NULL,
`lastModifiedDate` datetime DEFAULT NULL,
`revokedDate` datetime DEFAULT NULL,
`userId` int(11) DEFAULT NULL,
PRIMARY KEY (`apiKeyId`),
UNIQUE KEY `apiKeyId_UNIQUE` (`apiKeyId`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;
CREATE TABLE `UserIdentityProviders` (
`userIdentityProviderId` int(11) NOT NULL AUTO_INCREMENT,
`identityProvider` varchar(128) DEFAULT NULL,
`providerAccountId` varchar(256) DEFAULT NULL,
`providerAccountPublicId` varchar(45) DEFAULT NULL,
`providerAccountDisplayName` varchar(45) DEFAULT NULL,
`providerAccountProfileUrl` varchar(512) DEFAULT NULL,
`lastAuthenticatedDate` datetime DEFAULT NULL,
`createdDate` datetime DEFAULT NULL,
`userId` int(11) NOT NULL,
PRIMARY KEY (`userIdentityProviderId`),
UNIQUE KEY `userIdentityProviderId_UNIQUE` (`userIdentityProviderId`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
CREATE TABLE `Users` (
`userId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(256) NOT NULL,
`email` varchar(128) NOT NULL,
`isActive` tinyint(1) unsigned zerofill NOT NULL,
`rmapAgentUri` varchar(128) DEFAULT NULL,
`authKeyUri` varchar(256) DEFAULT NULL,
`createdDate` datetime NOT NULL,
`lastAccessedDate` datetime DEFAULT NULL,
`cancellationDate` datetime DEFAULT NULL,
`rmapDiSCOUri` varchar(45) DEFAULT NULL,
`doRMapAgentSync` tinyint(1) unsigned zerofill NOT NULL,
PRIMARY KEY (`userId`),
UNIQUE KEY `userId_UNIQUE` (`userId`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1;