-
Notifications
You must be signed in to change notification settings - Fork 939
/
glzjin_1.sql
351 lines (300 loc) · 8.59 KB
/
glzjin_1.sql
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
-- phpMyAdmin SQL Dump
-- version 4.4.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: 2016-03-24 18:40:52
-- 服务器版本: 5.5.42
-- PHP Version: 5.6.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `glzjin_ss2`
--
-- --------------------------------------------------------
--
-- 表的结构 `announcement`
--
CREATE TABLE IF NOT EXISTS `announcement` (
`id` int(11) NOT NULL,
`date` datetime NOT NULL,
`content` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `invite_code`
--
CREATE TABLE IF NOT EXISTS `invite_code` (
`id` int(32) NOT NULL,
`code` varchar(128) NOT NULL,
`user` int(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 表的结构 `ss_invite_code`
--
CREATE TABLE IF NOT EXISTS `ss_invite_code` (
`id` int(11) NOT NULL,
`code` varchar(128) NOT NULL,
`user_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `ss_node`
--
CREATE TABLE IF NOT EXISTS `ss_node` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`type` int(3) NOT NULL,
`server` varchar(128) NOT NULL,
`method` varchar(64) NOT NULL,
`info` varchar(128) NOT NULL,
`status` varchar(128) NOT NULL,
`sort` int(3) NOT NULL,
`custom_method` tinyint(1) NOT NULL DEFAULT '0',
`traffic_rate` float NOT NULL DEFAULT '1',
`offset` int(11) NOT NULL DEFAULT '0',
`node_class` int(11) NOT NULL DEFAULT '0',
`node_speedlimit` int(11) NOT NULL DEFAULT '0',
`node_connector` int(11) NOT NULL DEFAULT '0',
`node_bandwidth` bigint(20) NOT NULL DEFAULT '0',
`node_bandwidth_limit` bigint(20) NOT NULL DEFAULT '0',
`node_speed_sum` bigint(20) NOT NULL DEFAULT '0',
`node_heartbeat` bigint(20) NOT NULL DEFAULT '0',
`node_ping` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- 表的结构 `ss_node_online_log`
--
CREATE TABLE IF NOT EXISTS `ss_node_online_log` (
`id` int(11) NOT NULL,
`node_id` int(11) NOT NULL,
`online_user` int(11) NOT NULL,
`log_time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `ss_password_reset`
--
CREATE TABLE IF NOT EXISTS `ss_password_reset` (
`id` int(11) NOT NULL,
`email` varchar(32) NOT NULL,
`token` varchar(128) NOT NULL,
`init_time` int(11) NOT NULL,
`expire_time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 表的结构 `ss_reset_pwd`
--
CREATE TABLE IF NOT EXISTS `ss_reset_pwd` (
`id` int(11) NOT NULL,
`init_time` int(11) NOT NULL,
`expire_time` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`uni_char` varchar(32) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 表的结构 `ss_user_admin`
--
CREATE TABLE IF NOT EXISTS `ss_user_admin` (
`id` int(11) NOT NULL,
`uid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 表的结构 `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL,
`user_name` varchar(128) CHARACTER SET utf8mb4 NOT NULL,
`email` varchar(32) NOT NULL,
`pass` varchar(64) NOT NULL,
`passwd` varchar(16) NOT NULL,
`t` int(11) NOT NULL DEFAULT '0',
`u` bigint(20) NOT NULL,
`d` bigint(20) NOT NULL,
`plan` varchar(2) CHARACTER SET utf8mb4 NOT NULL,
`transfer_enable` bigint(20) NOT NULL,
`port` int(11) NOT NULL,
`switch` tinyint(4) NOT NULL DEFAULT '1',
`enable` tinyint(4) NOT NULL DEFAULT '1',
`type` tinyint(4) NOT NULL DEFAULT '1',
`last_get_gift_time` int(11) NOT NULL DEFAULT '0',
`last_check_in_time` int(11) NOT NULL DEFAULT '0',
`last_rest_pass_time` int(11) NOT NULL DEFAULT '0',
`reg_date` datetime NOT NULL,
`invite_num` int(8) NOT NULL,
`money` decimal(12,2) NOT NULL,
`ref_by` int(11) NOT NULL DEFAULT '0',
`expire_time` int(11) NOT NULL DEFAULT '0',
`method` varchar(64) NOT NULL DEFAULT 'rc4-md5',
`is_email_verify` tinyint(4) NOT NULL DEFAULT '0',
`reg_ip` varchar(128) NOT NULL DEFAULT '127.0.0.1',
`node_class` text,
`node_speedlimit` text NOT NULL,
`node_connector` int(11) NOT NULL DEFAULT '0',
`node_speed` int(11) NOT NULL DEFAULT '0',
`node_period` bigint(20) NOT NULL DEFAULT '0',
`is_admin` int(2) NOT NULL DEFAULT '0',
`wechat` text NOT NULL,
`last_day_t` bigint(20) NOT NULL DEFAULT '0',
`sendDailyMail` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `user_token`
--
CREATE TABLE IF NOT EXISTS `user_token` (
`id` int(11) NOT NULL,
`token` varchar(256) NOT NULL,
`user_id` int(11) NOT NULL,
`create_time` int(11) NOT NULL,
`expire_time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `user_traffic_log`
--
CREATE TABLE IF NOT EXISTS `user_traffic_log` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`u` int(11) NOT NULL,
`d` int(11) NOT NULL,
`node_id` int(11) NOT NULL,
`rate` float NOT NULL,
`traffic` varchar(32) NOT NULL,
`log_time` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `announcement`
--
ALTER TABLE `announcement`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `invite_code`
--
ALTER TABLE `invite_code`
ADD PRIMARY KEY (`id`),
ADD KEY `code` (`code`);
--
-- Indexes for table `ss_invite_code`
--
ALTER TABLE `ss_invite_code`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `ss_node`
--
ALTER TABLE `ss_node`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ss_node_online_log`
--
ALTER TABLE `ss_node_online_log`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ss_password_reset`
--
ALTER TABLE `ss_password_reset`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ss_reset_pwd`
--
ALTER TABLE `ss_reset_pwd`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `ss_user_admin`
--
ALTER TABLE `ss_user_admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD KEY `user_name` (`user_name`),
ADD KEY `uid` (`id`),
ADD KEY `email` (`email`);
--
-- Indexes for table `user_token`
--
ALTER TABLE `user_token`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_traffic_log`
--
ALTER TABLE `user_traffic_log`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `announcement`
--
ALTER TABLE `announcement`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `invite_code`
--
ALTER TABLE `invite_code`
MODIFY `id` int(32) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_invite_code`
--
ALTER TABLE `ss_invite_code`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_node`
--
ALTER TABLE `ss_node`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_node_online_log`
--
ALTER TABLE `ss_node_online_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_password_reset`
--
ALTER TABLE `ss_password_reset`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_reset_pwd`
--
ALTER TABLE `ss_reset_pwd`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `ss_user_admin`
--
ALTER TABLE `ss_user_admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_token`
--
ALTER TABLE `user_token`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `user_traffic_log`
--
ALTER TABLE `user_traffic_log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;