dp-boot-security.sql 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : mysql192.168.180.134
  4. Source Server Version : 50548
  5. Source Host : 192.168.180.134:3306
  6. Source Database : dp-boot-lte
  7. Target Server Type : MYSQL
  8. Target Server Version : 50548
  9. File Encoding : 65001
  10. Date: 2017-09-13 22:32:06
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for sys_menu
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `sys_menu`;
  17. CREATE TABLE `sys_menu` (
  18. `menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单id',
  19. `parent_id` bigint(20) DEFAULT NULL COMMENT '父菜单ID,一级菜单为0',
  20. `name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
  21. `url` varchar(200) DEFAULT NULL COMMENT '菜单URL',
  22. `perms` varchar(500) DEFAULT NULL COMMENT '授权(多个用逗号分隔,如:user:list,user:create)',
  23. `type` int(11) DEFAULT NULL COMMENT '类型 0:目录 1:菜单 2:按钮',
  24. `icon` varchar(50) DEFAULT NULL COMMENT '菜单图标',
  25. `order_num` int(11) DEFAULT NULL COMMENT '排序',
  26. `gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
  27. `gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
  28. PRIMARY KEY (`menu_id`)
  29. ) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8 COMMENT='菜单管理';
  30. -- ----------------------------
  31. -- Records of sys_menu
  32. -- ----------------------------
  33. INSERT INTO `sys_menu` VALUES ('1', '0', '系统管理', null, '', '0', 'fa fa-coffee', '0', '2017-08-09 22:49:47', '2017-09-11 17:25:22');
  34. INSERT INTO `sys_menu` VALUES ('2', '1', '系统菜单', 'base/menu/list.html', null, '1', 'fa fa-th-list', '1', '2017-08-09 22:55:15', '2017-08-17 10:00:12');
  35. INSERT INTO `sys_menu` VALUES ('3', '0', '组织机构', null, null, '0', 'fa fa-desktop', '1', '2017-08-09 23:06:55', '2017-08-17 09:54:28');
  36. INSERT INTO `sys_menu` VALUES ('4', '1', '通用字典', 'base/macro/list.html', null, '1', 'fa fa-book', '2', '2017-08-09 23:06:58', '2017-08-17 10:00:24');
  37. INSERT INTO `sys_menu` VALUES ('6', '3', '用户管理', 'base/user/list.html', '', '1', 'fa fa-user', '2', '2017-08-10 14:12:11', '2017-09-05 12:57:42');
  38. INSERT INTO `sys_menu` VALUES ('7', '3', '角色管理', 'base/role/list.html', '', '1', 'fa fa-paw', '1', '2017-08-10 14:13:19', '2017-09-05 12:57:30');
  39. INSERT INTO `sys_menu` VALUES ('11', '6', '刷新', '/sys/user/list', 'sys:user:list', '2', null, '0', '2017-08-14 10:51:05', '2017-09-05 12:47:23');
  40. INSERT INTO `sys_menu` VALUES ('12', '6', '新增', '/sys/user/save', 'sys:user:save', '2', null, '0', '2017-08-14 10:51:35', '2017-09-05 12:47:34');
  41. INSERT INTO `sys_menu` VALUES ('13', '6', '编辑', '/sys/user/update', 'sys:user:edit', '2', null, '0', '2017-08-14 10:52:06', '2017-09-05 12:47:46');
  42. INSERT INTO `sys_menu` VALUES ('14', '6', '删除', '/sys/user/remove', 'sys:user:remove', '2', null, '0', '2017-08-14 10:52:24', '2017-09-05 12:48:03');
  43. INSERT INTO `sys_menu` VALUES ('15', '7', '刷新', '/sys/role/list', 'sys:role:list', '2', null, '0', '2017-08-14 10:56:37', '2017-09-05 12:44:04');
  44. INSERT INTO `sys_menu` VALUES ('16', '7', '新增', '/sys/role/save', 'sys:role:save', '2', null, '0', '2017-08-14 10:57:02', '2017-09-05 12:44:23');
  45. INSERT INTO `sys_menu` VALUES ('17', '7', '编辑', '/sys/role/update', 'sys:role:edit', '2', null, '0', '2017-08-14 10:57:31', '2017-09-05 12:44:48');
  46. INSERT INTO `sys_menu` VALUES ('18', '7', '删除', '/sys/role/remove', 'sys:role:remove', '2', null, '0', '2017-08-14 10:57:50', '2017-09-05 12:45:02');
  47. INSERT INTO `sys_menu` VALUES ('19', '7', '操作权限', '/sys/role/authorize/opt', 'sys:role:authorizeOpt', '2', null, '0', '2017-08-14 10:58:55', '2017-09-05 12:45:29');
  48. INSERT INTO `sys_menu` VALUES ('20', '2', '刷新', '/sys/menu/list', 'sys:menu:list', '2', null, '0', '2017-08-14 10:59:32', '2017-09-05 13:06:24');
  49. INSERT INTO `sys_menu` VALUES ('21', '2', '新增', '/sys/menu/save', 'sys:menu:save', '2', null, '0', '2017-08-14 10:59:56', '2017-09-05 13:06:35');
  50. INSERT INTO `sys_menu` VALUES ('22', '2', '编辑', '/sys/menu/update', 'sys:menu:edit', '2', null, '0', '2017-08-14 11:00:26', '2017-09-05 13:06:48');
  51. INSERT INTO `sys_menu` VALUES ('23', '2', '删除', '/sys/menu/remove', 'sys:menu:remove', '2', null, '0', '2017-08-14 11:00:58', '2017-09-05 13:07:00');
  52. INSERT INTO `sys_menu` VALUES ('24', '6', '启用', '/sys/user/enable', 'sys:user:enable', '2', null, '0', '2017-08-14 17:27:18', '2017-09-05 12:48:30');
  53. INSERT INTO `sys_menu` VALUES ('25', '6', '停用', '/sys/user/disable', 'sys:user:disable', '2', null, '0', '2017-08-14 17:27:43', '2017-09-05 12:48:49');
  54. INSERT INTO `sys_menu` VALUES ('26', '6', '重置密码', '/sys/user/rest', 'sys:user:resetPassword', '2', null, '0', '2017-08-14 17:28:34', '2017-09-05 12:49:17');
  55. INSERT INTO `sys_menu` VALUES ('27', '1', '系统日志', 'base/log/list.html', null, '1', 'fa fa-warning', '3', '2017-08-14 22:11:53', '2017-08-17 09:55:19');
  56. INSERT INTO `sys_menu` VALUES ('28', '27', '刷新', '/sys/log/list', 'sys:log:list', '2', null, '0', '2017-08-14 22:30:22', '2017-09-05 13:05:24');
  57. INSERT INTO `sys_menu` VALUES ('29', '27', '删除', '/sys/log/remove', 'sys:log:remove', '2', null, '0', '2017-08-14 22:30:43', '2017-09-05 13:05:37');
  58. INSERT INTO `sys_menu` VALUES ('30', '27', '清空', '/sys/log/clear', 'sys:log:clear', '2', null, '0', '2017-08-14 22:31:02', '2017-09-05 13:05:53');
  59. INSERT INTO `sys_menu` VALUES ('32', '4', '刷新', '/sys/macro/list', 'sys:macro:list', '2', null, '0', '2017-08-15 16:55:33', '2017-09-05 13:04:00');
  60. INSERT INTO `sys_menu` VALUES ('33', '4', '新增', '/sys/macro/save', 'sys:macro:save', '2', null, '0', '2017-08-15 16:55:52', '2017-09-05 13:04:22');
  61. INSERT INTO `sys_menu` VALUES ('34', '4', '编辑', '/sys/macro/update', 'sys:macro:edit', '2', null, '0', '2017-08-15 16:56:09', '2017-09-05 13:04:36');
  62. INSERT INTO `sys_menu` VALUES ('35', '4', '删除', '/sys/macro/remove', 'sys:macro:remove', '2', null, '0', '2017-08-15 16:56:29', '2017-09-05 13:04:49');
  63. INSERT INTO `sys_menu` VALUES ('36', '3', '机构管理', 'base/org/list.html', '', '1', 'fa fa-sitemap', '0', '2017-08-17 09:57:14', '2017-09-05 12:58:53');
  64. INSERT INTO `sys_menu` VALUES ('37', '1', '行政区域', 'base/area/list.html', 'sys:area:list', '1', 'fa fa-leaf', '0', '2017-08-17 09:59:57', '2017-09-05 12:49:47');
  65. INSERT INTO `sys_menu` VALUES ('38', '37', '刷新', '/sys/area/list', 'sys:area:list', '2', null, '0', '2017-08-17 10:01:33', '2017-09-05 13:00:54');
  66. INSERT INTO `sys_menu` VALUES ('39', '37', '新增', '/sys/area/save', 'sys:area:save', '2', null, '0', '2017-08-17 10:02:16', '2017-09-05 13:01:06');
  67. INSERT INTO `sys_menu` VALUES ('40', '37', '编辑', '/sys/area/update', 'sys:area:edit', '2', null, '0', '2017-08-17 10:02:33', '2017-09-05 13:01:21');
  68. INSERT INTO `sys_menu` VALUES ('41', '37', '删除', '/sys/area/remove', 'sys:area:remove', '2', null, '0', '2017-08-17 10:02:50', '2017-09-05 13:01:32');
  69. INSERT INTO `sys_menu` VALUES ('42', '36', '刷新', '/sys/org/list', 'sys:org:list', '2', null, '0', '2017-08-17 10:03:36', '2017-09-05 11:47:37');
  70. INSERT INTO `sys_menu` VALUES ('43', '36', '新增', '/sys/org/save', 'sys:org:save', '2', null, '0', '2017-08-17 10:03:54', '2017-09-05 12:40:55');
  71. INSERT INTO `sys_menu` VALUES ('44', '36', '编辑', '/sys/org/update', 'sys:org:edit', '2', null, '0', '2017-08-17 10:04:11', '2017-09-05 12:43:06');
  72. INSERT INTO `sys_menu` VALUES ('45', '36', '删除', '/sys/org/remove', 'sys:org:remove', '2', null, '0', '2017-08-17 10:04:30', '2017-09-05 12:42:19');
  73. INSERT INTO `sys_menu` VALUES ('46', '7', '数据权限', '/sys/role/authorize/data', 'sys:role:authorizeData', '2', null, '0', '2017-08-17 13:48:11', '2017-09-05 12:45:54');
  74. INSERT INTO `sys_menu` VALUES ('47', '1', '定时任务', 'base/quartz/list.html', null, '1', 'fa fa-bell', '4', '2017-08-19 23:00:08', null);
  75. INSERT INTO `sys_menu` VALUES ('48', '47', '刷新', '/quartz/job/list', 'quartz:job:list', '2', null, '0', '2017-08-19 23:00:54', '2017-09-05 13:08:18');
  76. INSERT INTO `sys_menu` VALUES ('49', '47', '新增', '/quartz/job/save', 'quartz:job:save', '2', null, '0', '2017-08-19 23:01:29', '2017-09-05 13:08:30');
  77. INSERT INTO `sys_menu` VALUES ('50', '47', '编辑', '/quartz/job/update', 'quartz:job:edit', '2', null, '0', '2017-08-19 23:01:58', '2017-09-05 13:08:44');
  78. INSERT INTO `sys_menu` VALUES ('51', '47', '删除', '/quartz/job/remove', 'quartz:job:remove', '2', null, '0', '2017-08-19 23:02:30', '2017-09-05 13:08:57');
  79. INSERT INTO `sys_menu` VALUES ('52', '63', '启用', '/quartz/job/enable', 'quartz:job:enable', '2', null, '0', '2017-08-19 23:08:59', '2017-09-13 22:12:35');
  80. INSERT INTO `sys_menu` VALUES ('53', '63', '停用', '/quartz/job/disable', 'quartz:job:disable', '2', null, '0', '2017-08-19 23:09:31', '2017-09-13 22:12:53');
  81. INSERT INTO `sys_menu` VALUES ('54', '63', '立即执行', '/quartz/job/run', 'quartz:job:run', '2', null, '0', '2017-08-19 23:10:09', '2017-09-13 22:13:11');
  82. INSERT INTO `sys_menu` VALUES ('55', '47', '日志列表', null, 'quartz:job:log', '1', null, '0', '2017-08-19 23:10:40', '2017-09-13 22:21:12');
  83. INSERT INTO `sys_menu` VALUES ('56', '55', '刷新', '/quartz/job/log/list', 'quartz:log:list', '2', null, '0', '2017-08-21 13:25:33', '2017-09-13 22:21:27');
  84. INSERT INTO `sys_menu` VALUES ('57', '55', '删除', '/quartz/job/log/remove', 'quartz:log:remove', '2', null, '0', '2017-08-21 13:25:52', '2017-09-13 22:21:46');
  85. INSERT INTO `sys_menu` VALUES ('58', '55', '清空', '/quartz/job/log/clear', 'quartz:log:clear', '2', null, '0', '2017-08-21 13:26:11', '2017-09-13 22:22:04');
  86. INSERT INTO `sys_menu` VALUES ('59', '1', '敏捷开发', 'base/generator/list.html', null, '1', 'fa fa-archive', '5', '2017-09-05 10:49:04', null);
  87. INSERT INTO `sys_menu` VALUES ('60', '59', '刷新', '/sys/generator/list', 'sys:gen:list', '2', null, '0', '2017-09-05 10:49:25', '2017-09-05 13:07:33');
  88. INSERT INTO `sys_menu` VALUES ('61', '59', '生成代码', '/sys/generator/code', 'sys:gen:code', '2', null, '0', '2017-09-05 10:49:44', '2017-09-05 13:07:48');
  89. INSERT INTO `sys_menu` VALUES ('62', '1', '系统监控', 'druid/index.html', null, '1', 'fa fa-bug', '6', '2017-09-10 17:01:59', '2017-09-10 17:02:19');
  90. INSERT INTO `sys_menu` VALUES ('63', '47', '更多', null, 'quartz:job:more', '1', null, '0', '2017-09-13 22:11:51', '2017-09-13 22:12:12');
  91. INSERT INTO `sys_menu` VALUES ('64', '1', '接口管理', 'swagger-ui.html', null, '1', 'fa fa-support', '7', '2017-09-10 17:01:59', '2017-09-10 17:02:19');
  92. -- ----------------------------
  93. -- Table structure for sys_org
  94. -- ----------------------------
  95. DROP TABLE IF EXISTS `sys_org`;
  96. CREATE TABLE `sys_org` (
  97. `org_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '机构id',
  98. `parent_id` bigint(20) DEFAULT NULL COMMENT '上级机构ID,一级机构为0',
  99. `code` varchar(100) DEFAULT NULL COMMENT '机构编码',
  100. `name` varchar(100) DEFAULT NULL COMMENT '机构名称',
  101. `order_num` int(11) DEFAULT NULL COMMENT '排序',
  102. `status` tinyint(4) DEFAULT '1' COMMENT '可用标识 1:可用 0:不可用',
  103. `gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
  104. `gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
  105. PRIMARY KEY (`org_id`)
  106. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='机构管理';
  107. -- ----------------------------
  108. -- Records of sys_org
  109. -- ----------------------------
  110. INSERT INTO `sys_org` VALUES ('1', '0', 'js', '江苏省', '0', '1', '2017-08-17 12:03:15', '2017-08-17 17:06:08');
  111. -- ----------------------------
  112. -- Table structure for sys_role
  113. -- ----------------------------
  114. DROP TABLE IF EXISTS `sys_role`;
  115. CREATE TABLE `sys_role` (
  116. `role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色id',
  117. `org_id` bigint(255) DEFAULT NULL COMMENT '所属机构',
  118. `role_name` varchar(100) DEFAULT NULL COMMENT '角色名称',
  119. `role_sign` varchar(100) DEFAULT NULL COMMENT '角色标识',
  120. `remark` varchar(100) DEFAULT NULL COMMENT '备注',
  121. `user_id_create` bigint(255) DEFAULT NULL COMMENT '创建用户id',
  122. `gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
  123. `gmt_modified` datetime DEFAULT NULL COMMENT '创建时间',
  124. PRIMARY KEY (`role_id`)
  125. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统角色';
  126. -- ----------------------------
  127. -- Records of sys_role
  128. -- ----------------------------
  129. INSERT INTO `sys_role` VALUES ('1', '1', '超级管理员', 'admin', '【系统内置】', '2', '2017-08-12 00:43:52', '2017-09-05 14:02:04');
  130. -- ----------------------------
  131. -- Table structure for sys_role_menu
  132. -- ----------------------------
  133. DROP TABLE IF EXISTS `sys_role_menu`;
  134. CREATE TABLE `sys_role_menu` (
  135. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录id',
  136. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  137. `menu_id` bigint(20) DEFAULT NULL COMMENT '菜单ID',
  138. PRIMARY KEY (`id`)
  139. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色与菜单对应关系';
  140. -- ----------------------------
  141. -- Records of sys_role_menu
  142. -- ----------------------------
  143. INSERT INTO `sys_role_menu` VALUES (null, '1', '1');
  144. INSERT INTO `sys_role_menu` VALUES (null, '1', '2');
  145. INSERT INTO `sys_role_menu` VALUES (null, '1', '4');
  146. INSERT INTO `sys_role_menu` VALUES (null, '1', '3');
  147. INSERT INTO `sys_role_menu` VALUES (null, '1', '6');
  148. INSERT INTO `sys_role_menu` VALUES (null, '1', '7');
  149. INSERT INTO `sys_role_menu` VALUES (null, '1', '11');
  150. INSERT INTO `sys_role_menu` VALUES (null, '1', '12');
  151. INSERT INTO `sys_role_menu` VALUES (null, '1', '13');
  152. INSERT INTO `sys_role_menu` VALUES (null, '1', '14');
  153. INSERT INTO `sys_role_menu` VALUES (null, '1', '15');
  154. INSERT INTO `sys_role_menu` VALUES (null, '1', '16');
  155. INSERT INTO `sys_role_menu` VALUES (null, '1', '17');
  156. INSERT INTO `sys_role_menu` VALUES (null, '1', '18');
  157. INSERT INTO `sys_role_menu` VALUES (null, '1', '19');
  158. INSERT INTO `sys_role_menu` VALUES (null, '1', '20');
  159. INSERT INTO `sys_role_menu` VALUES (null, '1', '21');
  160. INSERT INTO `sys_role_menu` VALUES (null, '1', '22');
  161. INSERT INTO `sys_role_menu` VALUES (null, '1', '23');
  162. INSERT INTO `sys_role_menu` VALUES (null, '1', '24');
  163. INSERT INTO `sys_role_menu` VALUES (null, '1', '25');
  164. INSERT INTO `sys_role_menu` VALUES (null, '1', '26');
  165. INSERT INTO `sys_role_menu` VALUES (null, '1', '27');
  166. INSERT INTO `sys_role_menu` VALUES (null, '1', '28');
  167. INSERT INTO `sys_role_menu` VALUES (null, '1', '29');
  168. INSERT INTO `sys_role_menu` VALUES (null, '1', '30');
  169. INSERT INTO `sys_role_menu` VALUES (null, '1', '32');
  170. INSERT INTO `sys_role_menu` VALUES (null, '1', '33');
  171. INSERT INTO `sys_role_menu` VALUES (null, '1', '34');
  172. INSERT INTO `sys_role_menu` VALUES (null, '1', '35');
  173. INSERT INTO `sys_role_menu` VALUES (null, '1', '36');
  174. INSERT INTO `sys_role_menu` VALUES (null, '1', '37');
  175. INSERT INTO `sys_role_menu` VALUES (null, '1', '38');
  176. INSERT INTO `sys_role_menu` VALUES (null, '1', '39');
  177. INSERT INTO `sys_role_menu` VALUES (null, '1', '40');
  178. INSERT INTO `sys_role_menu` VALUES (null, '1', '41');
  179. INSERT INTO `sys_role_menu` VALUES (null, '1', '42');
  180. INSERT INTO `sys_role_menu` VALUES (null, '1', '43');
  181. INSERT INTO `sys_role_menu` VALUES (null, '1', '44');
  182. INSERT INTO `sys_role_menu` VALUES (null, '1', '45');
  183. INSERT INTO `sys_role_menu` VALUES (null, '1', '46');
  184. INSERT INTO `sys_role_menu` VALUES (null, '1', '47');
  185. INSERT INTO `sys_role_menu` VALUES (null, '1', '48');
  186. INSERT INTO `sys_role_menu` VALUES (null, '1', '49');
  187. INSERT INTO `sys_role_menu` VALUES (null, '1', '50');
  188. INSERT INTO `sys_role_menu` VALUES (null, '1', '51');
  189. INSERT INTO `sys_role_menu` VALUES (null, '1', '55');
  190. INSERT INTO `sys_role_menu` VALUES (null, '1', '56');
  191. INSERT INTO `sys_role_menu` VALUES (null, '1', '57');
  192. INSERT INTO `sys_role_menu` VALUES (null, '1', '58');
  193. INSERT INTO `sys_role_menu` VALUES (null, '1', '63');
  194. INSERT INTO `sys_role_menu` VALUES (null, '1', '52');
  195. INSERT INTO `sys_role_menu` VALUES (null, '1', '53');
  196. INSERT INTO `sys_role_menu` VALUES (null, '1', '54');
  197. INSERT INTO `sys_role_menu` VALUES (null, '1', '59');
  198. INSERT INTO `sys_role_menu` VALUES (null, '1', '60');
  199. INSERT INTO `sys_role_menu` VALUES (null, '1', '61');
  200. INSERT INTO `sys_role_menu` VALUES (null, '1', '62');
  201. INSERT INTO `sys_role_menu` VALUES (null, '1', '64');
  202. -- ----------------------------
  203. -- Table structure for sys_role_org
  204. -- ----------------------------
  205. DROP TABLE IF EXISTS `sys_role_org`;
  206. CREATE TABLE `sys_role_org` (
  207. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录id',
  208. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  209. `org_id` bigint(20) DEFAULT NULL COMMENT '机构ID',
  210. PRIMARY KEY (`id`)
  211. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='角色与机构对应关系';
  212. -- ----------------------------
  213. -- Records of sys_role_org
  214. -- ----------------------------
  215. INSERT INTO `sys_role_org` VALUES (null, '1', '1');
  216. -- ----------------------------
  217. -- Table structure for sys_user
  218. -- ----------------------------
  219. DROP TABLE IF EXISTS `sys_user`;
  220. CREATE TABLE `sys_user` (
  221. `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户id',
  222. `org_id` bigint(255) DEFAULT NULL COMMENT '所属机构',
  223. `username` varchar(50) DEFAULT NULL COMMENT '用户名',
  224. `password` varchar(50) DEFAULT NULL COMMENT '密码',
  225. `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
  226. `mobile` varchar(100) DEFAULT NULL COMMENT '手机号',
  227. `status` tinyint(255) DEFAULT NULL COMMENT '状态 0:禁用,1:正常',
  228. `remark` varchar(500) DEFAULT NULL COMMENT '备注',
  229. `user_id_create` bigint(255) DEFAULT NULL COMMENT '创建用户id',
  230. `gmt_create` datetime DEFAULT NULL COMMENT '创建时间',
  231. `gmt_modified` datetime DEFAULT NULL COMMENT '修改时间',
  232. PRIMARY KEY (`user_id`)
  233. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统用户';
  234. -- ----------------------------
  235. -- Records of sys_user
  236. -- ----------------------------
  237. INSERT INTO `sys_user` VALUES ('1', '1', 'admin', '33808479d49ca8a3cdc93d4f976d1e3d', 'admin@example.com', '123456', '1', null, '1', '2017-08-15 21:40:39', '2017-08-15 21:41:00');
  238. -- ----------------------------
  239. -- Table structure for sys_user_role
  240. -- ----------------------------
  241. DROP TABLE IF EXISTS `sys_user_role`;
  242. CREATE TABLE `sys_user_role` (
  243. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '记录id',
  244. `user_id` bigint(20) DEFAULT NULL COMMENT '用户ID',
  245. `role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
  246. PRIMARY KEY (`id`)
  247. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户与角色对应关系';
  248. -- ----------------------------
  249. -- Records of sys_user_role
  250. -- ----------------------------
  251. INSERT INTO `sys_user_role` VALUES (null, '1', '1');
  252. -- ----------------------------
  253. -- Table structure for sys_user_token
  254. -- ----------------------------
  255. DROP TABLE IF EXISTS `sys_user_token`;
  256. CREATE TABLE `sys_user_token` (
  257. `user_id` bigint(20) NOT NULL COMMENT '用户id',
  258. `token` varchar(100) NOT NULL COMMENT 'token',
  259. `gmt_expire` datetime DEFAULT NULL COMMENT '过期时间',
  260. `gmt_modified` datetime DEFAULT NULL COMMENT '更新时间',
  261. PRIMARY KEY (`user_id`),
  262. UNIQUE KEY `token` (`token`) USING BTREE
  263. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户Token';
  264. -- ----------------------------
  265. -- Records of sys_user_token
  266. -- ----------------------------
  267. insert into `sys_user_token`(`user_id`,`token`,`gmt_expire`,`gmt_modified`) values (1,'a3c646202882f1213b63fe74dc118e9d','2017-10-26 22:10:52','2017-10-26 10:10:52');