-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sql
227 lines (207 loc) · 15 KB
/
test.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
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50540
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 50540
File Encoding : 65001
Date: 2018-09-22 22:56:24
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `t_sys_datas`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_datas`;
CREATE TABLE `t_sys_datas` (
`id` varchar(255) COLLATE utf8_bin NOT NULL,
`file_path` varchar(255) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Records of t_sys_datas
-- ----------------------------
INSERT INTO `t_sys_datas` VALUES ('493164859534344192', 'D:/profile/57e6ed81bc836d122fcff4f86e0cebbc.jpg');
INSERT INTO `t_sys_datas` VALUES ('493191568597975040', 'D:/profile/499885e31867b77550deac0cb4596c22.jpg');
-- ----------------------------
-- Table structure for `t_sys_file`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_file`;
CREATE TABLE `t_sys_file` (
`id` varchar(255) COLLATE utf8_bin NOT NULL COMMENT '主键',
`file_name` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '图片名字',
`create_user_id` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '创建人id',
`create_user_name` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '创建人名字',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_user_id` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '修改人',
`update_user_name` varchar(255) COLLATE utf8_bin DEFAULT NULL COMMENT '修改人名字',
`update_time` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- ----------------------------
-- Records of t_sys_file
-- ----------------------------
INSERT INTO `t_sys_file` VALUES ('493105775934177280', '水电费2', '1', 'admin', '2018-09-22 17:03:25', '1', 'admin', '2018-09-22 21:01:09');
INSERT INTO `t_sys_file` VALUES ('493191574256091136', '阿达达', '1', 'admin', '2018-09-22 22:47:14', null, null, null);
-- ----------------------------
-- Table structure for `t_sys_file_data`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_file_data`;
CREATE TABLE `t_sys_file_data` (
`id` varchar(255) COLLATE utf8_bin NOT NULL,
`data_id` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`file_id` varchar(255) COLLATE utf8_bin DEFAULT '文件id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='文件数据外键绑定表';
-- ----------------------------
-- Records of t_sys_file_data
-- ----------------------------
INSERT INTO `t_sys_file_data` VALUES ('493105048578949120', '493105005788659712', '493105048578949120');
INSERT INTO `t_sys_file_data` VALUES ('493164878349991936', '493164859534344192', '493105775934177280');
INSERT INTO `t_sys_file_data` VALUES ('493191574256091136', '493191568597975040', '493191574256091136');
INSERT INTO `t_sys_file_data` VALUES ('493191574256091137', '493164859534344192', '493191574256091136');
-- ----------------------------
-- Table structure for `t_sys_permission_role`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_permission_role`;
CREATE TABLE `t_sys_permission_role` (
`id` varchar(255) NOT NULL,
`role_id` varchar(255) DEFAULT NULL COMMENT '角色id',
`permission_id` varchar(255) DEFAULT NULL COMMENT '权限id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色权限中间表';
-- ----------------------------
-- Records of t_sys_permission_role
-- ----------------------------
INSERT INTO `t_sys_permission_role` VALUES ('02ed4144-43ef-4ea6-ade1-022461c79b50', '488243256161730560', '486690002869157888');
INSERT INTO `t_sys_permission_role` VALUES ('0dbb27d2-53bf-4866-b568-28e850224394', '488243256161730560', '13');
INSERT INTO `t_sys_permission_role` VALUES ('18d78238-7c4f-4b52-9f16-e76b2ea24aeb', '488289006124007424', '333');
INSERT INTO `t_sys_permission_role` VALUES ('1a30e084-b51d-4d66-949c-46d401d2ef12', '488243256161730560', '6');
INSERT INTO `t_sys_permission_role` VALUES ('287460a3-f7dc-4f67-a370-54df839b46bb', '488289006124007424', '15');
INSERT INTO `t_sys_permission_role` VALUES ('2b0946a6-ffe7-492d-9b4f-4005d1dfb70d', '488289006124007424', '111');
INSERT INTO `t_sys_permission_role` VALUES ('30704f4e-b6cf-4010-86fc-0bf356c27fa8', '488289006124007424', '10');
INSERT INTO `t_sys_permission_role` VALUES ('378edca7-b8cd-4741-af44-55fe2b83dd17', '488289006124007424', '1');
INSERT INTO `t_sys_permission_role` VALUES ('4593aaae-42e7-4877-ac9a-939e80e37d05', '488289006124007424', '4');
INSERT INTO `t_sys_permission_role` VALUES ('46d69fc3-1a6b-4ee2-9caf-f20e413dbfbf', '488243256161730560', '19');
INSERT INTO `t_sys_permission_role` VALUES ('49a27792-9b9d-4609-9c46-da7a3240e0ac', '488243256161730560', '333');
INSERT INTO `t_sys_permission_role` VALUES ('4a4d3946-06c1-4d41-b64d-c411c8dc00c1', '488243256161730560', '21');
INSERT INTO `t_sys_permission_role` VALUES ('53c16a7d-e2c2-4d37-a701-322663b7aabf', '488243256161730560', '7');
INSERT INTO `t_sys_permission_role` VALUES ('5641daaf-b924-43b2-8326-60ea98c7fcfd', '488243256161730560', '20');
INSERT INTO `t_sys_permission_role` VALUES ('5e15945e-408e-4be6-968e-5b806c6af7ce', '488243256161730560', '222');
INSERT INTO `t_sys_permission_role` VALUES ('708e1b44-1ee1-41ad-89cb-5f9fe100e2b8', '488243256161730560', '9');
INSERT INTO `t_sys_permission_role` VALUES ('7519de1b-10fb-4661-a722-7047a881e20b', '488243256161730560', '12');
INSERT INTO `t_sys_permission_role` VALUES ('78cf4214-7496-4a22-b76d-91fc8d77f3a5', '488243256161730560', '111');
INSERT INTO `t_sys_permission_role` VALUES ('900af71e-0c48-4ad3-a5e2-8987a4283e0a', '488243256161730560', '15');
INSERT INTO `t_sys_permission_role` VALUES ('a59df0b4-679b-4221-aac8-ad7a11daed2b', '488243256161730560', '16');
INSERT INTO `t_sys_permission_role` VALUES ('a931f970-2a69-42d9-a426-0a97c4977147', '488289006124007424', '9');
INSERT INTO `t_sys_permission_role` VALUES ('a9e1a992-dec9-4657-860f-1a9558d4ba4f', '488305788310257664', '486690002869157888');
INSERT INTO `t_sys_permission_role` VALUES ('aa74f81e-2369-4504-99e2-d1d97e8b3b2e', '488243256161730560', '17');
INSERT INTO `t_sys_permission_role` VALUES ('adb40241-1a11-4daf-b40c-827c65947284', '488243256161730560', '23');
INSERT INTO `t_sys_permission_role` VALUES ('b0585d1e-6b3a-4aec-b92c-0251b881db1b', '488243256161730560', '22');
INSERT INTO `t_sys_permission_role` VALUES ('b4d1434a-bcce-46de-b54d-cc1ea973023f', '488243256161730560', '1');
INSERT INTO `t_sys_permission_role` VALUES ('bf4737ca-ecd8-4fed-a108-ab6b3d194ede', '488243256161730560', '10');
INSERT INTO `t_sys_permission_role` VALUES ('c5c998d0-aa42-4106-af58-2f50d0afe03c', '488289006124007424', '5');
INSERT INTO `t_sys_permission_role` VALUES ('d30cadde-471e-4d1d-9264-5ebdb6202f9b', '488243256161730560', '5');
INSERT INTO `t_sys_permission_role` VALUES ('e2f6961c-047d-42fa-9713-87a70c621987', '488243256161730560', '14');
INSERT INTO `t_sys_permission_role` VALUES ('e6d33929-1c05-4c54-b594-2ba0ab7312fb', '488289006124007424', '14');
INSERT INTO `t_sys_permission_role` VALUES ('e9b5074e-57a6-4cb5-99b0-552ec77d00e6', '488243256161730560', '18');
INSERT INTO `t_sys_permission_role` VALUES ('ee5a9367-0ded-40cb-9cd1-51f90cc33bee', '488243256161730560', '4');
INSERT INTO `t_sys_permission_role` VALUES ('efe5ebe3-f73a-4faa-8767-f8e0ff5d6794', '488243256161730560', '11');
INSERT INTO `t_sys_permission_role` VALUES ('f21d08ef-2c06-4c46-a094-7c9d4fe8bf1c', '488243256161730560', '8');
INSERT INTO `t_sys_permission_role` VALUES ('f82d4177-b5cc-435c-a41a-ff9fb53ff2d7', '488243256161730560', '444');
INSERT INTO `t_sys_permission_role` VALUES ('fe03a878-8400-4b5b-8829-a990b14cb3f2', '488289006124007424', '222');
-- ----------------------------
-- Table structure for `t_sys_premission`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_premission`;
CREATE TABLE `t_sys_premission` (
`id` varchar(255) NOT NULL COMMENT 'id',
`name` varchar(255) DEFAULT NULL COMMENT '权限名称',
`descripion` varchar(255) DEFAULT NULL COMMENT '权限描述',
`url` varchar(255) DEFAULT NULL COMMENT '授权链接',
`pid` varchar(255) DEFAULT NULL COMMENT '父节点id',
`perms` varchar(255) DEFAULT NULL COMMENT '权限标识',
`type` int(11) DEFAULT NULL COMMENT '类型 0:目录 1:菜单 2:按钮',
`icon` varchar(255) DEFAULT NULL COMMENT '菜单图标',
`order_num` int(11) DEFAULT NULL COMMENT '排序',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='权限表';
-- ----------------------------
-- Records of t_sys_premission
-- ----------------------------
INSERT INTO `t_sys_premission` VALUES ('1', '首页', '首页', null, '0', null, '0', 'fa fa-home', '1');
INSERT INTO `t_sys_premission` VALUES ('10', '角色集合', '角色集合', '/RoleController/list', '9', 'system:role:list', '2', '', null);
INSERT INTO `t_sys_premission` VALUES ('11', '角色添加', '角色添加', '/RoleController/add', '9', 'system:role:add', '2', 'entypo-plus-squared', null);
INSERT INTO `t_sys_premission` VALUES ('111', '角色管理', '角色管理', null, '1', null, '0', null, null);
INSERT INTO `t_sys_premission` VALUES ('12', '角色删除', '角色删除', '/RoleController/remove', '9', 'system:role:remove', '2', 'entypo-trash', null);
INSERT INTO `t_sys_premission` VALUES ('13', '角色修改', '角色修改', '/RoleController/edit', '9', 'system:role:edit', '2', 'fa fa-wrench', null);
INSERT INTO `t_sys_premission` VALUES ('14', '权限展示', '权限展示', '/PremissionController/view', '222', 'system:premission:view', '1', 'fa fa-list-alt', null);
INSERT INTO `t_sys_premission` VALUES ('15', '权限集合', '权限集合', '/PremissionController/list', '14', 'system:premission:list', '2', '', null);
INSERT INTO `t_sys_premission` VALUES ('16', '权限添加', '权限添加', '/PremissionController/add', '14', 'system:premission:add', '2', 'entypo-plus-squared', null);
INSERT INTO `t_sys_premission` VALUES ('17', '权限删除', '权限删除', '/PremissionController/remove', '14', 'system:premission:remove', '2', 'entypo-trash', null);
INSERT INTO `t_sys_premission` VALUES ('18', '权限修改', '权限修改', '/PremissionController/edit', '14', 'system:premission:edit', '2', 'fa fa-wrench', null);
INSERT INTO `t_sys_premission` VALUES ('19', '文件展示', '文件展示', '/FileController/view', '444', 'system:file:view', '1', 'fa file-archive-o', null);
INSERT INTO `t_sys_premission` VALUES ('20', '文件添加', '文件添加', '/FileController/add', '19', 'system:file:add', '2', 'entypo-plus-squared', null);
INSERT INTO `t_sys_premission` VALUES ('21', '文件删除', '文件删除', '/FileController/remove', '19', 'system:file:remove', '2', 'entypo-trash', null);
INSERT INTO `t_sys_premission` VALUES ('22', '文件修改', '文件修改', '/FileController/edit', '19', 'system:file:edit', '2', 'fa fa-wrench', null);
INSERT INTO `t_sys_premission` VALUES ('222', '权限管理', '权限管理', null, '1', null, '0', null, null);
INSERT INTO `t_sys_premission` VALUES ('23', '文件集合', '文件集合', '/FileController/list', '19', 'system:file:list', '2', '', null);
INSERT INTO `t_sys_premission` VALUES ('333', '用户管理', '用户管理', '', '1', '', '0', null, null);
INSERT INTO `t_sys_premission` VALUES ('4', '用户展示', '用户展示', '/UserController/view', '333', 'system:user:view', '1', 'icon icon-user', '1');
INSERT INTO `t_sys_premission` VALUES ('444', '文件管理', '文件管理', null, '1', null, '0', null, null);
INSERT INTO `t_sys_premission` VALUES ('486690002869157888', '用户密码修改', '用户密码修改', '/UserController/editPwd', '4', 'system:user:editPwd', '2', 'entypo-tools', '3');
INSERT INTO `t_sys_premission` VALUES ('5', '用户集合', '用户集合', '/UserController/list', '4', 'system:user:list', '2', '', null);
INSERT INTO `t_sys_premission` VALUES ('6', '用户添加', '用户添加', '/UserController/add', '4', 'system:user:add', '2', 'entypo-plus-squared', null);
INSERT INTO `t_sys_premission` VALUES ('7', '用户删除', '用户删除', '/UserController/remove', '4', 'system:user:remove', '2', 'entypo-trash', null);
INSERT INTO `t_sys_premission` VALUES ('8', '用户修改', '用户修改', '/UserController/edit', '4', 'system:user:edit', '2', 'fa fa-wrench', null);
INSERT INTO `t_sys_premission` VALUES ('9', '角色展示', '角色展示', '/RoleController/view', '111', 'system:role:view', '1', 'fa fa-list-alt', null);
-- ----------------------------
-- Table structure for `t_sys_role`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_role`;
CREATE TABLE `t_sys_role` (
`id` varchar(255) NOT NULL COMMENT 'id',
`name` varchar(255) DEFAULT NULL COMMENT '角色名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色表';
-- ----------------------------
-- Records of t_sys_role
-- ----------------------------
INSERT INTO `t_sys_role` VALUES ('488243256161730560', '管理员');
INSERT INTO `t_sys_role` VALUES ('488289006124007424', '用户');
INSERT INTO `t_sys_role` VALUES ('488305788310257664', '能修改用户密码角色');
-- ----------------------------
-- Table structure for `t_sys_role_user`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_role_user`;
CREATE TABLE `t_sys_role_user` (
`id` varchar(255) NOT NULL,
`sys_user_id` varchar(255) DEFAULT NULL COMMENT '用户id',
`sys_role_id` varchar(255) DEFAULT NULL COMMENT '角色id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户角色中间表';
-- ----------------------------
-- Records of t_sys_role_user
-- ----------------------------
INSERT INTO `t_sys_role_user` VALUES ('2', '2', '2');
INSERT INTO `t_sys_role_user` VALUES ('488203259031322624', '487424004592762880', '488203230455529472');
INSERT INTO `t_sys_role_user` VALUES ('488243438727200768', '1', '488243256161730560');
INSERT INTO `t_sys_role_user` VALUES ('488305827225010176', '488294747442511872', '488289006124007424');
INSERT INTO `t_sys_role_user` VALUES ('488305827485057024', '488294747442511872', '488305788310257664');
INSERT INTO `t_sys_role_user` VALUES ('488857903675998208', '488857903675998208', '488289006124007424');
-- ----------------------------
-- Table structure for `t_sys_user`
-- ----------------------------
DROP TABLE IF EXISTS `t_sys_user`;
CREATE TABLE `t_sys_user` (
`id` varchar(255) COLLATE utf8_bin NOT NULL,
`username` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户账号',
`password` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '用户密码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='用户表';
-- ----------------------------
-- Records of t_sys_user
-- ----------------------------
INSERT INTO `t_sys_user` VALUES ('1', 'admin', '21232f297a57a5a743894a0e4a801fc3');
INSERT INTO `t_sys_user` VALUES ('488294747442511872', 'fuce', 'e10adc3949ba59abbe56e057f20f883e');