-
Notifications
You must be signed in to change notification settings - Fork 172
/
wdog.sql
192 lines (181 loc) · 13.3 KB
/
wdog.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
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log` (
`id` varchar(30) NOT NULL,
`username` varchar(20) DEFAULT NULL,
`uid` varchar(30) DEFAULT NULL,
`ip` varchar(20) DEFAULT NULL,
`ajax` int(1) DEFAULT NULL,
`uri` varchar(250) DEFAULT NULL,
`params` varchar(500) DEFAULT NULL,
`http_method` varchar(20) DEFAULT NULL,
`class_method` varchar(100) DEFAULT NULL,
`action_name` varchar(30) DEFAULT NULL,
`create_date` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_resource
-- ----------------------------
DROP TABLE IF EXISTS `sys_resource`;
CREATE TABLE `sys_resource` (
`id` varchar(30) NOT NULL,
`name` varchar(50) NOT NULL,
`parent_id` varchar(30) DEFAULT NULL,
`type` int(1) NOT NULL DEFAULT '0',
`url` varchar(100) DEFAULT NULL,
`permission` varchar(50) DEFAULT NULL,
`color` varchar(10) DEFAULT NULL,
`icon` varchar(30) DEFAULT NULL,
`sort` int(11) NOT NULL DEFAULT '0',
`verification` tinyint(1) NOT NULL DEFAULT '0',
`create_date` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_resource
-- ----------------------------
INSERT INTO `sys_resource` VALUES ('1001315563194589185', '首页', '987977834901315586', '0', '/home/index', 'home_index', '#19BE6B', '', '0', '0', '2018-05-29 12:13:28');
INSERT INTO `sys_resource` VALUES ('987974185122832386', '角色添加', '987981659066376194', '1', '/system/role/add', 'system:role:add', '#19BE6B', '', '0', '1', '2018-04-22 16:39:36');
INSERT INTO `sys_resource` VALUES ('987977834901315586', '首页', null, '0', '/home', 'home', '#19BE6B', 'ios-home-outline', '-1', '1', '2018-04-22 16:54:06');
INSERT INTO `sys_resource` VALUES ('987980763175624706', '角色更新', '987981659066376194', '1', '/system/role/update', 'system:role:update', '#19BE6B', '', '0', '1', '2018-04-22 17:05:44');
INSERT INTO `sys_resource` VALUES ('987981277195968513', '系统设置', null, '0', '/system', 'system', '#19BE6B', 'ios-gear', '0', '1', '2018-04-22 17:07:46');
INSERT INTO `sys_resource` VALUES ('987981486382686210', '用户管理', '987981277195968513', '0', '/system/user', 'system:user', '#19BE6B', 'person', '0', '1', '2018-04-22 17:08:36');
INSERT INTO `sys_resource` VALUES ('987981659066376194', '角色管理', '987981277195968513', '0', '/system/role', 'system:role', '#19BE6B', 'compose', '0', '1', '2018-04-22 17:09:17');
INSERT INTO `sys_resource` VALUES ('987982017863917570', '资源管理', '987981277195968513', '0', '/system/resource', 'system:resource', '#19BE6B', 'lock-combination', '0', '1', '2018-04-22 17:10:43');
INSERT INTO `sys_resource` VALUES ('987985589477351426', '资源添加', '987982017863917570', '1', '/system/resource/add', 'system:resource:add', '#19BE6B', '', '0', '1', '2018-04-22 17:24:55');
INSERT INTO `sys_resource` VALUES ('987985700785790978', '资源更新', '987982017863917570', '1', '/system/resource/update', 'system:resource:update', '#19BE6B', '', '0', '1', '2018-04-22 17:25:21');
INSERT INTO `sys_resource` VALUES ('987985782880903170', '资源删除', '987982017863917570', '1', '/system/resource/remove', 'system:resource:remove', '#EA1A1A', '', '0', '1', '2018-04-22 17:25:41');
INSERT INTO `sys_resource` VALUES ('987985944781037570', '角色删除', '987981659066376194', '1', '/system/role/remove', 'system:role:remove', '#ED3F14', '', '0', '1', '2018-04-22 17:26:19');
INSERT INTO `sys_resource` VALUES ('987986018126831617', '用户添加', '987981486382686210', '1', '/system/user/add', 'system:user:add', '#19BE6B', '', '0', '1', '2018-04-22 17:26:37');
INSERT INTO `sys_resource` VALUES ('987986318946508801', '用户更新', '987981486382686210', '1', '/system/user/update', 'system:user:update', '#19BE6B', '', '0', '1', '2018-04-22 17:27:48');
INSERT INTO `sys_resource` VALUES ('987986542024761345', '用户删除', '987981486382686210', '1', '/system/user/remove', 'system:user:remove', '#ED3F14', '', '0', '1', '2018-04-22 17:28:42');
INSERT INTO `sys_resource` VALUES ('988254531404496898', '资源列表', '987982017863917570', '1', '/system/resource/list', 'system:resource:list', '#19BE6B', '', '0', '1', '2018-04-23 11:13:35');
INSERT INTO `sys_resource` VALUES ('988602498871316482', '角色列表', '987981659066376194', '1', '/system/role/list', 'system:role:list', '#19BE6B', '', '0', '1', '2018-04-24 10:16:17');
INSERT INTO `sys_resource` VALUES ('989417091599802370', '用户列表', '987981486382686210', '1', '/system/user/list', 'system:user:list', '#19BE6B', '', '0', '1', '2018-04-26 16:13:12');
INSERT INTO `sys_resource` VALUES ('989417919966453762', '密码重置', '987981486382686210', '1', '/system/user/resetPassword', 'system:user:resetPassword', '#19BE6B', '', '0', '1', '2018-04-26 16:16:29');
INSERT INTO `sys_resource` VALUES ('989418114355666946', '锁定用户', '987981486382686210', '1', '/system/user/lock', 'system:user:lock', '#FF9900', '', '0', '1', '2018-04-26 16:17:16');
INSERT INTO `sys_resource` VALUES ('989418202087923713', '解锁用户', '987981486382686210', '1', '/system/user/unlock', 'system:user:unlock', '#FF9900', '', '0', '1', '2018-04-26 16:17:37');
INSERT INTO `sys_resource` VALUES ('990058578210021378', '系统日志', '987981277195968513', '0', '/system/log', 'system:log', '#19BE6B', 'leaf', '0', '1', '2018-04-28 10:42:14');
INSERT INTO `sys_resource` VALUES ('990058692110540801', '日志查看', '990058578210021378', '1', '/system/log/list', 'system:log:list', '#19BE6B', '', '0', '1', '2018-04-28 10:42:41');
INSERT INTO `sys_resource` VALUES ('990058791586848769', '日志删除', '990058578210021378', '1', '/system/log/remove', 'system:log:remove', '#ED3F14', '', '0', '1', '2018-04-28 10:43:04');
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`id` varchar(30) NOT NULL,
`name` varchar(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES ('988623554205990914', '管理员');
INSERT INTO `sys_role` VALUES ('989416986389880834', '演示用户组');
INSERT INTO `sys_role` VALUES ('989419745311301633', 'test');
INSERT INTO `sys_role` VALUES ('990069503935709185', '1');
INSERT INTO `sys_role` VALUES ('990069520104751106', '2');
INSERT INTO `sys_role` VALUES ('990069540665229314', '3');
INSERT INTO `sys_role` VALUES ('990069556293206018', '4');
INSERT INTO `sys_role` VALUES ('990069578007117825', '5');
INSERT INTO `sys_role` VALUES ('990069592976588801', '6');
-- ----------------------------
-- Table structure for sys_role_resource
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_resource`;
CREATE TABLE `sys_role_resource` (
`id` varchar(30) NOT NULL,
`rid` varchar(30) NOT NULL,
`pid` varchar(30) NOT NULL,
PRIMARY KEY (`id`,`rid`,`pid`),
KEY `rid` (`rid`),
KEY `pid` (`pid`),
CONSTRAINT `sys_role_resource_ibfk_1` FOREIGN KEY (`rid`) REFERENCES `sys_role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `sys_role_resource_ibfk_2` FOREIGN KEY (`pid`) REFERENCES `sys_resource` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_role_resource
-- ----------------------------
INSERT INTO `sys_role_resource` VALUES ('999475271457943554', '988623554205990914', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('999475271541829634', '988623554205990914', '987981277195968513');
INSERT INTO `sys_role_resource` VALUES ('999475271638298626', '988623554205990914', '987981486382686210');
INSERT INTO `sys_role_resource` VALUES ('999475271751544833', '988623554205990914', '987986018126831617');
INSERT INTO `sys_role_resource` VALUES ('999475271843819521', '988623554205990914', '987986318946508801');
INSERT INTO `sys_role_resource` VALUES ('999475271961260033', '988623554205990914', '987986542024761345');
INSERT INTO `sys_role_resource` VALUES ('999475272091283457', '988623554205990914', '989417091599802370');
INSERT INTO `sys_role_resource` VALUES ('999475272271638530', '988623554205990914', '989417919966453762');
INSERT INTO `sys_role_resource` VALUES ('999475272447799298', '988623554205990914', '989418114355666946');
INSERT INTO `sys_role_resource` VALUES ('999475272552656898', '988623554205990914', '989418202087923713');
INSERT INTO `sys_role_resource` VALUES ('999475272649125890', '988623554205990914', '987981659066376194');
INSERT INTO `sys_role_resource` VALUES ('999475272758177793', '988623554205990914', '987974185122832386');
INSERT INTO `sys_role_resource` VALUES ('999475272863035393', '988623554205990914', '987980763175624706');
INSERT INTO `sys_role_resource` VALUES ('999475272976281601', '988623554205990914', '987985944781037570');
INSERT INTO `sys_role_resource` VALUES ('999475273064361986', '988623554205990914', '988602498871316482');
INSERT INTO `sys_role_resource` VALUES ('999475273185996801', '988623554205990914', '987982017863917570');
INSERT INTO `sys_role_resource` VALUES ('999475273278271490', '988623554205990914', '987985589477351426');
INSERT INTO `sys_role_resource` VALUES ('999475273391517697', '988623554205990914', '987985700785790978');
INSERT INTO `sys_role_resource` VALUES ('999475273487986690', '988623554205990914', '987985782880903170');
INSERT INTO `sys_role_resource` VALUES ('999475273601232898', '988623554205990914', '988254531404496898');
INSERT INTO `sys_role_resource` VALUES ('999475273697701889', '988623554205990914', '990058578210021378');
INSERT INTO `sys_role_resource` VALUES ('999475273882251266', '988623554205990914', '990058692110540801');
INSERT INTO `sys_role_resource` VALUES ('999475274226184193', '988623554205990914', '990058791586848769');
INSERT INTO `sys_role_resource` VALUES ('992330724542074882', '989416986389880834', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('992330724638543874', '989416986389880834', '989417091599802370');
INSERT INTO `sys_role_resource` VALUES ('992330724735012866', '989416986389880834', '987974185122832386');
INSERT INTO `sys_role_resource` VALUES ('992330724844064769', '989416986389880834', '988602498871316482');
INSERT INTO `sys_role_resource` VALUES ('992330724940533762', '989416986389880834', '988254531404496898');
INSERT INTO `sys_role_resource` VALUES ('992330725057974274', '989416986389880834', '990058692110540801');
INSERT INTO `sys_role_resource` VALUES ('989419745470685186', '989419745311301633', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069504074121218', '990069503935709185', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069520402546690', '990069520104751106', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069540816224257', '990069540665229314', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069556410646530', '990069556293206018', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069578124558338', '990069578007117825', '987977834901315586');
INSERT INTO `sys_role_resource` VALUES ('990069593127583745', '990069592976588801', '987977834901315586');
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`id` varchar(30) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(50) NOT NULL,
`age` int(11) NOT NULL,
`status` int(1) NOT NULL COMMENT '1',
`create_date` datetime NOT NULL,
PRIMARY KEY (`id`,`username`),
KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES ('1', 'admin', 'b9d11b3be25f5a1a7dc8ca04cd310b28', '20', '1', '2018-04-18 15:01:04');
INSERT INTO `sys_user` VALUES ('2', 'user', '0b1010c7ce259a10d113369c2ac59d11', '20', '1', '2018-04-18 15:01:08');
INSERT INTO `sys_user` VALUES ('989416849999503361', 'test', '2da88c46ccd04fda15128b1adb82be9e', '0', '1', '2018-04-26 16:12:14');
INSERT INTO `sys_user` VALUES ('989423607472562177', '111222', 'b50bad818c1c68fb95581f78772ffb5a', '0', '1', '2018-04-26 16:39:05');
-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`id` varchar(30) NOT NULL,
`uid` varchar(30) NOT NULL,
`rid` varchar(30) NOT NULL,
PRIMARY KEY (`id`,`uid`,`rid`),
KEY `user_role_ibfk_2` (`uid`),
KEY `user_role_ibfk_1` (`rid`),
CONSTRAINT `sys_user_role_ibfk_1` FOREIGN KEY (`rid`) REFERENCES `sys_role` (`id`) ON UPDATE CASCADE,
CONSTRAINT `sys_user_role_ibfk_2` FOREIGN KEY (`uid`) REFERENCES `sys_user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES ('1', '1', '988623554205990914');
INSERT INTO `sys_user_role` VALUES ('989753486051151873', '2', '989416986389880834');
INSERT INTO `sys_user_role` VALUES ('989419854702944258', '989416849999503361', '989419745311301633');
INSERT INTO `sys_user_role` VALUES ('989419854874910722', '989416849999503361', '989416986389880834');
INSERT INTO `sys_user_role` VALUES ('989423607791329281', '989423607472562177', '989419745311301633');