-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslcore-schema.sql
More file actions
124 lines (110 loc) · 4.31 KB
/
slcore-schema.sql
File metadata and controls
124 lines (110 loc) · 4.31 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/*!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 `locktest`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `locktest` (
`id` int(11) NOT NULL,
`lockedby` int(11) NOT NULL DEFAULT '-1',
`lockeduntil` int(11) NOT NULL DEFAULT '0',
`lockedserial` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `masternode`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `masternode` (
`name` varchar(64) DEFAULT NULL,
`lastrun` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ping`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ping` (
`ping` int(11) NOT NULL,
PRIMARY KEY (`ping`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sessions`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sessions` (
`cookie` varchar(64) NOT NULL,
`userid` int(11) NOT NULL,
`expires` int(11) NOT NULL,
PRIMARY KEY (`cookie`),
UNIQUE KEY `cookie_UNIQUE` (`cookie`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `users`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL,
`avatarkey` varchar(64) NOT NULL,
`ssotoken` varchar(64) DEFAULT NULL,
`ssoexpires` int(11) DEFAULT NULL,
`password` varchar(128) DEFAULT NULL,
`lockedby` int(11) NOT NULL DEFAULT '-1',
`lockeduntil` int(11) NOT NULL DEFAULT '0',
`lockedserial` int(11) NOT NULL DEFAULT '0',
`developerkey` varchar(64) DEFAULT NULL,
`superadmin` tinyint(4) NOT NULL DEFAULT '0',
`email` varchar(255) DEFAULT NULL,
`newemail` varchar(255) DEFAULT NULL,
`newemailtoken` varchar(64) DEFAULT NULL,
`newemailexpires` int(11) DEFAULT '0',
`lastactive` int(11) NOT NULL,
`timezone` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`lastgphudinstance` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `userid_UNIQUE` (`id`),
UNIQUE KEY `username_UNIQUE` (`username`),
UNIQUE KEY `developerkey_UNIQUE` (`developerkey`),
UNIQUE KEY `newemailtoken_index` (`newemailtoken`),
KEY `ssotokens_index` (`ssotoken`),
KEY `avatarkey_UNIQUE` (`avatarkey`)
) ENGINE=InnoDB AUTO_INCREMENT=115953 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `schemaversions`
--
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `schemaversions` (
`name` varchar(64) NOT NULL,
`version` int(11) NOT NULL,
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 */;
insert into `schemaversions`(`name`,`version`) values('slcore',1);