灵活用工后台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

779 wiersze
61 KiB

  1. USE pigxx;
  2. SET NAMES utf8mb4;
  3. SET FOREIGN_KEY_CHECKS = 0;
  4. -- ----------------------------
  5. -- Table structure for sys_dept
  6. -- ----------------------------
  7. DROP TABLE IF EXISTS `sys_dept`;
  8. CREATE TABLE `sys_dept` (
  9. `dept_id` int(20) NOT NULL AUTO_INCREMENT,
  10. `name` varchar(50) DEFAULT NULL,
  11. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  12. `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  13. `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  14. `del_flag` char(1) DEFAULT '0',
  15. `parent_id` int(11) DEFAULT NULL,
  16. `tenant_id` int(11) DEFAULT NULL,
  17. PRIMARY KEY (`dept_id`) USING BTREE
  18. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='部门管理';
  19. -- ----------------------------
  20. -- Records of sys_dept
  21. -- ----------------------------
  22. BEGIN;
  23. INSERT INTO `sys_dept` VALUES (1, '山东', 1, '2018-01-22 19:00:23', '2019-05-18 14:56:06', '0', 0, 1);
  24. INSERT INTO `sys_dept` VALUES (2, '沙县国际', 2, '2018-01-22 19:00:38', '2019-05-18 14:12:07', '0', 0, 1);
  25. INSERT INTO `sys_dept` VALUES (3, '潍坊', 3, '2018-01-22 19:00:44', '2019-05-18 14:56:11', '0', 1, 1);
  26. INSERT INTO `sys_dept` VALUES (4, '高新', 4, '2018-01-22 19:00:52', '2019-05-18 14:56:09', '0', 3, 1);
  27. INSERT INTO `sys_dept` VALUES (5, '院校', 5, '2018-01-22 19:00:57', '2019-05-18 14:56:13', '0', 4, 1);
  28. INSERT INTO `sys_dept` VALUES (6, '潍院', 6, '2018-01-22 19:01:06', '2019-05-18 14:56:16', '1', 5, 1);
  29. INSERT INTO `sys_dept` VALUES (7, '山东沙县', 7, '2018-01-22 19:01:57', '2019-05-18 14:12:17', '0', 2, 1);
  30. INSERT INTO `sys_dept` VALUES (8, '潍坊沙县', 8, '2018-01-22 19:02:03', '2019-05-18 14:12:19', '0', 7, 1);
  31. COMMIT;
  32. -- ----------------------------
  33. -- Table structure for sys_dept_relation
  34. -- ----------------------------
  35. DROP TABLE IF EXISTS `sys_dept_relation`;
  36. CREATE TABLE `sys_dept_relation` (
  37. `ancestor` int(11) NOT NULL COMMENT '祖先节点',
  38. `descendant` int(11) NOT NULL COMMENT '后代节点',
  39. PRIMARY KEY (`ancestor`,`descendant`) USING BTREE,
  40. KEY `idx1` (`ancestor`) USING BTREE,
  41. KEY `idx2` (`descendant`) USING BTREE
  42. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门关系表';
  43. -- ----------------------------
  44. -- Records of sys_dept_relation
  45. -- ----------------------------
  46. BEGIN;
  47. INSERT INTO `sys_dept_relation` VALUES (1, 1);
  48. INSERT INTO `sys_dept_relation` VALUES (1, 3);
  49. INSERT INTO `sys_dept_relation` VALUES (1, 4);
  50. INSERT INTO `sys_dept_relation` VALUES (1, 5);
  51. INSERT INTO `sys_dept_relation` VALUES (2, 2);
  52. INSERT INTO `sys_dept_relation` VALUES (2, 7);
  53. INSERT INTO `sys_dept_relation` VALUES (2, 8);
  54. INSERT INTO `sys_dept_relation` VALUES (2, 11);
  55. INSERT INTO `sys_dept_relation` VALUES (2, 12);
  56. INSERT INTO `sys_dept_relation` VALUES (3, 3);
  57. INSERT INTO `sys_dept_relation` VALUES (3, 4);
  58. INSERT INTO `sys_dept_relation` VALUES (3, 5);
  59. INSERT INTO `sys_dept_relation` VALUES (4, 4);
  60. INSERT INTO `sys_dept_relation` VALUES (4, 5);
  61. INSERT INTO `sys_dept_relation` VALUES (5, 5);
  62. INSERT INTO `sys_dept_relation` VALUES (7, 7);
  63. INSERT INTO `sys_dept_relation` VALUES (7, 8);
  64. INSERT INTO `sys_dept_relation` VALUES (7, 11);
  65. INSERT INTO `sys_dept_relation` VALUES (7, 12);
  66. INSERT INTO `sys_dept_relation` VALUES (8, 8);
  67. COMMIT;
  68. -- ----------------------------
  69. -- Table structure for sys_dict
  70. -- ----------------------------
  71. DROP TABLE IF EXISTS `sys_dict`;
  72. CREATE TABLE `sys_dict` (
  73. `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号',
  74. `type` varchar(100) DEFAULT NULL,
  75. `description` varchar(100) DEFAULT NULL,
  76. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  77. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  78. `remarks` varchar(255) DEFAULT NULL,
  79. `system` char(1) DEFAULT '0',
  80. `del_flag` char(1) DEFAULT '0',
  81. `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户',
  82. PRIMARY KEY (`id`) USING BTREE,
  83. KEY `sys_dict_del_flag` (`del_flag`) USING BTREE
  84. ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COMMENT='字典表';
  85. -- ----------------------------
  86. -- Records of sys_dict
  87. -- ----------------------------
  88. BEGIN;
  89. INSERT INTO `sys_dict` VALUES (1, 'log_type', '日志类型', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', 1);
  90. INSERT INTO `sys_dict` VALUES (2, 'social_type', '社交登录', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', 1);
  91. INSERT INTO `sys_dict` VALUES (3, 'leave_status', '请假状态', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '未提交、审批中、完成、驳回', '1', '0', 1);
  92. INSERT INTO `sys_dict` VALUES (4, 'job_type', '定时任务类型', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', 1);
  93. INSERT INTO `sys_dict` VALUES (5, 'job_status', '定时任务状态', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', 1);
  94. INSERT INTO `sys_dict` VALUES (6, 'job_execute_status', '定时任务执行状态', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', 1);
  95. INSERT INTO `sys_dict` VALUES (7, 'misfire_policy', '定时任务错失执行策略', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', 1);
  96. INSERT INTO `sys_dict` VALUES (8, 'gender', '性别', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', 1);
  97. INSERT INTO `sys_dict` VALUES (9, 'subscribe', '订阅状态', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', 1);
  98. INSERT INTO `sys_dict` VALUES (10, 'response_type', '回复', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', 1);
  99. INSERT INTO `sys_dict` VALUES (11, 'param_type', '参数配置', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', 1);
  100. INSERT INTO `sys_dict` VALUES (12, 'status_type', '租户状态', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', 1);
  101. INSERT INTO `sys_dict` VALUES (13, 'dict_type', '字典类型', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', 1);
  102. INSERT INTO `sys_dict` VALUES (14, 'channel_status', '支付渠道状态', '2019-05-30 16:14:43', '2019-05-30 16:14:43', '支付渠道状态(0-正常,1-冻结)', '1', '0', 1);
  103. INSERT INTO `sys_dict` VALUES (15, 'channel_id', '渠道编码ID', '2019-05-30 18:59:12', '2019-05-30 18:59:12', '不同的支付方式', '1', '0', 1);
  104. INSERT INTO `sys_dict` VALUES (16, 'order_status', '订单状态', '2019-06-27 08:17:40', '2019-06-27 08:17:40', '支付订单状态', '1', '0', 1);
  105. INSERT INTO `sys_dict` VALUES (17, 'grant_types', '授权类型', '2019-08-13 07:34:10', '2019-08-13 07:34:10', NULL, '1', '0', 1);
  106. INSERT INTO `sys_dict` VALUES (18, 'style_type', '前端风格', '2020-02-07 03:49:28', '2020-02-07 03:50:40', '0-Avue 1-element', '1', '0', 1);
  107. COMMIT;
  108. -- ----------------------------
  109. -- Table structure for sys_dict_item
  110. -- ----------------------------
  111. DROP TABLE IF EXISTS `sys_dict_item`;
  112. CREATE TABLE `sys_dict_item` (
  113. `id` int(64) NOT NULL AUTO_INCREMENT COMMENT '编号',
  114. `dict_id` int(11) NOT NULL,
  115. `value` varchar(100) DEFAULT NULL,
  116. `label` varchar(100) DEFAULT NULL,
  117. `type` varchar(100) DEFAULT NULL,
  118. `description` varchar(100) DEFAULT NULL,
  119. `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序(升序)',
  120. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  121. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  122. `remarks` varchar(255) DEFAULT NULL,
  123. `del_flag` char(1) DEFAULT '0',
  124. `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户',
  125. PRIMARY KEY (`id`) USING BTREE,
  126. KEY `sys_dict_value` (`value`) USING BTREE,
  127. KEY `sys_dict_label` (`label`) USING BTREE,
  128. KEY `sys_dict_del_flag` (`del_flag`) USING BTREE
  129. ) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb4 COMMENT='字典项';
  130. -- ----------------------------
  131. -- Records of sys_dict_item
  132. -- ----------------------------
  133. BEGIN;
  134. INSERT INTO `sys_dict_item` VALUES (1, 1, '9', '异常', 'log_type', '日志异常', 1, '2019-03-19 11:08:59', '2019-03-25 12:49:13', '', '0', 1);
  135. INSERT INTO `sys_dict_item` VALUES (2, 1, '0', '正常', 'log_type', '日志正常', 0, '2019-03-19 11:09:17', '2019-03-25 12:49:18', '', '0', 1);
  136. INSERT INTO `sys_dict_item` VALUES (3, 2, 'WX', '微信', 'social_type', '微信登录', 0, '2019-03-19 11:10:02', '2019-03-25 12:49:36', '', '0', 1);
  137. INSERT INTO `sys_dict_item` VALUES (4, 2, 'QQ', 'QQ', 'social_type', 'QQ登录', 1, '2019-03-19 11:10:14', '2019-03-25 12:49:36', '', '0', 1);
  138. INSERT INTO `sys_dict_item` VALUES (5, 3, '0', '未提交', 'leave_status', '未提交', 0, '2019-03-19 11:18:34', '2019-03-25 12:49:36', '', '0', 1);
  139. INSERT INTO `sys_dict_item` VALUES (6, 3, '1', '审批中', 'leave_status', '审批中', 1, '2019-03-19 11:18:45', '2019-03-25 12:49:36', '', '0', 1);
  140. INSERT INTO `sys_dict_item` VALUES (7, 3, '2', '完成', 'leave_status', '完成', 2, '2019-03-19 11:19:02', '2019-03-25 12:49:36', '', '0', 1);
  141. INSERT INTO `sys_dict_item` VALUES (8, 3, '9', '驳回', 'leave_status', '驳回', 9, '2019-03-19 11:19:20', '2019-03-25 12:49:36', '', '0', 1);
  142. INSERT INTO `sys_dict_item` VALUES (9, 4, '1', 'java类', 'job_type', 'java类', 1, '2019-03-19 11:22:37', '2019-03-25 12:49:36', '', '0', 1);
  143. INSERT INTO `sys_dict_item` VALUES (10, 4, '2', 'spring bean', 'job_type', 'spring bean容器实例', 2, '2019-03-19 11:23:05', '2019-03-25 12:49:36', '', '0', 1);
  144. INSERT INTO `sys_dict_item` VALUES (11, 4, '9', '其他', 'job_type', '其他类型', 9, '2019-03-19 11:23:31', '2019-03-25 12:49:36', '', '0', 1);
  145. INSERT INTO `sys_dict_item` VALUES (12, 4, '3', 'Rest 调用', 'job_type', 'Rest 调用', 3, '2019-03-19 11:23:57', '2019-03-25 12:49:36', '', '0', 1);
  146. INSERT INTO `sys_dict_item` VALUES (13, 4, '4', 'jar', 'job_type', 'jar类型', 4, '2019-03-19 11:24:20', '2019-03-25 12:49:36', '', '0', 1);
  147. INSERT INTO `sys_dict_item` VALUES (14, 5, '1', '未发布', 'job_status', '未发布', 1, '2019-03-19 11:25:18', '2019-03-25 12:49:36', '', '0', 1);
  148. INSERT INTO `sys_dict_item` VALUES (15, 5, '2', '运行中', 'job_status', '运行中', 2, '2019-03-19 11:25:31', '2019-03-25 12:49:36', '', '0', 1);
  149. INSERT INTO `sys_dict_item` VALUES (16, 5, '3', '暂停', 'job_status', '暂停', 3, '2019-03-19 11:25:42', '2019-03-25 12:49:36', '', '0', 1);
  150. INSERT INTO `sys_dict_item` VALUES (17, 6, '0', '正常', 'job_execute_status', '正常', 0, '2019-03-19 11:26:27', '2019-03-25 12:49:36', '', '0', 1);
  151. INSERT INTO `sys_dict_item` VALUES (18, 6, '1', '异常', 'job_execute_status', '异常', 1, '2019-03-19 11:26:41', '2019-03-25 12:49:36', '', '0', 1);
  152. INSERT INTO `sys_dict_item` VALUES (19, 7, '1', '错失周期立即执行', 'misfire_policy', '错失周期立即执行', 1, '2019-03-19 11:27:45', '2019-03-25 12:49:36', '', '0', 1);
  153. INSERT INTO `sys_dict_item` VALUES (20, 7, '2', '错失周期执行一次', 'misfire_policy', '错失周期执行一次', 2, '2019-03-19 11:27:57', '2019-03-25 12:49:36', '', '0', 1);
  154. INSERT INTO `sys_dict_item` VALUES (21, 7, '3', '下周期执行', 'misfire_policy', '下周期执行', 3, '2019-03-19 11:28:08', '2019-03-25 12:49:36', '', '0', 1);
  155. INSERT INTO `sys_dict_item` VALUES (22, 8, '1', '男', 'gender', '微信-男', 0, '2019-03-27 13:45:13', '2019-03-27 13:45:13', '微信-男', '0', 1);
  156. INSERT INTO `sys_dict_item` VALUES (23, 8, '2', '女', 'gender', '女-微信', 1, '2019-03-27 13:45:34', '2019-03-27 13:45:34', '女-微信', '0', 1);
  157. INSERT INTO `sys_dict_item` VALUES (24, 8, '0', '未知', 'gender', 'x性别未知', 3, '2019-03-27 13:45:57', '2019-03-27 13:45:57', 'x性别未知', '0', 1);
  158. INSERT INTO `sys_dict_item` VALUES (25, 9, '0', '未关注', 'subscribe', '公众号-未关注', 0, '2019-03-27 13:49:07', '2019-03-27 13:49:07', '公众号-未关注', '0', 1);
  159. INSERT INTO `sys_dict_item` VALUES (26, 9, '1', '已关注', 'subscribe', '公众号-已关注', 1, '2019-03-27 13:49:26', '2019-03-27 13:49:26', '公众号-已关注', '0', 1);
  160. INSERT INTO `sys_dict_item` VALUES (27, 10, '0', '未回复', 'response_type', '微信消息-未回复', 0, '2019-03-28 21:29:47', '2019-03-28 21:29:47', '微信消息-未回复', '0', 1);
  161. INSERT INTO `sys_dict_item` VALUES (28, 10, '1', '已回复', 'response_type', '微信消息-已回复', 1, '2019-03-28 21:30:08', '2019-03-28 21:30:08', '微信消息-已回复', '0', 1);
  162. INSERT INTO `sys_dict_item` VALUES (29, 11, '1', '检索', 'param_type', '检索', 0, '2019-04-29 18:22:17', '2019-04-29 18:22:17', '检索', '0', 1);
  163. INSERT INTO `sys_dict_item` VALUES (30, 11, '2', '原文', 'param_type', '原文', 0, '2019-04-29 18:22:27', '2019-04-29 18:22:27', '原文', '0', 1);
  164. INSERT INTO `sys_dict_item` VALUES (31, 11, '3', '报表', 'param_type', '报表', 0, '2019-04-29 18:22:36', '2019-04-29 18:22:36', '报表', '0', 1);
  165. INSERT INTO `sys_dict_item` VALUES (32, 11, '4', '安全', 'param_type', '安全', 0, '2019-04-29 18:22:46', '2019-04-29 18:22:46', '安全', '0', 1);
  166. INSERT INTO `sys_dict_item` VALUES (33, 11, '5', '文档', 'param_type', '文档', 0, '2019-04-29 18:22:56', '2019-04-29 18:22:56', '文档', '0', 1);
  167. INSERT INTO `sys_dict_item` VALUES (34, 11, '6', '消息', 'param_type', '消息', 0, '2019-04-29 18:23:05', '2019-04-29 18:23:05', '消息', '0', 1);
  168. INSERT INTO `sys_dict_item` VALUES (35, 11, '9', '其他', 'param_type', '其他', 0, '2019-04-29 18:23:16', '2019-04-29 18:23:16', '其他', '0', 1);
  169. INSERT INTO `sys_dict_item` VALUES (36, 11, '0', '默认', 'param_type', '默认', 0, '2019-04-29 18:23:30', '2019-04-29 18:23:30', '默认', '0', 1);
  170. INSERT INTO `sys_dict_item` VALUES (37, 12, '0', '正常', 'status_type', '状态正常', 0, '2019-05-15 16:31:34', '2019-05-16 22:30:46', '状态正常', '0', 1);
  171. INSERT INTO `sys_dict_item` VALUES (38, 12, '9', '冻结', 'status_type', '状态冻结', 1, '2019-05-15 16:31:56', '2019-05-16 22:30:50', '状态冻结', '0', 1);
  172. INSERT INTO `sys_dict_item` VALUES (39, 13, '1', '系统类', 'dict_type', '系统类字典', 0, '2019-05-16 14:20:40', '2019-05-16 14:20:40', '不能修改删除', '0', 1);
  173. INSERT INTO `sys_dict_item` VALUES (40, 13, '0', '业务类', 'dict_type', '业务类字典', 0, '2019-05-16 14:20:59', '2019-05-16 14:20:59', '可以修改', '0', 1);
  174. INSERT INTO `sys_dict_item` VALUES (41, 14, '0', '正常', 'channel_status', '支付渠道状态正常', 0, '2019-05-30 16:16:51', '2019-05-30 16:16:51', NULL, '0', 1);
  175. INSERT INTO `sys_dict_item` VALUES (42, 14, '1', '冻结', 'channel_status', '支付渠道冻结', 0, '2019-05-30 16:17:08', '2019-05-30 16:17:08', NULL, '0', 1);
  176. INSERT INTO `sys_dict_item` VALUES (43, 15, 'ALIPAY_WAP', '支付宝wap支付', 'channel_id', '支付宝扫码支付', 0, '2019-05-30 19:03:16', '2019-06-18 13:51:42', '支付宝wap支付', '0', 1);
  177. INSERT INTO `sys_dict_item` VALUES (44, 15, 'WEIXIN_MP', '微信公众号支付', 'channel_id', '微信公众号支付', 1, '2019-05-30 19:08:08', '2019-06-18 13:51:53', '微信公众号支付', '0', 1);
  178. INSERT INTO `sys_dict_item` VALUES (45, 16, '1', '支付成功', 'order_status', '支付成功', 1, '2019-06-27 08:18:26', '2019-06-27 08:18:26', '订单支付成功', '0', 1);
  179. INSERT INTO `sys_dict_item` VALUES (46, 16, '2', '支付完成', 'order_status', '订单支付完成', 2, '2019-06-27 08:18:44', '2019-06-27 08:18:44', '订单支付完成', '0', 1);
  180. INSERT INTO `sys_dict_item` VALUES (47, 16, '0', '待支付', 'order_status', '订单待支付', 0, '2019-06-27 08:19:02', '2019-06-27 08:19:02', '订单待支付', '0', 1);
  181. INSERT INTO `sys_dict_item` VALUES (48, 16, '-1', '支付失败', 'order_status', '订单支付失败', 3, '2019-06-27 08:19:37', '2019-06-27 08:19:37', '订单支付失败', '0', 1);
  182. INSERT INTO `sys_dict_item` VALUES (49, 2, 'GITEE', '码云', 'social_type', '码云', 2, '2019-06-28 09:59:12', '2019-06-28 09:59:12', '码云', '0', 1);
  183. INSERT INTO `sys_dict_item` VALUES (50, 2, 'OSC', '开源中国', 'social_type', '开源中国登录', 0, '2019-06-28 10:04:32', '2019-06-28 10:04:32', 'http://gitee.huaxiadaowei.com/#/authredirect', '0', 1);
  184. INSERT INTO `sys_dict_item` VALUES (51, 17, 'password', '密码模式', 'grant_types', '支持oauth密码模式', 0, '2019-08-13 07:35:28', '2019-08-13 07:35:28', NULL, '0', 1);
  185. INSERT INTO `sys_dict_item` VALUES (52, 17, 'authorization_code', '授权码模式', 'grant_types', 'oauth2 授权码模式', 1, '2019-08-13 07:36:07', '2019-08-13 07:36:07', NULL, '0', 1);
  186. INSERT INTO `sys_dict_item` VALUES (53, 17, 'client_credentials', '客户端模式', 'grant_types', 'oauth2 客户端模式', 2, '2019-08-13 07:36:30', '2019-08-13 07:36:30', NULL, '0', 1);
  187. INSERT INTO `sys_dict_item` VALUES (54, 17, 'refresh_token', '刷新模式', 'grant_types', 'oauth2 刷新token', 3, '2019-08-13 07:36:54', '2019-08-13 07:36:54', NULL, '0', 1);
  188. INSERT INTO `sys_dict_item` VALUES (55, 17, 'implicit', '简化模式', 'grant_types', 'oauth2 简化模式', 4, '2019-08-13 07:39:32', '2019-08-13 07:39:32', NULL, '0', 1);
  189. INSERT INTO `sys_dict_item` VALUES (56, 18, '0', 'Avue', 'style_type', 'Avue风格', 0, '2020-02-07 03:52:52', '2020-02-07 03:52:52', '', '0', 1);
  190. INSERT INTO `sys_dict_item` VALUES (57, 18, '1', 'element', 'style_type', 'element-ui', 1, '2020-02-07 03:53:12', '2020-02-07 03:53:12', '', '0', 1);
  191. COMMIT;
  192. -- ----------------------------
  193. -- Table structure for sys_file
  194. -- ----------------------------
  195. DROP TABLE IF EXISTS `sys_file`;
  196. CREATE TABLE `sys_file` (
  197. `id` bigint(32) NOT NULL AUTO_INCREMENT COMMENT '编号',
  198. `file_name` varchar(100) DEFAULT NULL,
  199. `bucket_name` varchar(200) DEFAULT NULL,
  200. `original` varchar(100) DEFAULT NULL,
  201. `type` varchar(50) DEFAULT NULL,
  202. `file_size` bigint(50) DEFAULT NULL COMMENT '文件大小',
  203. `create_user` varchar(32) DEFAULT NULL,
  204. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '上传时间',
  205. `update_user` varchar(32) DEFAULT NULL,
  206. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  207. `del_flag` char(1) DEFAULT '0',
  208. `tenant_id` int(11) DEFAULT NULL COMMENT '所属租户',
  209. PRIMARY KEY (`id`) USING BTREE
  210. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文件管理表';
  211. -- ----------------------------
  212. -- Table structure for sys_log
  213. -- ----------------------------
  214. DROP TABLE IF EXISTS `sys_log`;
  215. CREATE TABLE `sys_log` (
  216. `id` bigint(64) NOT NULL AUTO_INCREMENT COMMENT '编号',
  217. `type` char(1) DEFAULT '0',
  218. `title` varchar(255) DEFAULT NULL,
  219. `service_id` varchar(32) DEFAULT NULL,
  220. `create_by` varchar(255) DEFAULT NULL,
  221. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  222. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  223. `remote_addr` varchar(255) DEFAULT NULL,
  224. `user_agent` varchar(1000) DEFAULT NULL,
  225. `request_uri` varchar(255) DEFAULT NULL,
  226. `method` varchar(10) DEFAULT NULL,
  227. `params` text,
  228. `time` mediumtext CHARACTER SET utf8 COMMENT '执行时间',
  229. `del_flag` char(1) DEFAULT '0',
  230. `exception` text,
  231. `tenant_id` int(11) DEFAULT '0' COMMENT '所属租户',
  232. PRIMARY KEY (`id`) USING BTREE,
  233. KEY `sys_log_create_by` (`create_by`) USING BTREE,
  234. KEY `sys_log_request_uri` (`request_uri`) USING BTREE,
  235. KEY `sys_log_type` (`type`) USING BTREE,
  236. KEY `sys_log_create_date` (`create_time`) USING BTREE
  237. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='日志表';
  238. -- ----------------------------
  239. -- Table structure for sys_menu
  240. -- ----------------------------
  241. DROP TABLE IF EXISTS `sys_menu`;
  242. CREATE TABLE `sys_menu` (
  243. `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  244. `name` varchar(32) DEFAULT NULL,
  245. `permission` varchar(32) DEFAULT NULL,
  246. `path` varchar(128) DEFAULT NULL,
  247. `parent_id` int(11) DEFAULT NULL COMMENT '父菜单ID',
  248. `icon` varchar(32) DEFAULT NULL,
  249. `sort` int(11) DEFAULT '1' COMMENT '排序值',
  250. `keep_alive` char(1) DEFAULT '0',
  251. `type` char(1) DEFAULT '0',
  252. `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  253. `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  254. `del_flag` char(1) DEFAULT '0',
  255. `tenant_id` int(11) unsigned DEFAULT NULL COMMENT '租户ID',
  256. PRIMARY KEY (`menu_id`) USING BTREE
  257. ) ENGINE=InnoDB AUTO_INCREMENT=10013 DEFAULT CHARSET=utf8mb4 COMMENT='菜单权限表';
  258. -- ----------------------------
  259. -- Records of sys_menu
  260. -- ----------------------------
  261. BEGIN;
  262. INSERT INTO `sys_menu` VALUES (1000, '权限管理', NULL, '/user', -1, 'icon-quanxianguanli', 0, '0', '0', '2018-09-28 08:29:53', '2020-03-24 08:56:32', '0', 1);
  263. INSERT INTO `sys_menu` VALUES (1100, '用户管理', NULL, '/admin/user/index', 1000, 'icon-yonghuguanli', 1, '0', '0', '2017-11-02 22:24:37', '2020-03-24 08:56:33', '0', 1);
  264. INSERT INTO `sys_menu` VALUES (1101, '用户新增', 'sys_user_add', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:52:09', '2020-03-24 08:56:34', '0', 1);
  265. INSERT INTO `sys_menu` VALUES (1102, '用户修改', 'sys_user_edit', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:52:48', '2020-03-24 08:56:35', '0', 1);
  266. INSERT INTO `sys_menu` VALUES (1103, '用户删除', 'sys_user_del', NULL, 1100, NULL, NULL, '0', '1', '2017-11-08 09:54:01', '2020-03-24 08:56:37', '0', 1);
  267. INSERT INTO `sys_menu` VALUES (1200, '菜单管理', NULL, '/admin/menu/index', 1000, 'icon-caidanguanli', 2, '0', '0', '2017-11-08 09:57:27', '2020-03-24 08:56:38', '0', 1);
  268. INSERT INTO `sys_menu` VALUES (1201, '菜单新增', 'sys_menu_add', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:15:53', '2020-03-24 08:56:39', '0', 1);
  269. INSERT INTO `sys_menu` VALUES (1202, '菜单修改', 'sys_menu_edit', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:16:23', '2020-03-24 08:56:40', '0', 1);
  270. INSERT INTO `sys_menu` VALUES (1203, '菜单删除', 'sys_menu_del', NULL, 1200, NULL, NULL, '0', '1', '2017-11-08 10:16:43', '2020-03-24 08:56:41', '0', 1);
  271. INSERT INTO `sys_menu` VALUES (1300, '角色管理', NULL, '/admin/role/index', 1000, 'icon-jiaoseguanli', 3, '0', '0', '2017-11-08 10:13:37', '2020-03-24 08:56:42', '0', 1);
  272. INSERT INTO `sys_menu` VALUES (1301, '角色新增', 'sys_role_add', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:18', '2020-03-24 08:56:43', '0', 1);
  273. INSERT INTO `sys_menu` VALUES (1302, '角色修改', 'sys_role_edit', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:41', '2020-03-24 08:56:43', '0', 1);
  274. INSERT INTO `sys_menu` VALUES (1303, '角色删除', 'sys_role_del', NULL, 1300, NULL, NULL, '0', '1', '2017-11-08 10:14:59', '2020-03-24 08:56:45', '0', 1);
  275. INSERT INTO `sys_menu` VALUES (1304, '分配权限', 'sys_role_perm', NULL, 1300, NULL, NULL, '0', '1', '2018-04-20 07:22:55', '2020-03-24 08:56:46', '0', 1);
  276. INSERT INTO `sys_menu` VALUES (1400, '部门管理', NULL, '/admin/dept/index', 1000, 'icon-web-icon-', 4, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:56:47', '0', 1);
  277. INSERT INTO `sys_menu` VALUES (1401, '部门新增', 'sys_dept_add', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:56:16', '2020-03-24 08:56:48', '0', 1);
  278. INSERT INTO `sys_menu` VALUES (1402, '部门修改', 'sys_dept_edit', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:56:59', '2020-03-24 08:56:48', '0', 1);
  279. INSERT INTO `sys_menu` VALUES (1403, '部门删除', 'sys_dept_del', NULL, 1400, NULL, NULL, '0', '1', '2018-01-20 14:57:28', '2020-03-24 08:56:51', '0', 1);
  280. INSERT INTO `sys_menu` VALUES (1500, '租户管理', '', '/admin/tenant/index', 1000, 'icon-erji-zuhushouye', 5, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:56:49', '0', 1);
  281. INSERT INTO `sys_menu` VALUES (1501, '租户新增', 'admin_systenant_add', NULL, 1500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:56:52', '0', 1);
  282. INSERT INTO `sys_menu` VALUES (1502, '租户修改', 'admin_systenant_edit', NULL, 1500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:56:53', '0', 1);
  283. INSERT INTO `sys_menu` VALUES (1503, '租户删除', 'admin_systenant_del', NULL, 1500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:56:54', '0', 1);
  284. INSERT INTO `sys_menu` VALUES (2000, '系统管理', NULL, '/admin', -1, 'icon-xitongguanli', 1, '0', '0', '2017-11-07 20:56:00', '2020-03-24 08:56:55', '0', 1);
  285. INSERT INTO `sys_menu` VALUES (2100, '日志管理', NULL, '/admin/log/index', 2000, 'icon-rizhiguanli', 5, '0', '0', '2017-11-20 14:06:22', '2020-03-24 08:56:56', '0', 1);
  286. INSERT INTO `sys_menu` VALUES (2101, '日志删除', 'sys_log_del', NULL, 2100, NULL, NULL, '0', '1', '2017-11-20 20:37:37', '2020-03-24 08:56:58', '0', 1);
  287. INSERT INTO `sys_menu` VALUES (2200, '字典管理', NULL, '/admin/dict/index', 2000, 'icon-navicon-zdgl', 6, '0', '0', '2017-11-29 11:30:52', '2020-03-24 08:56:58', '0', 1);
  288. INSERT INTO `sys_menu` VALUES (2201, '字典删除', 'sys_dict_del', NULL, 2200, NULL, NULL, '0', '1', '2017-11-29 11:30:11', '2020-03-24 08:56:59', '0', 1);
  289. INSERT INTO `sys_menu` VALUES (2202, '字典新增', 'sys_dict_add', NULL, 2200, NULL, NULL, '0', '1', '2018-05-11 22:34:55', '2020-03-24 08:57:01', '0', 1);
  290. INSERT INTO `sys_menu` VALUES (2203, '字典修改', 'sys_dict_edit', NULL, 2200, NULL, NULL, '0', '1', '2018-05-11 22:36:03', '2020-03-24 08:57:09', '0', 1);
  291. INSERT INTO `sys_menu` VALUES (2210, '参数管理', NULL, '/admin/param/index', 2000, 'icon-canshu', 7, '1', '0', '2019-04-29 22:16:50', '2020-03-24 08:57:10', '0', 1);
  292. INSERT INTO `sys_menu` VALUES (2211, '参数新增', 'admin_syspublicparam_add', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:17:36', '2020-03-24 08:57:11', '0', 1);
  293. INSERT INTO `sys_menu` VALUES (2212, '参数删除', 'admin_syspublicparam_del', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:17:55', '2020-03-24 08:57:12', '0', 1);
  294. INSERT INTO `sys_menu` VALUES (2213, '参数编辑', 'admin_syspublicparam_edit', NULL, 2210, NULL, 1, '0', '1', '2019-04-29 22:18:14', '2020-03-24 08:57:13', '0', 1);
  295. INSERT INTO `sys_menu` VALUES (2300, '代码生成', '', '/gen/index', 10006, 'icon-weibiaoti46', 1, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:14', '0', 1);
  296. INSERT INTO `sys_menu` VALUES (2400, '终端管理', '', '/admin/client/index', 2000, 'icon-shouji', 9, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:15', '0', 1);
  297. INSERT INTO `sys_menu` VALUES (2401, '客户端新增', 'sys_client_add', NULL, 2400, '1', NULL, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:16', '0', 1);
  298. INSERT INTO `sys_menu` VALUES (2402, '客户端修改', 'sys_client_edit', NULL, 2400, NULL, NULL, '0', '1', '2018-05-15 21:37:06', '2020-03-24 08:57:16', '0', 1);
  299. INSERT INTO `sys_menu` VALUES (2403, '客户端删除', 'sys_client_del', NULL, 2400, NULL, NULL, '0', '1', '2018-05-15 21:39:16', '2020-03-24 08:57:17', '0', 1);
  300. INSERT INTO `sys_menu` VALUES (2500, '密钥管理', '', '/admin/social/index', 2000, 'icon-miyue', 10, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:18', '0', 1);
  301. INSERT INTO `sys_menu` VALUES (2501, '密钥新增', 'sys_social_details_add', NULL, 2500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:19', '0', 1);
  302. INSERT INTO `sys_menu` VALUES (2502, '密钥修改', 'sys_social_details_edit', NULL, 2500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:19', '0', 1);
  303. INSERT INTO `sys_menu` VALUES (2503, '密钥删除', 'sys_social_details_del', NULL, 2500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:23', '0', 1);
  304. INSERT INTO `sys_menu` VALUES (2600, '令牌管理', NULL, '/admin/token/index', 2000, 'icon-denglvlingpai', 11, '0', '0', '2018-09-04 05:58:41', '2020-03-24 08:57:24', '0', 1);
  305. INSERT INTO `sys_menu` VALUES (2601, '令牌删除', 'sys_token_del', NULL, 2600, NULL, 1, '0', '1', '2018-09-04 05:59:50', '2020-03-24 08:57:24', '0', 1);
  306. INSERT INTO `sys_menu` VALUES (2700, '动态路由', NULL, '/admin/route/index', 2000, 'icon-luyou', 12, '0', '0', '2018-09-04 05:58:41', '2020-03-24 08:57:25', '0', 1);
  307. INSERT INTO `sys_menu` VALUES (2800, 'Quartz管理', '', '/daemon/job-manage/index', 2000, 'icon-guanwangfangwen', 8, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:26', '0', 1);
  308. INSERT INTO `sys_menu` VALUES (2810, '任务新增', 'job_sys_job_add', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:26', '0', 1);
  309. INSERT INTO `sys_menu` VALUES (2820, '任务修改', 'job_sys_job_edit', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:27', '0', 1);
  310. INSERT INTO `sys_menu` VALUES (2830, '任务删除', 'job_sys_job_del', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:28', '0', 1);
  311. INSERT INTO `sys_menu` VALUES (2840, '任务暂停', 'job_sys_job_shutdown_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:28', '0', 1);
  312. INSERT INTO `sys_menu` VALUES (2850, '任务开始', 'job_sys_job_start_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:29', '0', 1);
  313. INSERT INTO `sys_menu` VALUES (2860, '任务刷新', 'job_sys_job_refresh_job', NULL, 2800, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:30', '0', 1);
  314. INSERT INTO `sys_menu` VALUES (2870, '执行任务', 'job_sys_job_run_job', NULL, 2800, '1', 0, '0', '1', '2019-08-08 15:35:18', '2020-03-24 08:57:31', '0', 1);
  315. INSERT INTO `sys_menu` VALUES (3000, '系统监控', NULL, '/daemon', -1, 'icon-msnui-supervise', 2, '0', '0', '2018-07-27 01:13:21', '2020-03-24 08:57:31', '0', 1);
  316. INSERT INTO `sys_menu` VALUES (3100, '服务监控', NULL, 'http://127.0.0.1:5001', 3000, 'icon-server', 0, '0', '0', '2018-06-26 10:50:32', '2020-03-24 08:57:32', '0', 1);
  317. INSERT INTO `sys_menu` VALUES (3110, '缓存监控', NULL, '/monitor/redis/index', 3000, 'icon-qingchuhuancun', 1, '1', '0', '2019-05-08 23:51:27', '2020-03-24 08:57:33', '0', 1);
  318. INSERT INTO `sys_menu` VALUES (3200, '接口文档', NULL, 'http://127.0.0.1:9999/swagger-ui.html', 3000, 'icon-wendang', 1, '0', '0', '2018-06-26 10:50:32', '2020-03-24 08:57:34', '0', 1);
  319. INSERT INTO `sys_menu` VALUES (3300, '事务监控', NULL, '/tx/index', 3000, 'icon-gtsquanjushiwufuwuGTS', 5, '0', '0', '2018-08-19 11:02:39', '2020-03-24 08:57:34', '0', 1);
  320. INSERT INTO `sys_menu` VALUES (3400, '在线事务', NULL, '/tx/model', 3000, 'icon-online', 6, '0', '0', '2018-08-19 11:32:04', '2020-03-24 08:57:35', '0', 1);
  321. INSERT INTO `sys_menu` VALUES (3500, '文档扩展', NULL, 'http://127.0.0.1:9999/doc.html', 3000, 'icon-wendang', 2, '0', '0', '2018-06-26 10:50:32', '2020-03-24 08:57:36', '0', 1);
  322. INSERT INTO `sys_menu` VALUES (3600, 'Quartz日志', '', '/daemon/job-log/index', 3000, 'icon-gtsquanjushiwufuwuGTS', 8, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:37', '0', 1);
  323. INSERT INTO `sys_menu` VALUES (3700, '注册配置', NULL, '', 3000, 'icon-line', 10, '0', '0', '2018-01-25 11:08:52', '2020-03-24 08:57:37', '1', 1);
  324. INSERT INTO `sys_menu` VALUES (4000, '协同管理', NULL, '/activti', -1, 'icon-kuaisugongzuoliu_o', 3, '0', '0', '2018-09-26 01:38:13', '2020-03-24 08:57:39', '0', 1);
  325. INSERT INTO `sys_menu` VALUES (4100, '模型管理', NULL, '/activiti/index', 4000, 'icon-weibiaoti13', 1, '0', '0', '2018-09-26 01:39:07', '2020-03-24 08:57:40', '0', 1);
  326. INSERT INTO `sys_menu` VALUES (4101, '模型管理', 'act_model_manage', NULL, 4100, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:41', '0', 1);
  327. INSERT INTO `sys_menu` VALUES (4200, '流程管理', '/activiti/process', '/activiti/process', 4000, 'icon-liucheng', 2, '0', '0', '2018-09-26 06:41:05', '2020-03-24 08:57:42', '0', 1);
  328. INSERT INTO `sys_menu` VALUES (4201, '流程管理', 'act_process_manage', NULL, 4200, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:42', '0', 1);
  329. INSERT INTO `sys_menu` VALUES (4300, '请假管理', '/activiti/leave', '/activiti/leave', 4000, 'icon-qingjia', 3, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:57:43', '0', 1);
  330. INSERT INTO `sys_menu` VALUES (4301, '请假新增', 'act_leavebill_add', NULL, 4300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:44', '0', 1);
  331. INSERT INTO `sys_menu` VALUES (4302, '请假修改', 'act_leavebill_edit', NULL, 4300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:45', '0', 1);
  332. INSERT INTO `sys_menu` VALUES (4303, '请假删除', 'act_leavebill_del', NULL, 4300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:46', '0', 1);
  333. INSERT INTO `sys_menu` VALUES (4400, '待办任务', '/activiti/task', '/activiti/task', 4000, 'icon-renwu', 4, '0', '0', '2018-09-27 09:52:31', '2020-03-24 08:57:48', '0', 1);
  334. INSERT INTO `sys_menu` VALUES (4401, '流程管理', 'act_task_manage', NULL, 4400, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:57:50', '0', 1);
  335. INSERT INTO `sys_menu` VALUES (5000, '支付管理', NULL, '/pay', -1, 'icon-pay6zhifu', 4, '0', '0', '2019-05-30 15:28:03', '2020-03-24 08:57:51', '0', 1);
  336. INSERT INTO `sys_menu` VALUES (5100, '渠道管理', NULL, '/pay/paychannel/index', 5000, 'icon-zhifuqudaoguanli', 1, '0', '0', '2019-05-30 15:32:17', '2020-03-24 08:57:52', '0', 1);
  337. INSERT INTO `sys_menu` VALUES (5110, '增加渠道', 'pay_paychannel_add', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:46:14', '2020-03-24 08:58:07', '0', 1);
  338. INSERT INTO `sys_menu` VALUES (5120, '编辑渠道', 'pay_paychannel_edit', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:46:35', '2020-03-24 08:58:08', '0', 1);
  339. INSERT INTO `sys_menu` VALUES (5130, '删除渠道', 'pay_paychannel_del', NULL, 5100, NULL, 1, '0', '1', '2019-05-30 15:47:08', '2020-03-24 08:58:09', '0', 1);
  340. INSERT INTO `sys_menu` VALUES (5200, '收银台', NULL, '/pay/cd/index', 5000, 'icon-shouyintai', 0, '0', '0', '2019-05-30 19:44:00', '2020-03-24 08:58:09', '0', 1);
  341. INSERT INTO `sys_menu` VALUES (5300, '商品订单', '', '/pay/goods/index', 5000, 'icon-dingdan', 2, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:10', '0', 1);
  342. INSERT INTO `sys_menu` VALUES (5310, '商品订单新增', 'generator_paygoodsorder_add', NULL, 5300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:11', '0', 1);
  343. INSERT INTO `sys_menu` VALUES (5320, '商品订单修改', 'generator_paygoodsorder_edit', NULL, 5300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:13', '0', 1);
  344. INSERT INTO `sys_menu` VALUES (5330, '商品订单删除', 'generator_paygoodsorder_del', NULL, 5300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:14', '0', 1);
  345. INSERT INTO `sys_menu` VALUES (5400, '支付订单', '', '/pay/orders/index', 5000, 'icon-zhifu', 3, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:14', '0', 1);
  346. INSERT INTO `sys_menu` VALUES (5410, '支付订单新增', 'generator_paytradeorder_add', NULL, 5400, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:15', '0', 1);
  347. INSERT INTO `sys_menu` VALUES (5420, '支付订单修改', 'generator_paytradeorder_edit', NULL, 5400, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:16', '0', 1);
  348. INSERT INTO `sys_menu` VALUES (5430, '支付订单删除', 'generator_paytradeorder_del', NULL, 5400, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:18', '0', 1);
  349. INSERT INTO `sys_menu` VALUES (5500, '回调记录', '', '/pay/notify/index', 5000, 'icon-huitiao', 4, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:19', '0', 1);
  350. INSERT INTO `sys_menu` VALUES (5510, '记录新增', 'generator_paynotifyrecord_add', NULL, 5500, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:19', '0', 1);
  351. INSERT INTO `sys_menu` VALUES (5520, '记录修改', 'generator_paynotifyrecord_edit', NULL, 5500, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:20', '0', 1);
  352. INSERT INTO `sys_menu` VALUES (5530, '记录删除', 'generator_paynotifyrecord_del', NULL, 5500, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:21', '0', 1);
  353. INSERT INTO `sys_menu` VALUES (6000, '微信管理', NULL, '/mp', -1, 'icon-gongzhonghao', 4, '0', '0', '2018-09-26 01:38:13', '2020-03-24 08:58:21', '0', 1);
  354. INSERT INTO `sys_menu` VALUES (6100, '账号管理', '', '/mp/wxaccount/index', 6000, 'icon-weixincaidan', 8, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:22', '0', 1);
  355. INSERT INTO `sys_menu` VALUES (6101, '公众号新增', 'mp_wxaccount_add', '', 6100, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:23', '0', 1);
  356. INSERT INTO `sys_menu` VALUES (6102, '公众号修改', 'mp_wxaccount_edit', NULL, 6100, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:23', '0', 1);
  357. INSERT INTO `sys_menu` VALUES (6103, '公众号删除', 'mp_wxaccount_del', NULL, 6100, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:25', '0', 1);
  358. INSERT INTO `sys_menu` VALUES (6200, '粉丝管理', '', '/mp/wxaccountfans/index', 6000, 'icon-fensiguanli', 8, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:26', '0', 1);
  359. INSERT INTO `sys_menu` VALUES (6201, '粉丝新增', 'mp_wxaccountfans_add', NULL, 6200, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:27', '0', 1);
  360. INSERT INTO `sys_menu` VALUES (6202, '粉丝修改', 'mp_wxaccountfans_edit', NULL, 6200, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:30', '0', 1);
  361. INSERT INTO `sys_menu` VALUES (6203, '粉丝删除', 'mp_wxaccountfans_del', NULL, 6200, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:31', '0', 1);
  362. INSERT INTO `sys_menu` VALUES (6204, '粉丝同步', 'mp_wxaccountfans_sync', NULL, 6200, '1', 3, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:31', '0', 1);
  363. INSERT INTO `sys_menu` VALUES (6300, '消息管理', '', '/mp/wxfansmsg/index', 6000, 'icon-xiaoxiguanli', 8, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:31', '0', 1);
  364. INSERT INTO `sys_menu` VALUES (6301, '消息新增', 'mp_wxmsg_add', NULL, 6300, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:32', '0', 1);
  365. INSERT INTO `sys_menu` VALUES (6302, '消息修改', 'mp_wxmsg_edit', NULL, 6300, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:33', '0', 1);
  366. INSERT INTO `sys_menu` VALUES (6303, '消息删除', 'mp_wxmsg_del', NULL, 6300, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:33', '0', 1);
  367. INSERT INTO `sys_menu` VALUES (6400, '菜单设置', NULL, '/mp/wxmenu/index', 6000, 'icon-anniu_weixincaidanlianjie', 6, '0', '0', '2019-03-29 15:20:12', '2020-03-24 08:58:38', '0', 1);
  368. INSERT INTO `sys_menu` VALUES (6401, '保存', 'mp_wxmenu_add', NULL, 6400, NULL, 1, '0', '1', '2019-03-29 15:43:22', '2020-03-24 08:58:38', '0', 1);
  369. INSERT INTO `sys_menu` VALUES (6402, '发布', 'mp_wxmenu_push', NULL, 6400, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  370. INSERT INTO `sys_menu` VALUES (6403, '删除', 'mp_wxmenu_del', NULL, 6400, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  371. INSERT INTO `sys_menu` VALUES (6500, '运营数据', NULL, '/mp/wxstatistics/index', 6000, 'icon-zhexiantu', 7, '0', '0', '2019-04-14 00:15:35', '2020-03-24 08:58:40', '0', 1);
  372. INSERT INTO `sys_menu` VALUES (6600, '素材管理', NULL, '/mp/wxmaterial/index', 6000, 'icon-sucaisads', 999, '0', '0', '2020-04-27 15:25:17', '2020-05-09 03:16:13', '0', 1);
  373. INSERT INTO `sys_menu` VALUES (6601, '素材维护', 'mp_wxmaterial_add', NULL, 6600, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  374. INSERT INTO `sys_menu` VALUES (6602, '素材删除', 'mp_wxmaterial_del', NULL, 6600, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  375. INSERT INTO `sys_menu` VALUES (6700, '自动回复', NULL, '/mp/wxautoreply/index', 6000, 'icon-huifu', 998, '0', '0', '2020-04-27 15:25:17', '2020-05-09 03:16:16', '0', 1);
  376. INSERT INTO `sys_menu` VALUES (6701, '新增回复', 'mp_wxautoreply_add', NULL, 6700, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  377. INSERT INTO `sys_menu` VALUES (6702, '编辑回复', 'mp_wxautoreply_edit', NULL, 6700, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  378. INSERT INTO `sys_menu` VALUES (6703, '删除回复', 'mp_wxautoreply_del', NULL, 6700, NULL, 1, '0', '1', '2019-03-29 15:43:54', '2020-03-24 08:58:39', '0', 1);
  379. INSERT INTO `sys_menu` VALUES (10000, '文件管理', NULL, '/admin/file/index', 2000, 'icon-wenjianguanli', 6, '0', '0', '2019-06-25 12:44:46', '2020-03-24 08:58:41', '0', 1);
  380. INSERT INTO `sys_menu` VALUES (10001, '删除文件', 'sys_file_del', NULL, 10000, NULL, 1, '0', '1', '2019-06-25 13:41:41', '2020-03-24 08:58:42', '0', 1);
  381. INSERT INTO `sys_menu` VALUES (10002, '表单管理', '', '/gen/form', 10006, 'icon-record', 3, '0', '0', '2018-01-20 13:17:19', '2020-03-24 08:58:44', '0', 1);
  382. INSERT INTO `sys_menu` VALUES (10003, '表单新增', 'gen_form_add', NULL, 10002, '1', 0, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:45', '0', 1);
  383. INSERT INTO `sys_menu` VALUES (10004, '表单修改', 'gen_form_edit', NULL, 10002, '1', 1, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:46', '0', 1);
  384. INSERT INTO `sys_menu` VALUES (10005, '表单删除', 'gen_form_del', NULL, 10002, '1', 2, '0', '1', '2018-05-15 21:35:18', '2020-03-24 08:58:47', '0', 1);
  385. INSERT INTO `sys_menu` VALUES (10006, '开发平台', NULL, '/gen', -1, 'icon-shejiyukaifa-', 9, '0', '0', '2019-08-12 09:35:16', '2020-03-24 08:58:48', '0', 1);
  386. INSERT INTO `sys_menu` VALUES (10007, '数据源管理', NULL, '/gen/datasource', 10006, 'icon-mysql', 0, '0', '0', '2019-08-12 09:42:11', '2020-03-24 08:58:49', '0', 1);
  387. INSERT INTO `sys_menu` VALUES (10008, '表单设计', NULL, '/gen/design', 10006, 'icon-biaodanbiaoqian', 2, '0', '0', '2019-08-16 10:08:56', '2020-03-24 08:58:53', '0', 1);
  388. COMMIT;
  389. -- ----------------------------
  390. -- Table structure for sys_oauth_client_details
  391. -- ----------------------------
  392. DROP TABLE IF EXISTS `sys_oauth_client_details`;
  393. CREATE TABLE `sys_oauth_client_details` (
  394. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  395. `client_id` varchar(32) NOT NULL,
  396. `resource_ids` varchar(256) DEFAULT NULL,
  397. `client_secret` varchar(256) DEFAULT NULL,
  398. `scope` varchar(256) DEFAULT NULL,
  399. `authorized_grant_types` varchar(256) DEFAULT NULL,
  400. `web_server_redirect_uri` varchar(256) DEFAULT NULL,
  401. `authorities` varchar(256) DEFAULT NULL,
  402. `access_token_validity` int(11) DEFAULT NULL,
  403. `refresh_token_validity` int(11) DEFAULT NULL,
  404. `additional_information` varchar(4096) DEFAULT NULL,
  405. `autoapprove` varchar(256) DEFAULT NULL,
  406. `del_flag` char(1) DEFAULT '0',
  407. `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户',
  408. PRIMARY KEY (`id`) USING BTREE
  409. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT='终端信息表';
  410. -- ----------------------------
  411. -- Records of sys_oauth_client_details
  412. -- ----------------------------
  413. BEGIN;
  414. INSERT INTO `sys_oauth_client_details` VALUES (1, 'app', NULL, 'app', 'server', 'password,refresh_token,authorization_code,client_credentials,implicit', NULL, NULL, 43200, 2592001, NULL, 'true', '0', 1);
  415. INSERT INTO `sys_oauth_client_details` VALUES (2, 'daemon', NULL, 'daemon', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', '0', 1);
  416. INSERT INTO `sys_oauth_client_details` VALUES (3, 'gen', NULL, 'gen', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', '0', 1);
  417. INSERT INTO `sys_oauth_client_details` VALUES (4, 'mp', NULL, 'mp', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', '0', 1);
  418. INSERT INTO `sys_oauth_client_details` VALUES (5, 'pig', NULL, 'pig', 'server', 'password,refresh_token,authorization_code,client_credentials', 'http://localhost:4040/sso1/login,http://localhost:4041/sso1/login,http://localhost:8080/renren-admin/sys/oauth2-sso,http://localhost:8090/sys/oauth2-sso', NULL, NULL, NULL, NULL, 'false', '0', 1);
  419. INSERT INTO `sys_oauth_client_details` VALUES (6, 'test', NULL, 'test', 'server', 'password,refresh_token', NULL, NULL, NULL, NULL, NULL, 'true', '0', 1);
  420. COMMIT;
  421. -- ----------------------------
  422. -- Table structure for sys_public_param
  423. -- ----------------------------
  424. DROP TABLE IF EXISTS `sys_public_param`;
  425. CREATE TABLE `sys_public_param` (
  426. `public_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号',
  427. `public_name` varchar(128) DEFAULT NULL,
  428. `public_key` varchar(128) DEFAULT NULL,
  429. `public_value` varchar(128) DEFAULT NULL,
  430. `status` char(1) DEFAULT '0',
  431. `validate_code` varchar(64) DEFAULT NULL,
  432. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  433. `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  434. `public_type` char(1) DEFAULT '0',
  435. `system` char(1) DEFAULT '0',
  436. `del_flag` char(1) DEFAULT '0',
  437. `tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
  438. PRIMARY KEY (`public_id`) USING BTREE
  439. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='公共参数配置表';
  440. -- ----------------------------
  441. -- Records of sys_public_param
  442. -- ----------------------------
  443. BEGIN;
  444. INSERT INTO `sys_public_param` VALUES (1, '租户默认来源', 'TENANT_DEFAULT_ID', '1', '0', '', '2020-05-12 04:03:46', '2020-06-20 08:56:30', '2', '0', '1', 1);
  445. INSERT INTO `sys_public_param` VALUES (2, '租户默认部门名称', 'TENANT_DEFAULT_DEPTNAME', '租户默认部门', '0', '', '2020-05-12 03:36:32', NULL, '2', '1', '0', 1);
  446. INSERT INTO `sys_public_param` VALUES (3, '租户默认账户', 'TENANT_DEFAULT_USERNAME', 'admin', '0', '', '2020-05-12 04:05:04', NULL, '2', '1', '0', 1);
  447. INSERT INTO `sys_public_param` VALUES (4, '租户默认密码', 'TENANT_DEFAULT_PASSWORD', '123456', '0', '', '2020-05-12 04:05:24', NULL, '2', '1', '0', 1);
  448. INSERT INTO `sys_public_param` VALUES (5, '租户默认角色编码', 'TENANT_DEFAULT_ROLECODE', 'ROLE_ADMIN', '0', '', '2020-05-12 04:05:57', NULL, '2', '1', '0', 1);
  449. INSERT INTO `sys_public_param` VALUES (6, '租户默认角色名称', 'TENANT_DEFAULT_ROLENAME', '租户默认角色', '0', '', '2020-05-12 04:06:19', NULL, '2', '1', '0', 1);
  450. INSERT INTO `sys_public_param` VALUES (7, '表前缀', 'GEN_TABLE_PREFIX', 'tb_', '0', '', '2020-05-12 04:23:04', NULL, '9', '1', '0', 1);
  451. INSERT INTO `sys_public_param` VALUES (8, '接口文档不显示的字段', 'GEN_HIDDEN_COLUMNS', 'tenant_id', '0', '', '2020-05-12 04:25:19', NULL, '9', '1', '0', 1);
  452. COMMIT;
  453. -- ----------------------------
  454. -- Table structure for sys_role
  455. -- ----------------------------
  456. DROP TABLE IF EXISTS `sys_role`;
  457. CREATE TABLE `sys_role` (
  458. `role_id` int(11) NOT NULL AUTO_INCREMENT,
  459. `role_name` varchar(64) DEFAULT NULL,
  460. `role_code` varchar(64) DEFAULT NULL,
  461. `role_desc` varchar(255) DEFAULT NULL,
  462. `ds_type` char(1) DEFAULT '2',
  463. `ds_scope` varchar(255) DEFAULT NULL,
  464. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  465. `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  466. `del_flag` char(1) DEFAULT '0',
  467. `tenant_id` int(11) DEFAULT NULL,
  468. PRIMARY KEY (`role_id`) USING BTREE,
  469. KEY `role_idx1_role_code` (`role_code`) USING BTREE
  470. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='系统角色表';
  471. -- ----------------------------
  472. -- Records of sys_role
  473. -- ----------------------------
  474. BEGIN;
  475. INSERT INTO `sys_role` VALUES (1, '管理员', 'ROLE_ADMIN', '管理员', '0', '2', '2017-10-29 15:45:51', '2018-12-26 14:09:11', '0', 1);
  476. COMMIT;
  477. -- ----------------------------
  478. -- Table structure for sys_role_menu
  479. -- ----------------------------
  480. DROP TABLE IF EXISTS `sys_role_menu`;
  481. CREATE TABLE `sys_role_menu` (
  482. `role_id` int(11) NOT NULL COMMENT '角色ID',
  483. `menu_id` int(11) NOT NULL COMMENT '菜单ID',
  484. PRIMARY KEY (`role_id`,`menu_id`) USING BTREE
  485. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='角色菜单表';
  486. -- ----------------------------
  487. -- Records of sys_role_menu
  488. -- ----------------------------
  489. BEGIN;
  490. INSERT INTO `sys_role_menu` VALUES (1, 1000);
  491. INSERT INTO `sys_role_menu` VALUES (1, 1100);
  492. INSERT INTO `sys_role_menu` VALUES (1, 1101);
  493. INSERT INTO `sys_role_menu` VALUES (1, 1102);
  494. INSERT INTO `sys_role_menu` VALUES (1, 1103);
  495. INSERT INTO `sys_role_menu` VALUES (1, 1200);
  496. INSERT INTO `sys_role_menu` VALUES (1, 1201);
  497. INSERT INTO `sys_role_menu` VALUES (1, 1202);
  498. INSERT INTO `sys_role_menu` VALUES (1, 1203);
  499. INSERT INTO `sys_role_menu` VALUES (1, 1300);
  500. INSERT INTO `sys_role_menu` VALUES (1, 1301);
  501. INSERT INTO `sys_role_menu` VALUES (1, 1302);
  502. INSERT INTO `sys_role_menu` VALUES (1, 1303);
  503. INSERT INTO `sys_role_menu` VALUES (1, 1304);
  504. INSERT INTO `sys_role_menu` VALUES (1, 1400);
  505. INSERT INTO `sys_role_menu` VALUES (1, 1401);
  506. INSERT INTO `sys_role_menu` VALUES (1, 1402);
  507. INSERT INTO `sys_role_menu` VALUES (1, 1403);
  508. INSERT INTO `sys_role_menu` VALUES (1, 1500);
  509. INSERT INTO `sys_role_menu` VALUES (1, 1501);
  510. INSERT INTO `sys_role_menu` VALUES (1, 1502);
  511. INSERT INTO `sys_role_menu` VALUES (1, 1503);
  512. INSERT INTO `sys_role_menu` VALUES (1, 2000);
  513. INSERT INTO `sys_role_menu` VALUES (1, 2100);
  514. INSERT INTO `sys_role_menu` VALUES (1, 2101);
  515. INSERT INTO `sys_role_menu` VALUES (1, 2200);
  516. INSERT INTO `sys_role_menu` VALUES (1, 2201);
  517. INSERT INTO `sys_role_menu` VALUES (1, 2202);
  518. INSERT INTO `sys_role_menu` VALUES (1, 2203);
  519. INSERT INTO `sys_role_menu` VALUES (1, 2210);
  520. INSERT INTO `sys_role_menu` VALUES (1, 2211);
  521. INSERT INTO `sys_role_menu` VALUES (1, 2212);
  522. INSERT INTO `sys_role_menu` VALUES (1, 2213);
  523. INSERT INTO `sys_role_menu` VALUES (1, 2300);
  524. INSERT INTO `sys_role_menu` VALUES (1, 2400);
  525. INSERT INTO `sys_role_menu` VALUES (1, 2401);
  526. INSERT INTO `sys_role_menu` VALUES (1, 2402);
  527. INSERT INTO `sys_role_menu` VALUES (1, 2403);
  528. INSERT INTO `sys_role_menu` VALUES (1, 2500);
  529. INSERT INTO `sys_role_menu` VALUES (1, 2501);
  530. INSERT INTO `sys_role_menu` VALUES (1, 2502);
  531. INSERT INTO `sys_role_menu` VALUES (1, 2503);
  532. INSERT INTO `sys_role_menu` VALUES (1, 2600);
  533. INSERT INTO `sys_role_menu` VALUES (1, 2601);
  534. INSERT INTO `sys_role_menu` VALUES (1, 2700);
  535. INSERT INTO `sys_role_menu` VALUES (1, 2800);
  536. INSERT INTO `sys_role_menu` VALUES (1, 2810);
  537. INSERT INTO `sys_role_menu` VALUES (1, 2820);
  538. INSERT INTO `sys_role_menu` VALUES (1, 2830);
  539. INSERT INTO `sys_role_menu` VALUES (1, 2840);
  540. INSERT INTO `sys_role_menu` VALUES (1, 2850);
  541. INSERT INTO `sys_role_menu` VALUES (1, 2860);
  542. INSERT INTO `sys_role_menu` VALUES (1, 2870);
  543. INSERT INTO `sys_role_menu` VALUES (1, 3000);
  544. INSERT INTO `sys_role_menu` VALUES (1, 3100);
  545. INSERT INTO `sys_role_menu` VALUES (1, 3110);
  546. INSERT INTO `sys_role_menu` VALUES (1, 3200);
  547. INSERT INTO `sys_role_menu` VALUES (1, 3300);
  548. INSERT INTO `sys_role_menu` VALUES (1, 3400);
  549. INSERT INTO `sys_role_menu` VALUES (1, 3500);
  550. INSERT INTO `sys_role_menu` VALUES (1, 3600);
  551. INSERT INTO `sys_role_menu` VALUES (1, 4000);
  552. INSERT INTO `sys_role_menu` VALUES (1, 4100);
  553. INSERT INTO `sys_role_menu` VALUES (1, 4101);
  554. INSERT INTO `sys_role_menu` VALUES (1, 4200);
  555. INSERT INTO `sys_role_menu` VALUES (1, 4201);
  556. INSERT INTO `sys_role_menu` VALUES (1, 4300);
  557. INSERT INTO `sys_role_menu` VALUES (1, 4301);
  558. INSERT INTO `sys_role_menu` VALUES (1, 4302);
  559. INSERT INTO `sys_role_menu` VALUES (1, 4303);
  560. INSERT INTO `sys_role_menu` VALUES (1, 4400);
  561. INSERT INTO `sys_role_menu` VALUES (1, 4401);
  562. INSERT INTO `sys_role_menu` VALUES (1, 5000);
  563. INSERT INTO `sys_role_menu` VALUES (1, 5100);
  564. INSERT INTO `sys_role_menu` VALUES (1, 5110);
  565. INSERT INTO `sys_role_menu` VALUES (1, 5120);
  566. INSERT INTO `sys_role_menu` VALUES (1, 5130);
  567. INSERT INTO `sys_role_menu` VALUES (1, 5200);
  568. INSERT INTO `sys_role_menu` VALUES (1, 5300);
  569. INSERT INTO `sys_role_menu` VALUES (1, 5310);
  570. INSERT INTO `sys_role_menu` VALUES (1, 5320);
  571. INSERT INTO `sys_role_menu` VALUES (1, 5330);
  572. INSERT INTO `sys_role_menu` VALUES (1, 5400);
  573. INSERT INTO `sys_role_menu` VALUES (1, 5410);
  574. INSERT INTO `sys_role_menu` VALUES (1, 5420);
  575. INSERT INTO `sys_role_menu` VALUES (1, 5430);
  576. INSERT INTO `sys_role_menu` VALUES (1, 5500);
  577. INSERT INTO `sys_role_menu` VALUES (1, 5510);
  578. INSERT INTO `sys_role_menu` VALUES (1, 5520);
  579. INSERT INTO `sys_role_menu` VALUES (1, 5530);
  580. INSERT INTO `sys_role_menu` VALUES (1, 6000);
  581. INSERT INTO `sys_role_menu` VALUES (1, 6100);
  582. INSERT INTO `sys_role_menu` VALUES (1, 6101);
  583. INSERT INTO `sys_role_menu` VALUES (1, 6102);
  584. INSERT INTO `sys_role_menu` VALUES (1, 6103);
  585. INSERT INTO `sys_role_menu` VALUES (1, 6200);
  586. INSERT INTO `sys_role_menu` VALUES (1, 6201);
  587. INSERT INTO `sys_role_menu` VALUES (1, 6202);
  588. INSERT INTO `sys_role_menu` VALUES (1, 6203);
  589. INSERT INTO `sys_role_menu` VALUES (1, 6300);
  590. INSERT INTO `sys_role_menu` VALUES (1, 6301);
  591. INSERT INTO `sys_role_menu` VALUES (1, 6302);
  592. INSERT INTO `sys_role_menu` VALUES (1, 6303);
  593. INSERT INTO `sys_role_menu` VALUES (1, 6304);
  594. INSERT INTO `sys_role_menu` VALUES (1, 6305);
  595. INSERT INTO `sys_role_menu` VALUES (1, 6400);
  596. INSERT INTO `sys_role_menu` VALUES (1, 6401);
  597. INSERT INTO `sys_role_menu` VALUES (1, 6402);
  598. INSERT INTO `sys_role_menu` VALUES (1, 6500);
  599. INSERT INTO `sys_role_menu` VALUES (1, 6600);
  600. INSERT INTO `sys_role_menu` VALUES (1, 6601);
  601. INSERT INTO `sys_role_menu` VALUES (1, 6602);
  602. INSERT INTO `sys_role_menu` VALUES (1, 6700);
  603. INSERT INTO `sys_role_menu` VALUES (1, 6701);
  604. INSERT INTO `sys_role_menu` VALUES (1, 6702);
  605. INSERT INTO `sys_role_menu` VALUES (1, 6703);
  606. INSERT INTO `sys_role_menu` VALUES (1, 10000);
  607. INSERT INTO `sys_role_menu` VALUES (1, 10001);
  608. INSERT INTO `sys_role_menu` VALUES (1, 10002);
  609. INSERT INTO `sys_role_menu` VALUES (1, 10003);
  610. INSERT INTO `sys_role_menu` VALUES (1, 10004);
  611. INSERT INTO `sys_role_menu` VALUES (1, 10005);
  612. INSERT INTO `sys_role_menu` VALUES (1, 10006);
  613. INSERT INTO `sys_role_menu` VALUES (1, 10007);
  614. INSERT INTO `sys_role_menu` VALUES (1, 10008);
  615. COMMIT;
  616. -- ----------------------------
  617. -- Table structure for sys_route_conf
  618. -- ----------------------------
  619. DROP TABLE IF EXISTS `sys_route_conf`;
  620. CREATE TABLE `sys_route_conf` (
  621. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  622. `route_name` varchar(30) DEFAULT NULL,
  623. `route_id` varchar(30) DEFAULT NULL,
  624. `predicates` json DEFAULT NULL COMMENT '断言',
  625. `filters` json DEFAULT NULL COMMENT '过滤器',
  626. `uri` varchar(50) DEFAULT NULL,
  627. `order` int(2) DEFAULT '0' COMMENT '排序',
  628. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  629. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  630. `del_flag` char(1) DEFAULT '0',
  631. PRIMARY KEY (`id`) USING BTREE
  632. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COMMENT='路由配置表';
  633. -- ----------------------------
  634. -- Records of sys_route_conf
  635. -- ----------------------------
  636. BEGIN;
  637. INSERT INTO `sys_route_conf` VALUES (1, '工作流管理模块', 'pigx-oa-platform', '[{\"args\": {\"_genkey_0\": \"/act/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-oa-platform', 0, '2019-10-16 16:44:41', '2019-11-05 22:36:56', '0');
  638. INSERT INTO `sys_route_conf` VALUES (2, '认证中心', 'pigx-auth', '[{\"args\": {\"_genkey_0\": \"/auth/**\"}, \"name\": \"Path\"}]', '[{\"args\": {}, \"name\": \"ValidateCodeGatewayFilter\"}, {\"args\": {}, \"name\": \"PasswordDecoderFilter\"}]', 'lb://pigx-auth', 0, '2019-10-16 16:44:41', '2019-11-05 22:36:57', '0');
  639. INSERT INTO `sys_route_conf` VALUES (3, '代码生成模块', 'pigx-codegen', '[{\"args\": {\"_genkey_0\": \"/gen/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-codegen', 0, '2019-10-16 16:44:41', '2019-11-05 22:36:58', '0');
  640. INSERT INTO `sys_route_conf` VALUES (4, 'elastic-job定时任务模块', 'pigx-daemon-elastic-job', '[{\"args\": {\"_genkey_0\": \"/daemon/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-elastic-job', 0, '2019-10-16 16:44:41', '2019-11-05 22:36:59', '0');
  641. INSERT INTO `sys_route_conf` VALUES (5, 'quartz定时任务模块', 'pigx-daemon-quartz', '[{\"args\": {\"_genkey_0\": \"/job/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-daemon-quartz', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:02', '0');
  642. INSERT INTO `sys_route_conf` VALUES (6, '分布式事务模块', 'pigx-tx-manager', '[{\"args\": {\"_genkey_0\": \"/tx/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-tx-manager', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:04', '0');
  643. INSERT INTO `sys_route_conf` VALUES (7, '通用权限模块', 'pigx-upms-biz', '[{\"args\": {\"_genkey_0\": \"/admin/**\"}, \"name\": \"Path\"}]', '[{\"args\": {\"key-resolver\": \"#{@remoteAddrKeyResolver}\", \"redis-rate-limiter.burstCapacity\": \"1000\", \"redis-rate-limiter.replenishRate\": \"1000\"}, \"name\": \"RequestRateLimiter\"}]', 'lb://pigx-upms-biz', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:05', '0');
  644. INSERT INTO `sys_route_conf` VALUES (8, '工作流长链接支持1', 'pigx-oa-platform-ws-1', '[{\"args\": {\"_genkey_0\": \"/act/ws/info/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-oa-platform', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:07', '0');
  645. INSERT INTO `sys_route_conf` VALUES (9, '工作流长链接支持2', 'pigx-oa-platform-ws-2', '[{\"args\": {\"_genkey_0\": \"/act/ws/**\"}, \"name\": \"Path\"}]', '[]', 'lb:ws://pigx-oa-platform', 100, '2019-10-16 16:44:41', '2019-11-05 22:37:09', '0');
  646. INSERT INTO `sys_route_conf` VALUES (10, '微信公众号管理', 'pigx-mp-platform', '[{\"args\": {\"_genkey_0\": \"/mp/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-mp-platform', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:12', '0');
  647. INSERT INTO `sys_route_conf` VALUES (11, '支付管理', 'pigx-pay-platform', '[{\"args\": {\"_genkey_0\": \"/pay/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-pay-platform', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:13', '0');
  648. INSERT INTO `sys_route_conf` VALUES (12, '监控管理', 'pigx-monitor', '[{\"args\": {\"_genkey_0\": \"/monitor/**\"}, \"name\": \"Path\"}]', '[]', 'lb://pigx-monitor', 0, '2019-10-16 16:44:41', '2019-11-05 22:37:17', '0');
  649. COMMIT;
  650. -- ----------------------------
  651. -- Table structure for sys_social_details
  652. -- ----------------------------
  653. DROP TABLE IF EXISTS `sys_social_details`;
  654. CREATE TABLE `sys_social_details` (
  655. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主鍵',
  656. `type` varchar(16) DEFAULT NULL,
  657. `remark` varchar(64) DEFAULT NULL,
  658. `app_id` varchar(64) DEFAULT NULL,
  659. `app_secret` varchar(64) DEFAULT NULL,
  660. `redirect_url` varchar(128) DEFAULT NULL,
  661. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  662. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  663. `del_flag` char(1) DEFAULT '0',
  664. `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户',
  665. PRIMARY KEY (`id`) USING BTREE
  666. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='系统社交登录账号表';
  667. -- ----------------------------
  668. -- Records of sys_social_details
  669. -- ----------------------------
  670. BEGIN;
  671. INSERT INTO `sys_social_details` VALUES (1, 'WX', '微信互联参数', 'wxd1678d3f83b1d83a', '6ddb043f94da5d2172926abe8533504f', 'daoweicloud.com', '2018-08-16 14:24:25', '2019-03-02 09:43:13', '0', 1);
  672. INSERT INTO `sys_social_details` VALUES (2, 'GITEE', '码云登录', '8fc54e0e76e7842cf767c3ae3b9fdc48c03cefed27aa565ff7b2a39d142d9892', 'c544469ce78a67d9fcf9b28cd9f310b73f5cbc46a1b993e0802ad61517deb221', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 09:59:55', '2019-06-28 09:59:55', '0', 1);
  673. INSERT INTO `sys_social_details` VALUES (3, 'OSC', '开源中国', 'neIIqlwGsjsfsA6uxNqD', 'aOPhRuOOJNXV1x7JrTJ9qIyRCAPXoO0l', 'http://gitee.huaxiadaowei.com/#/authredirect', '2019-06-28 10:05:37', '2019-06-28 10:05:37', '0', 1);
  674. INSERT INTO `sys_social_details` VALUES (4, 'MINI', '小程序', 'wx6832be859d0e1cf5', '08036aef810dcb2f8ae31510910ba631', NULL, '2019-11-02 22:08:03', '2019-11-02 22:10:53', '0', 1);
  675. COMMIT;
  676. -- ----------------------------
  677. -- Table structure for sys_tenant
  678. -- ----------------------------
  679. DROP TABLE IF EXISTS `sys_tenant`;
  680. CREATE TABLE `sys_tenant` (
  681. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '租户id',
  682. `name` varchar(255) DEFAULT NULL,
  683. `code` varchar(64) DEFAULT NULL,
  684. `start_time` datetime DEFAULT NULL COMMENT '开始时间',
  685. `end_time` datetime DEFAULT NULL COMMENT '结束时间',
  686. `status` char(1) DEFAULT '0',
  687. `del_flag` char(1) DEFAULT '0',
  688. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建',
  689. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  690. PRIMARY KEY (`id`) USING BTREE
  691. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='租户表';
  692. -- ----------------------------
  693. -- Records of sys_tenant
  694. -- ----------------------------
  695. BEGIN;
  696. INSERT INTO `sys_tenant` VALUES (1, '北京分公司', '1', '2019-05-15 00:00:00', '2029-05-15 00:00:00', '0', '0', '2019-05-15 15:44:57', '2019-05-18 14:47:30');
  697. COMMIT;
  698. -- ----------------------------
  699. -- Table structure for sys_user
  700. -- ----------------------------
  701. DROP TABLE IF EXISTS `sys_user`;
  702. CREATE TABLE `sys_user` (
  703. `user_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  704. `username` varchar(64) DEFAULT NULL,
  705. `password` varchar(255) DEFAULT NULL,
  706. `salt` varchar(255) DEFAULT NULL,
  707. `phone` varchar(20) DEFAULT NULL,
  708. `avatar` varchar(255) DEFAULT NULL,
  709. `dept_id` int(11) DEFAULT NULL COMMENT '部门ID',
  710. `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  711. `update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  712. `lock_flag` char(1) DEFAULT '0',
  713. `del_flag` char(1) DEFAULT '0',
  714. `wx_openid` varchar(32) DEFAULT NULL COMMENT '微信登录openId',
  715. `mini_openid` varchar(32) DEFAULT NULL COMMENT '小程序openId',
  716. `qq_openid` varchar(32) DEFAULT NULL COMMENT 'QQ openId',
  717. `gitee_login` varchar(100) DEFAULT NULL COMMENT '码云 标识',
  718. `osc_id` varchar(100) DEFAULT NULL COMMENT '开源中国 标识',
  719. `tenant_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属租户',
  720. PRIMARY KEY (`user_id`) USING BTREE,
  721. KEY `user_wx_openid` (`wx_openid`) USING BTREE,
  722. KEY `user_qq_openid` (`qq_openid`) USING BTREE,
  723. KEY `user_idx1_username` (`username`) USING BTREE
  724. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COMMENT='用户表';
  725. -- ----------------------------
  726. -- Records of sys_user
  727. -- ----------------------------
  728. BEGIN;
  729. INSERT INTO `sys_user` VALUES (1, 'admin', '$2a$10$IVzj1Wd.ZQdOIWdb1htQjexU94uoNeuk1crlQ9ExVupPi0Iy1uv.C', '', '17034642888', '/admin/sys-file/lengleng/c5a85e0770cd4fe78bc14b63b3bd05ae.jpg', 1, '2018-04-20 07:15:18', '2019-11-02 22:12:11', '0', '0', 'o_0FT0uyg_H1vVy2H0JpSwlVGhWQ', 'oBxPy5E-v82xWGsfzZVzkD3wEX64', NULL, 'log4j', '2303656', 1);
  730. COMMIT;
  731. -- ----------------------------
  732. -- Table structure for sys_user_role
  733. -- ----------------------------
  734. DROP TABLE IF EXISTS `sys_user_role`;
  735. CREATE TABLE `sys_user_role` (
  736. `user_id` int(11) NOT NULL COMMENT '用户ID',
  737. `role_id` int(11) NOT NULL COMMENT '角色ID',
  738. PRIMARY KEY (`user_id`,`role_id`) USING BTREE
  739. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户角色表';
  740. -- ----------------------------
  741. -- Records of sys_user_role
  742. -- ----------------------------
  743. BEGIN;
  744. INSERT INTO `sys_user_role` VALUES (1, 1);
  745. COMMIT;
  746. SET FOREIGN_KEY_CHECKS = 1;