-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline_monitor.sql
280 lines (254 loc) · 11.1 KB
/
pipeline_monitor.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
/*
Navicat MySQL Data Transfer
Source Server : 10.0.7.68
Source Server Version : 50733
Source Host : 10.0.7.68:3306
Source Database : pipeline_monitor
Target Server Type : MYSQL
Target Server Version : 50733
File Encoding : 65001
Date: 2021-12-09 15:20:56
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`pwd` varchar(100) DEFAULT NULL,
`is_super` smallint(6) DEFAULT NULL,
`role_id` int(11) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `role_id` (`role_id`),
KEY `ix_admin_add_time` (`add_time`),
CONSTRAINT `admin_ibfk_1` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of admin
-- ----------------------------
INSERT INTO `admin` VALUES ('1', 'admin', 'pbkdf2:sha256:150000$zDRyYrYG$6611d78b248957770aeb01e4188819644b1396d5b5ccf5cfc56e54306b457873', '0', '1', '2021-09-09 16:55:45');
INSERT INTO `admin` VALUES ('2', 'test', 'pbkdf2:sha256:50000$DjnMBDoo$6750e0fb05a5f81db381a1d1ca5f82c21f1474f90e9c5c45e0dfbd072ebd29a5', '1', '2', '2021-09-10 10:33:09');
-- ----------------------------
-- Table structure for adminlog
-- ----------------------------
DROP TABLE IF EXISTS `adminlog`;
CREATE TABLE `adminlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`admin_id` int(11) DEFAULT NULL,
`ip` varchar(100) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `admin_id` (`admin_id`),
KEY `ix_adminlog_add_time` (`add_time`),
CONSTRAINT `adminlog_ibfk_1` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of adminlog
-- ----------------------------
-- ----------------------------
-- Table structure for auth
-- ----------------------------
DROP TABLE IF EXISTS `auth`;
CREATE TABLE `auth` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `url` (`url`),
KEY `ix_auth_add_time` (`add_time`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of auth
-- ----------------------------
INSERT INTO `auth` VALUES ('1', '首页', '/admin/', '2021-09-10 10:36:45');
INSERT INTO `auth` VALUES ('2', '会员登录日志列表', '/admin/logs/user_log/', '2021-09-10 10:40:41');
INSERT INTO `auth` VALUES ('3', '添加视频', '/admin/video/add/', '2021-09-10 11:15:09');
INSERT INTO `auth` VALUES ('4', '视频列表', '/admin/video/list/<int:page>/', '2021-09-10 11:15:37');
INSERT INTO `auth` VALUES ('5', '操作日志列表', '/admin/logs/operate_log/', '2021-09-10 11:16:17');
INSERT INTO `auth` VALUES ('6', '管理员登录日志列表', '/admin/logs/admin_log/', '2021-09-10 11:16:53');
INSERT INTO `auth` VALUES ('7', '添加权限', '/admin/auth/add/', '2021-09-10 11:17:12');
INSERT INTO `auth` VALUES ('8', '权限列表', '/admin/auth/list/<int:page>/', '2021-09-10 11:17:35');
INSERT INTO `auth` VALUES ('9', '添加角色', '/admin/role/add/', '2021-09-10 11:18:26');
INSERT INTO `auth` VALUES ('10', '角色列表', '/admin/role/list/<int:page>/', '2021-09-10 11:18:47');
INSERT INTO `auth` VALUES ('11', '编辑视频', '/admin/video/update/<int:update_id>/', '2021-09-10 13:42:23');
INSERT INTO `auth` VALUES ('12', '编辑角色', '/admin/role/update/<int:update_id>/', '2021-09-10 13:43:02');
INSERT INTO `auth` VALUES ('13', '添加标签', '/admin/tag/add/', '2021-09-10 13:44:21');
INSERT INTO `auth` VALUES ('14', '标签列表', '/admin/tag/list/<int:page>/', '2021-09-10 13:44:40');
INSERT INTO `auth` VALUES ('15', '编辑标签', '/admin/tag/update/<int:update_id>/', '2021-09-10 13:45:18');
INSERT INTO `auth` VALUES ('16', '添加管理员', '/admin/admin/add/', '2021-09-10 14:43:08');
INSERT INTO `auth` VALUES ('17', '编辑权限', '/admin/auth/update/<int:update_id>/', '2021-09-10 15:53:20');
INSERT INTO `auth` VALUES ('18', '删除视频', '/admin/video/delete/<int:delete_id>/', '2021-09-13 09:38:24');
-- ----------------------------
-- Table structure for comment
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
`video_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `movie_id` (`video_id`),
KEY `user_id` (`user_id`),
KEY `ix_comment_add_time` (`add_time`),
CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`video_id`) REFERENCES `video` (`id`),
CONSTRAINT `comment_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of comment
-- ----------------------------
-- ----------------------------
-- Table structure for operatelog
-- ----------------------------
DROP TABLE IF EXISTS `operatelog`;
CREATE TABLE `operatelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`admin_id` int(11) DEFAULT NULL,
`ip` varchar(100) DEFAULT NULL,
`reason` varchar(600) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `admin_id` (`admin_id`),
KEY `ix_operatelog_add_time` (`add_time`),
CONSTRAINT `operatelog_ibfk_1` FOREIGN KEY (`admin_id`) REFERENCES `admin` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of operatelog
-- ----------------------------
-- ----------------------------
-- Table structure for preview
-- ----------------------------
DROP TABLE IF EXISTS `preview`;
CREATE TABLE `preview` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) DEFAULT NULL,
`logo` varchar(255) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`),
UNIQUE KEY `logo` (`logo`),
KEY `ix_preview_add_time` (`add_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of preview
-- ----------------------------
-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`auths` varchar(600) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `ix_role_add_time` (`add_time`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of role
-- ----------------------------
INSERT INTO `role` VALUES ('1', '超级管理员', '', '2021-09-09 16:55:45');
INSERT INTO `role` VALUES ('2', '普通管理员', '1,2,3,4,5,6,11,13,14,15', '2021-09-10 10:32:16');
-- ----------------------------
-- Table structure for tag
-- ----------------------------
DROP TABLE IF EXISTS `tag`;
CREATE TABLE `tag` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
KEY `ix_tag_add_time` (`add_time`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of tag
-- ----------------------------
INSERT INTO `tag` VALUES ('1', '沉积', '2021-09-10 11:33:18');
INSERT INTO `tag` VALUES ('2', '断裂', '2021-09-10 11:33:42');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`pwd` varchar(100) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`phone` varchar(11) DEFAULT NULL,
`info` text,
`face` varchar(255) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
`uuid` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `phone` (`phone`),
UNIQUE KEY `face` (`face`),
UNIQUE KEY `uuid` (`uuid`),
KEY `ix_user_add_time` (`add_time`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'test', '123456', 'test@126.com', '13655667890', null, null, '2021-09-09 17:19:51', null);
-- ----------------------------
-- Table structure for userlog
-- ----------------------------
DROP TABLE IF EXISTS `userlog`;
CREATE TABLE `userlog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`ip` varchar(100) DEFAULT NULL,
`add_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `ix_userlog_add_time` (`add_time`),
CONSTRAINT `userlog_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of userlog
-- ----------------------------
-- ----------------------------
-- Table structure for video
-- ----------------------------
DROP TABLE IF EXISTS `video`;
CREATE TABLE `video` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL COMMENT '视频标题',
`url` varchar(255) DEFAULT NULL COMMENT '视频文件保存路径',
`info` text COMMENT '视频信息',
`logo` varchar(255) DEFAULT NULL COMMENT 'logo',
`star` smallint(6) DEFAULT NULL COMMENT '视频星级',
`play_num` bigint(20) DEFAULT NULL,
`comment_num` bigint(20) DEFAULT NULL,
`tag_id` int(11) DEFAULT NULL,
`area` varchar(255) DEFAULT NULL,
`release_time` date DEFAULT NULL,
`length` varchar(100) DEFAULT NULL COMMENT '视频长度',
`add_time` datetime DEFAULT NULL COMMENT '视频添加时间',
`is_detect` char(1) NOT NULL DEFAULT '0' COMMENT '是否检测字段,默认0为未检测,1为已检测',
`save_path` varchar(255) DEFAULT NULL COMMENT '检测结果保存路径',
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`),
UNIQUE KEY `url` (`url`),
UNIQUE KEY `logo` (`logo`),
UNIQUE KEY `save_path` (`save_path`),
KEY `tag_id` (`tag_id`),
KEY `ix_movie_add_time` (`add_time`),
CONSTRAINT `video_ibfk_1` FOREIGN KEY (`tag_id`) REFERENCES `tag` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of video
-- ----------------------------
INSERT INTO `video` VALUES ('1', '黄河流域采集系统视频', '4f37d2361b09462986941bb2b510692c.mp4', 'test', '20210910170417c4cf4703a97142f48023814acd6f0294.jpg', '1', '0', '0', '2', '西安市高新区高新一路88号', '2021-09-24', '10', '2021-09-10 11:35:07', '0', null);
INSERT INTO `video` VALUES ('17', 'hello', '7a07728a56684438b06d327cdbb98e7b.mp4', 'd', 'cdf2959209a94ccfa9a97554ab39d04d.png', '1', '0', '0', '2', '西安', '2021-10-03', '2', '2021-09-13 17:13:53', '0', null);
INSERT INTO `video` VALUES ('18', '未央路12#管道', '2021-09-27/xxyyzz/81740a247729471186ea17d37cd17397.mp4', 'aaa', '086581cb74144c819eabcad599cc7028.jpg', '3', '0', '0', '1', '西安未央', '2021-09-26', '3', '2021-09-27 11:12:11', '0', 'results\\81740a247729471186ea17d37cd17397');