This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
mysql.sql
475 lines (415 loc) · 28.6 KB
/
mysql.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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: 2018-02-04 02:54:09
-- 服务器版本: 5.7.17
-- PHP Version: 7.1.2
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 utf8mb4 */;
--
-- Database: `lite`
--
-- --------------------------------------------------------
--
-- 表的结构 `sd_callback`
--
CREATE TABLE `sd_callback` (
`id` int(11) NOT NULL,
`callback_key` text NOT NULL,
`pid` int(11) NOT NULL,
`uid` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `sd_chunks`
--
CREATE TABLE `sd_chunks` (
`id` int(11) NOT NULL,
`user` int(11) NOT NULL,
`ctx` text NOT NULL,
`time` datetime NOT NULL,
`obj_name` text NOT NULL,
`chunk_id` int(11) NOT NULL,
`sum` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `sd_corn`
--
CREATE TABLE `sd_corn` (
`id` int(11) NOT NULL,
`rank` int(11) NOT NULL,
`name` text NOT NULL,
`des` text NOT NULL,
`last_excute` int(11) NOT NULL,
`interval_s` int(11) NOT NULL,
`enable` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_corn`
--
INSERT INTO `sd_corn` (`id`, `rank`, `name`, `des`, `last_excute`, `interval_s`, `enable`) VALUES
(1, 2, 'delete_unseful_chunks', '删除分片上传产生的失效文件块', 0, 3600, 1),
(2, 1, 'delete_callback_data', '删除callback记录', 0, 86400, 1),
(3, 1, 'flush_aria2', '刷新离线下载状态', 0, 30, 1),
(4, 3, 'flush_onedrive_token', '刷新Onedrive Token', 0, 3000, 1),
(5, '2', 'delete_remote_downloader_failed_folder', '删除离线下载失败后残留的临时文件', 0, 1, 1800);
-- --------------------------------------------------------
--
-- 表的结构 `sd_files`
--
CREATE TABLE `sd_files` (
`id` int(11) NOT NULL,
`orign_name` text NOT NULL,
`pre_name` text NOT NULL,
`upload_user` int(11) NOT NULL,
`size` bigint(20) NOT NULL,
`upload_date` datetime NOT NULL,
`pic_info` text NOT NULL,
`parent_folder` int(11) NOT NULL,
`policy_id` int(11) NOT NULL,
`dir` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `sd_folders`
--
CREATE TABLE `sd_folders` (
`id` int(11) NOT NULL,
`folder_name` text NOT NULL,
`parent_folder` int(11) NOT NULL,
`position` text NOT NULL,
`owner` text NOT NULL,
`date` datetime NOT NULL,
`position_absolute` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_folders`
--
INSERT INTO `sd_folders` (`id`, `folder_name`, `parent_folder`, `position`, `owner`, `date`, `position_absolute`) VALUES
(1, '根目录', 0, '.', '1', '2018-01-30 10:13:34', '/');
-- --------------------------------------------------------
--
-- 表的结构 `sd_groups`
--
CREATE TABLE `sd_groups` (
`id` int(11) NOT NULL,
`group_name` text NOT NULL,
`policy_name` int(11) NOT NULL,
`max_storage` bigint(20) NOT NULL,
`grade_policy` text NOT NULL,
`speed` text NOT NULL,
`allow_share` tinyint(1) NOT NULL,
`color` text NOT NULL,
`policy_list` text NOT NULL,
`range_transfer` tinyint(1) NOT NULL,
`webdav` tinyint(1) NOT NULL,
`aria2` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_groups`
--
INSERT INTO `sd_groups` (`id`, `group_name`, `policy_name`, `max_storage`, `grade_policy`, `speed`, `allow_share`, `color`, `policy_list`, `range_transfer`, `webdav`,`aria2`) VALUES
(1, '管理员', 1, 1073741824, '', '', 1, 'danger', '1', 1, 1, "0,0,0"),
(2, '游客', 1, 0, '', '', 1, 'default', '1', 0, 0, "0,0,0"),
(3, '注册会员', 1, 52428800, '', '', 1, 'default', '1', 1, 1, "0,0,0");
-- --------------------------------------------------------
--
-- 表的结构 `sd_options`
--
CREATE TABLE `sd_options` (
`id` int(11) NOT NULL,
`option_name` text NOT NULL,
`option_value` text NOT NULL,
`option_type` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_options`
--
INSERT INTO `sd_options` (`id`, `option_name`, `option_value`, `option_type`) VALUES
(1, 'siteURL', 'https://cloudreve.org/', 'basic'),
(2, 'siteName', 'Cloudreve', 'basic'),
(3, 'siteStatus', 'open', 'basic'),
(4, 'regStatus', '0', 'register'),
(5, 'defaultGroup', '3', 'register'),
(6, 'siteKeywords', '网盘,网盘', 'basic'),
(7, 'siteDes', 'Cloudreve', 'basic'),
(8, 'siteTitle', '平步云端', 'basic'),
(9, 'fromName', 'Cloudreve', 'mail'),
(10, 'fromAdress', '[email protected]', 'mail'),
(11, 'smtpHost', 'smtp.mxhichina.com', 'mail'),
(12, 'smtpPort', '25', 'mail'),
(13, 'replyTo', '[email protected]', 'mail'),
(14, 'smtpUser', '[email protected]', 'mail'),
(15, 'smtpPass', '', 'mail'),
(16, 'encriptionType', 'no', 'mail'),
(22, 'maxEditSize', '100000', 'file_edit'),
(48, 'timeout', '3600', 'oss'),
(23, 'allowdVisitorDownload', 'false', 'share'),
(24, 'login_captcha', '0', 'login'),
(28, 'reg_captcha', '0', 'login'),
(29, 'email_active', '0', 'register'),
(30, 'mail_activation_template', ' <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" style=\"font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\">\r\n<head>\r\n<meta name=\"viewport\" content=\"width=device-width\" />\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\r\n<title>容量超额提醒</title>\r\n\r\n\r\n<style type=\"text/css\">\r\nimg {\r\nmax-width: 100%;\r\n}\r\nbody {\r\n-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;\r\n}\r\nbody {\r\nbackground-color: #f6f6f6;\r\n}\r\n@media only screen and (max-width: 640px) {\r\n body {\r\n padding: 0 !important;\r\n }\r\n h1 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h2 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h3 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h4 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h1 {\r\n font-size: 22px !important;\r\n }\r\n h2 {\r\n font-size: 18px !important;\r\n }\r\n h3 {\r\n font-size: 16px !important;\r\n }\r\n .container {\r\n padding: 0 !important; width: 100% !important;\r\n }\r\n .content {\r\n padding: 0 !important;\r\n }\r\n .content-wrap {\r\n padding: 10px !important;\r\n }\r\n .invoice {\r\n width: 100% !important;\r\n }\r\n}\r\n</style>\r\n</head>\r\n\r\n<body itemscope itemtype=\"http://schema.org/EmailMessage\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;\" bgcolor=\"#f6f6f6\">\r\n\r\n<table class=\"body-wrap\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;\" bgcolor=\"#f6f6f6\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;\" valign=\"top\"></td>\r\n <td class=\"container\" width=\"600\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;\" valign=\"top\">\r\n <div class=\"content\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;\">\r\n <table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;\" bgcolor=\"#fff\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"alert alert-warning\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #009688; margin: 0; padding: 20px;\" align=\"center\" bgcolor=\"#FF9F00\" valign=\"top\">\r\n 激活{siteTitle}账户\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-wrap\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;\" valign=\"top\">\r\n <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 亲爱的 <strong style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\">{userName}</strong> :\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 感谢您注册{siteTitle},请点击下方按钮完成账户激活。\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n <a href=\"{activationUrl}\" class=\"btn-primary\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2em; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; text-transform: capitalize; background-color: #009688; margin: 0; border-color: #009688; border-style: solid; border-width: 10px 20px;\">激活账户</a>\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 感谢您选择{siteTitle}。\r\n </td>\r\n </tr></table></td>\r\n </tr></table><div class=\"footer\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;\">\r\n <table width=\"100%\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"aligncenter content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;\" align=\"center\" valign=\"top\">此邮件由系统自动发送,请不要直接回复。</td>\r\n </tr></table></div></div>\r\n </td>\r\n <td style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;\" valign=\"top\"></td>\r\n </tr></table></body>\r\n</html>\r\n', 'mail_template'),
(31, 'forget_captcha', '0', 'login'),
(32, 'mail_reset_pwd_template', ' <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" style=\"font-family: \'Helvetica Neue\', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\">\r\n<head>\r\n<meta name=\"viewport\" content=\"width=device-width\" />\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\r\n<title>重设密码</title>\r\n\r\n\r\n<style type=\"text/css\">\r\nimg {\r\nmax-width: 100%;\r\n}\r\nbody {\r\n-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em;\r\n}\r\nbody {\r\nbackground-color: #f6f6f6;\r\n}\r\n@media only screen and (max-width: 640px) {\r\n body {\r\n padding: 0 !important;\r\n }\r\n h1 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h2 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h3 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h4 {\r\n font-weight: 800 !important; margin: 20px 0 5px !important;\r\n }\r\n h1 {\r\n font-size: 22px !important;\r\n }\r\n h2 {\r\n font-size: 18px !important;\r\n }\r\n h3 {\r\n font-size: 16px !important;\r\n }\r\n .container {\r\n padding: 0 !important; width: 100% !important;\r\n }\r\n .content {\r\n padding: 0 !important;\r\n }\r\n .content-wrap {\r\n padding: 10px !important;\r\n }\r\n .invoice {\r\n width: 100% !important;\r\n }\r\n}\r\n</style>\r\n</head>\r\n\r\n<body itemscope itemtype=\"http://schema.org/EmailMessage\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;\" bgcolor=\"#f6f6f6\">\r\n\r\n<table class=\"body-wrap\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;\" bgcolor=\"#f6f6f6\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;\" valign=\"top\"></td>\r\n <td class=\"container\" width=\"600\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;\" valign=\"top\">\r\n <div class=\"content\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;\">\r\n <table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;\" bgcolor=\"#fff\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"alert alert-warning\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #2196F3; margin: 0; padding: 20px;\" align=\"center\" bgcolor=\"#FF9F00\" valign=\"top\">\r\n 重设{siteTitle}密码\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-wrap\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;\" valign=\"top\">\r\n <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 亲爱的 <strong style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\">{userName}</strong> :\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 请点击下方按钮完成密码重设。如果非你本人操作,请忽略此邮件。\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n <a href=\"{resetUrl}\" class=\"btn-primary\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2em; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; text-transform: capitalize; background-color: #2196F3; margin: 0; border-color: #2196F3; border-style: solid; border-width: 10px 20px;\">重设密码</a>\r\n </td>\r\n </tr><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;\" valign=\"top\">\r\n 感谢您选择{siteTitle}。\r\n </td>\r\n </tr></table></td>\r\n </tr></table><div class=\"footer\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;\">\r\n <table width=\"100%\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><tr style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;\"><td class=\"aligncenter content-block\" style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;\" align=\"center\" valign=\"top\">此邮件由系统自动发送,请不要直接回复。</td>\r\n </tr></table></div></div>\r\n </td>\r\n <td style=\"font-family: \'Helvetica Neue\',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;\" valign=\"top\"></td>\r\n </tr></table></body>\r\n</html>\r\n', 'mail_template'),
(49, 'database_version', '5', 'version'),
(43, 'hot_share_num', '10', 'share'),
(44, 'gravatar_server', 'https://gravatar.loli.net/', 'avatar'),
(45, 'admin_color_body', 'fixed-nav sticky-footer bg-light', 'admin'),
(46, 'admin_color_nav', 'navbar navbar-expand-lg fixed-top navbar-light bg-light', 'admin'),
(47, 'js_code', '<script type=\"text/javascript\">\r\n\r\n</script>', 'basic'),
(50, 'sendfile', '0', 'download'),
(51, 'header', 'X-Sendfile', 'download'),
(52, 'aria2_tmppath', '/path/to/public/download', 'aria2'),
(53, 'aria2_token', 'your token', 'aria2'),
(54, 'aria2_rpcurl', 'http://127.0.0.1:6800/', 'aria2'),
(55, 'aria2_options', '{\"max-tries\":5}', 'aria2'),
(56, 'task_queue_token', '', 'task'),
(57, 'defaultTheme', '#3f51b5', 'basic'),
(58, 'themes', '{\"#3f51b5\":{\"palette\":{\"common\":{\"black\":\"#000\",\"white\":\"#fff\"},\"background\":{\"paper\":\"#fff\",\"default\":\"#fafafa\"},\"primary\":{\"light\":\"#7986cb\",\"main\":\"#3f51b5\",\"dark\":\"#303f9f\",\"contrastText\":\"#fff\"},\"secondary\":{\"light\":\"#ff4081\",\"main\":\"#f50057\",\"dark\":\"#c51162\",\"contrastText\":\"#fff\"},\"error\":{\"light\":\"#e57373\",\"main\":\"#f44336\",\"dark\":\"#d32f2f\",\"contrastText\":\"#fff\"},\"text\":{\"primary\":\"rgba(0, 0, 0, 0.87)\",\"secondary\":\"rgba(0, 0, 0, 0.54)\",\"disabled\":\"rgba(0, 0, 0, 0.38)\",\"hint\":\"rgba(0, 0, 0, 0.38)\"},\"explorer\":{\"filename\":\"#474849\",\"icon\":\"#8f8f8f\",\"bgSelected\":\"#D5DAF0\",\"emptyIcon\":\"#e8e8e8\"}}}}\r\n', 'basic'),
(59, 'refererCheck', 'true', 'share');
-- -------------------------------------------------------
--
-- 表的结构 `sd_policy`
--
CREATE TABLE `sd_policy` (
`id` int(11) NOT NULL,
`policy_name` text NOT NULL,
`policy_type` text NOT NULL,
`server` text NOT NULL,
`bucketname` text NOT NULL,
`bucket_private` tinyint(1) NOT NULL,
`url` text NOT NULL,
`ak` text NOT NULL,
`sk` text NOT NULL,
`op_name` text NOT NULL,
`op_pwd` text NOT NULL,
`filetype` text NOT NULL,
`mimetype` text NOT NULL,
`max_size` bigint(20) NOT NULL,
`autoname` tinyint(1) NOT NULL,
`dirrule` text NOT NULL,
`namerule` text NOT NULL,
`origin_link` tinyint(1) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_policy`
--
INSERT INTO `sd_policy` (`id`, `policy_name`, `policy_type`, `server`, `bucketname`, `bucket_private`, `url`, `ak`, `sk`, `op_name`, `op_pwd`, `filetype`, `mimetype`, `max_size`, `autoname`, `dirrule`, `namerule`, `origin_link`) VALUES
(1, '默认上传策略', 'local', '/Upload', '0', 0, 'http://cloudreve.org/public/uploads/', '0', '0', '0', '0', '[]', '0', 10485760, 1, '{date}/{uid}', '{uid}_{randomkey8}_{originname}', 0);
-- --------------------------------------------------------
--
-- 表的结构 `sd_shares`
--
CREATE TABLE `sd_shares` (
`id` int(11) NOT NULL,
`type` text NOT NULL,
`share_time` datetime NOT NULL,
`owner` int(11) NOT NULL,
`source_name` text NOT NULL,
`origin_name` text NOT NULL,
`download_num` int(11) NOT NULL,
`view_num` int(11) NOT NULL,
`source_type` text NOT NULL,
`share_key` text NOT NULL,
`share_pwd` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `sd_storage_pack`
--
CREATE TABLE `sd_storage_pack` (
`id` int(11) NOT NULL,
`p_name` text NOT NULL,
`uid` int(11) NOT NULL,
`act_time` bigint(20) NOT NULL,
`dlay_time` bigint(20) NOT NULL,
`pack_size` bigint(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `sd_users`
--
CREATE TABLE `sd_users` (
`id` int(11) NOT NULL,
`user_email` varchar(100) NOT NULL,
`user_nick` varchar(50) NOT NULL,
`user_pass` varchar(255) NOT NULL,
`user_date` timestamp NOT NULL,
`user_status` int(11) NOT NULL,
`user_group` int(11) NOT NULL,
`group_primary` int(11) NOT NULL,
`user_activation_key` varchar(255) NOT NULL,
`used_storage` bigint(20) NOT NULL,
`two_step` text NOT NULL,
`delay_time` bigint(20) NOT NULL,
`avatar` text NOT NULL,
`profile` tinyint(1) NOT NULL,
`webdav_key` text NOT NULL,
`options` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `sd_users`
--
INSERT INTO `sd_users` (`id`, `user_email`, `user_nick`, `user_pass`, `user_date`, `user_status`, `user_group`, `group_primary`, `user_activation_key`, `used_storage`, `two_step`, `delay_time`, `avatar`, `profile`, `webdav_key`) VALUES
(1, '[email protected]', 'Admin', 'd8446059f8846a2c111a7f53515665fb', '2018-02-04 12:56:38', 0, 1, 0, 'n', 0, '0', 0, 'default', 1, 'd8446059f8846a2c111a7f53515665fb');
CREATE TABLE `sd_download` (
`id` int(11) NOT NULL,
`pid` text NOT NULL,
`path_id` text NOT NULL,
`owner` int(11) NOT NULL,
`save_dir` text NOT NULL,
`status` text NOT NULL,
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`msg` text NOT NULL,
`info` text NOT NULL,
`source` text NOT NULL,
`file_index` int(11) NOT NULL,
`is_single` tinyint(1) NOT NULL,
`total_size` bigint(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
ALTER TABLE `sd_download`
ADD PRIMARY KEY (`id`);
ALTER TABLE `sd_download`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Indexes for dumped tables
--
--
-- 表的结构 `sd_task`
--
CREATE TABLE `sd_task` (
`id` int(11) NOT NULL,
`task_name` text NOT NULL,
`attr` text NOT NULL,
`type` text NOT NULL,
`status` text NOT NULL,
`uid` int(11) NOT NULL,
`addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for table `sd_callback`
--
ALTER TABLE `sd_callback`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_chunks`
--
ALTER TABLE `sd_chunks`
ADD PRIMARY KEY (`id`);
ALTER TABLE `sd_task`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_corn`
--
ALTER TABLE `sd_corn`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_files`
--
ALTER TABLE `sd_files`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_folders`
--
ALTER TABLE `sd_folders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_groups`
--
ALTER TABLE `sd_groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_options`
--
ALTER TABLE `sd_options`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_policy`
--
ALTER TABLE `sd_policy`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_shares`
--
ALTER TABLE `sd_shares`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_storage_pack`
--
ALTER TABLE `sd_storage_pack`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sd_users`
--
ALTER TABLE `sd_users`
ADD PRIMARY KEY (`id`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `sd_callback`
--
ALTER TABLE `sd_callback`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_chunks`
--
ALTER TABLE `sd_chunks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_corn`
--
ALTER TABLE `sd_corn`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- 使用表AUTO_INCREMENT `sd_files`
--
ALTER TABLE `sd_files`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_folders`
--
ALTER TABLE `sd_folders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
ALTER TABLE `sd_task`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_groups`
--
ALTER TABLE `sd_groups`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- 使用表AUTO_INCREMENT `sd_options`
--
ALTER TABLE `sd_options`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- 使用表AUTO_INCREMENT `sd_policy`
--
ALTER TABLE `sd_policy`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- 使用表AUTO_INCREMENT `sd_shares`
--
ALTER TABLE `sd_shares`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_storage_pack`
--
ALTER TABLE `sd_storage_pack`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `sd_users`
--
ALTER TABLE `sd_users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!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 */;