2pigxx.sql 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057
  1. USE pigxx_boot;
  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` bigint NOT NULL,
  10. `name` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL,
  11. `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序',
  12. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  13. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  14. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  15. `update_time` datetime DEFAULT NULL COMMENT '修改时间',
  16. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  17. `parent_id` bigint DEFAULT NULL,
  18. `tenant_id` bigint DEFAULT NULL,
  19. PRIMARY KEY (`dept_id`) USING BTREE
  20. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='部门管理';
  21. -- ----------------------------
  22. -- Records of sys_dept
  23. -- ----------------------------
  24. BEGIN;
  25. INSERT INTO `sys_dept` VALUES (1, '山东', 1, ' ', ' ', '2018-01-22 19:00:23', '2019-05-18 14:56:06', '0', 0, 1);
  26. INSERT INTO `sys_dept` VALUES (2, '沙县国际', 2, ' ', ' ', '2018-01-22 19:00:38', '2019-05-18 14:12:07', '0', 0, 1);
  27. INSERT INTO `sys_dept` VALUES (3, '潍坊', 3, ' ', ' ', '2018-01-22 19:00:44', '2019-05-18 14:56:11', '0', 1, 1);
  28. INSERT INTO `sys_dept` VALUES (4, '高新', 4, ' ', ' ', '2018-01-22 19:00:52', '2019-05-18 14:56:09', '0', 3, 1);
  29. INSERT INTO `sys_dept` VALUES (5, '院校', 5, ' ', ' ', '2018-01-22 19:00:57', '2019-05-18 14:56:13', '0', 4, 1);
  30. INSERT INTO `sys_dept` VALUES (6, '潍院', 6, ' ', ' ', '2018-01-22 19:01:06', '2019-05-18 14:56:16', '1', 5, 1);
  31. INSERT INTO `sys_dept` VALUES (7, '山东沙县', 7, ' ', ' ', '2018-01-22 19:01:57', '2019-05-18 14:12:17', '0', 2, 1);
  32. INSERT INTO `sys_dept` VALUES (8, '潍坊沙县', 8, ' ', ' ', '2018-01-22 19:02:03', '2019-05-18 14:12:19', '0', 7, 1);
  33. COMMIT;
  34. -- ----------------------------
  35. -- Table structure for sys_dept_relation
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS `sys_dept_relation`;
  38. CREATE TABLE `sys_dept_relation` (
  39. `ancestor` bigint NOT NULL COMMENT '祖先节点',
  40. `descendant` bigint NOT NULL COMMENT '后代节点',
  41. PRIMARY KEY (`ancestor`,`descendant`) USING BTREE,
  42. KEY `idx1` (`ancestor`) USING BTREE,
  43. KEY `idx2` (`descendant`) USING BTREE
  44. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='部门关系表';
  45. -- ----------------------------
  46. -- Records of sys_dept_relation
  47. -- ----------------------------
  48. BEGIN;
  49. INSERT INTO `sys_dept_relation` VALUES (1, 1);
  50. INSERT INTO `sys_dept_relation` VALUES (1, 3);
  51. INSERT INTO `sys_dept_relation` VALUES (1, 4);
  52. INSERT INTO `sys_dept_relation` VALUES (1, 5);
  53. INSERT INTO `sys_dept_relation` VALUES (2, 2);
  54. INSERT INTO `sys_dept_relation` VALUES (2, 7);
  55. INSERT INTO `sys_dept_relation` VALUES (2, 8);
  56. INSERT INTO `sys_dept_relation` VALUES (2, 11);
  57. INSERT INTO `sys_dept_relation` VALUES (2, 12);
  58. INSERT INTO `sys_dept_relation` VALUES (3, 3);
  59. INSERT INTO `sys_dept_relation` VALUES (3, 4);
  60. INSERT INTO `sys_dept_relation` VALUES (3, 5);
  61. INSERT INTO `sys_dept_relation` VALUES (4, 4);
  62. INSERT INTO `sys_dept_relation` VALUES (4, 5);
  63. INSERT INTO `sys_dept_relation` VALUES (5, 5);
  64. INSERT INTO `sys_dept_relation` VALUES (7, 7);
  65. INSERT INTO `sys_dept_relation` VALUES (7, 8);
  66. INSERT INTO `sys_dept_relation` VALUES (7, 11);
  67. INSERT INTO `sys_dept_relation` VALUES (7, 12);
  68. INSERT INTO `sys_dept_relation` VALUES (8, 8);
  69. COMMIT;
  70. -- ----------------------------
  71. -- Table structure for sys_post
  72. -- ----------------------------
  73. DROP TABLE IF EXISTS `sys_post`;
  74. CREATE TABLE `sys_post` (
  75. `post_id` bigint NOT NULL COMMENT '岗位ID',
  76. `post_code` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT '岗位编码',
  77. `post_name` varchar(50) CHARACTER SET utf8mb4 NOT NULL COMMENT '岗位名称',
  78. `post_sort` int(0) NOT NULL COMMENT '岗位排序',
  79. `remark` varchar(500) CHARACTER SET utf8mb4 NULL DEFAULT NULL COMMENT '岗位描述',
  80. `del_flag` char(1) CHARACTER SET utf8mb4 NOT NULL DEFAULT '0' COMMENT '是否删除 -1:已删除 0:正常',
  81. `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
  82. `create_by` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '创建人',
  83. `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
  84. `update_by` varchar(64) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' COMMENT '更新人',
  85. `tenant_id` bigint(0) NULL DEFAULT NULL COMMENT '租户ID',
  86. PRIMARY KEY (`post_id`) USING BTREE
  87. ) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '岗位信息表';
  88. -- ----------------------------
  89. -- Records of sys_post
  90. -- ----------------------------
  91. BEGIN;
  92. INSERT INTO `sys_post` VALUES (1, 'CTO', 'CTO', 0, 'CTO', '0', '2022-03-26 13:48:17', '', '2022-03-26 13:50:14', '', 1);
  93. INSERT INTO `sys_post` VALUES (2, 'CEO', 'CEO', 1, 'CEO', '0', '2022-03-26 13:48:27', '', '2022-03-26 13:48:38', '', 1);
  94. COMMIT;
  95. -- ----------------------------
  96. -- Table structure for sys_user_post
  97. -- ----------------------------
  98. DROP TABLE IF EXISTS `sys_user_post`;
  99. CREATE TABLE `sys_user_post` (
  100. `user_id` bigint(0) NOT NULL COMMENT '用户ID',
  101. `post_id` bigint(0) NOT NULL COMMENT '岗位ID',
  102. PRIMARY KEY (`user_id`, `post_id`) USING BTREE
  103. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT = '用户与岗位关联表';
  104. -- ----------------------------
  105. -- Records of sys_user_post
  106. -- ----------------------------
  107. BEGIN;
  108. INSERT INTO `sys_user_post` VALUES (1, 1);
  109. COMMIT;
  110. -- ----------------------------
  111. -- Table structure for sys_dict
  112. -- ----------------------------
  113. DROP TABLE IF EXISTS `sys_dict`;
  114. CREATE TABLE `sys_dict` (
  115. `id` bigint NOT NULL COMMENT '编号',
  116. `dict_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  117. `description` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  118. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  119. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  120. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  121. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  122. `remarks` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  123. `system_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  124. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  125. `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '所属租户',
  126. PRIMARY KEY (`id`) USING BTREE,
  127. KEY `sys_dict_del_flag` (`del_flag`) USING BTREE
  128. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典表';
  129. -- ----------------------------
  130. -- Records of sys_dict
  131. -- ----------------------------
  132. BEGIN;
  133. INSERT INTO `sys_dict` VALUES (1, 'log_type', '日志类型', ' ', ' ', '2019-03-19 11:06:44', '2019-03-19 11:06:44', '异常、正常', '1', '0', 1);
  134. INSERT INTO `sys_dict` VALUES (2, 'social_type', '社交登录', ' ', ' ', '2019-03-19 11:09:44', '2019-03-19 11:09:44', '微信、QQ', '1', '0', 1);
  135. INSERT INTO `sys_dict` VALUES (4, 'job_type', '定时任务类型', ' ', ' ', '2019-03-19 11:22:21', '2019-03-19 11:22:21', 'quartz', '1', '0', 1);
  136. INSERT INTO `sys_dict` VALUES (5, 'job_status', '定时任务状态', ' ', ' ', '2019-03-19 11:24:57', '2019-03-19 11:24:57', '发布状态、运行状态', '1', '0', 1);
  137. INSERT INTO `sys_dict` VALUES (6, 'job_execute_status', '定时任务执行状态', ' ', ' ', '2019-03-19 11:26:15', '2019-03-19 11:26:15', '正常、异常', '1', '0', 1);
  138. INSERT INTO `sys_dict` VALUES (7, 'misfire_policy', '定时任务错失执行策略', ' ', ' ', '2019-03-19 11:27:19', '2019-03-19 11:27:19', '周期', '1', '0', 1);
  139. INSERT INTO `sys_dict` VALUES (8, 'gender', '性别', ' ', ' ', '2019-03-27 13:44:06', '2019-03-27 13:44:06', '微信用户性别', '1', '0', 1);
  140. INSERT INTO `sys_dict` VALUES (9, 'subscribe', '订阅状态', ' ', ' ', '2019-03-27 13:48:33', '2019-03-27 13:48:33', '公众号订阅状态', '1', '0', 1);
  141. INSERT INTO `sys_dict` VALUES (10, 'response_type', '回复', ' ', ' ', '2019-03-28 21:29:21', '2019-03-28 21:29:21', '微信消息是否已回复', '1', '0', 1);
  142. INSERT INTO `sys_dict` VALUES (11, 'param_type', '参数配置', ' ', ' ', '2019-04-29 18:20:47', '2019-04-29 18:20:47', '检索、原文、报表、安全、文档、消息、其他', '1', '0', 1);
  143. INSERT INTO `sys_dict` VALUES (12, 'status_type', '租户状态', ' ', ' ', '2019-05-15 16:31:08', '2019-05-15 16:31:08', '租户状态', '1', '0', 1);
  144. INSERT INTO `sys_dict` VALUES (13, 'dict_type', '字典类型', ' ', ' ', '2019-05-16 14:16:20', '2019-05-16 14:20:16', '系统类不能修改', '1', '0', 1);
  145. INSERT INTO `sys_dict` VALUES (17, 'grant_types', '授权类型', ' ', ' ', '2019-08-13 07:34:10', '2019-08-13 07:34:10', NULL, '1', '0', 1);
  146. 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);
  147. INSERT INTO `sys_dict` VALUES (19, 'captcha_flag_types', '验证码开关', ' ', ' ', '2020-11-18 06:53:25', '2020-11-18 06:53:25', '是否校验验证码', '1', '0', 1);
  148. INSERT INTO `sys_dict` VALUES (20, 'enc_flag_types', '前端密码加密', ' ', ' ', '2020-11-18 06:54:44', '2020-11-18 06:54:44', '前端密码是否加密传输', '1', '0', 1);
  149. COMMIT;
  150. -- ----------------------------
  151. -- Table structure for sys_dict_item
  152. -- ----------------------------
  153. DROP TABLE IF EXISTS `sys_dict_item`;
  154. CREATE TABLE `sys_dict_item` (
  155. `id` bigint NOT NULL COMMENT '编号',
  156. `dict_id` bigint NOT NULL,
  157. `item_value` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  158. `label` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  159. `dict_type` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  160. `description` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  161. `sort_order` int NOT NULL DEFAULT '0' COMMENT '排序(升序)',
  162. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  163. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  164. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  165. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  166. `remarks` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  167. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  168. `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '所属租户',
  169. PRIMARY KEY (`id`) USING BTREE,
  170. KEY `sys_dict_value` (`item_value`) USING BTREE,
  171. KEY `sys_dict_label` (`label`) USING BTREE,
  172. KEY `sys_dict_item_del_flag` (`del_flag`) USING BTREE
  173. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='字典项';
  174. -- ----------------------------
  175. -- Records of sys_dict_item
  176. -- ----------------------------
  177. BEGIN;
  178. 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);
  179. 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);
  180. 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);
  181. 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);
  182. 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);
  183. 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);
  184. 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);
  185. 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);
  186. 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);
  187. 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);
  188. 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);
  189. 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);
  190. 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);
  191. 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);
  192. 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);
  193. 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);
  194. 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);
  195. 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);
  196. 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);
  197. 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);
  198. 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);
  199. 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);
  200. 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);
  201. 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);
  202. 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);
  203. 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);
  204. 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);
  205. 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);
  206. 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);
  207. 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);
  208. 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);
  209. 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);
  210. 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);
  211. 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);
  212. 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);
  213. 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);
  214. 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);
  215. INSERT INTO `sys_dict_item` VALUES (50, 2, 'OSC', '开源中国', 'social_type', '开源中国登录', 2, ' ', ' ', '2019-06-28 10:04:32', '2019-06-28 10:04:32', '', '0', 1);
  216. 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);
  217. 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);
  218. 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);
  219. 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);
  220. 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);
  221. 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);
  222. 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);
  223. INSERT INTO `sys_dict_item` VALUES (58, 19, '0', '关', 'captcha_flag_types', '不校验验证码', 0, ' ', ' ', '2020-11-18 06:53:58', '2020-11-18 06:53:58', '不校验验证码 -0', '0', 1);
  224. INSERT INTO `sys_dict_item` VALUES (59, 19, '1', '开', 'captcha_flag_types', '校验验证码', 1, ' ', ' ', '2020-11-18 06:54:15', '2020-11-18 06:54:15', '不校验验证码-1', '0', 1);
  225. INSERT INTO `sys_dict_item` VALUES (60, 20, '0', '否', 'enc_flag_types', '不加密', 0, ' ', ' ', '2020-11-18 06:55:31', '2020-11-18 06:55:31', '不加密-0', '0', 1);
  226. INSERT INTO `sys_dict_item` VALUES (61, 20, '1', '是', 'enc_flag_types', '加密', 1, ' ', ' ', '2020-11-18 06:55:51', '2020-11-18 06:55:51', '加密-1', '0', 1);
  227. INSERT INTO `sys_dict_item` VALUES (62, 15, 'MERGE_PAY', '聚合支付', 'channel_id', '聚合支付', 1, ' ', ' ', '2019-05-30 19:08:08', '2019-06-18 13:51:53', '聚合支付', '0', 1);
  228. INSERT INTO `sys_dict_item` VALUES (63, 2, 'CAS', 'CAS登录', 'social_type', 'CAS 单点登录系统', 3, ' ', ' ', '2022-02-18 13:56:25', '2022-02-18 13:56:28', NULL, '0', 1);
  229. INSERT INTO `sys_dict_item` VALUES (64, 2, 'DINGTALK', '钉钉', 'social_type', '钉钉', 3, ' ', ' ', '2022-02-18 13:56:25', '2022-02-18 13:56:28', NULL, '0', 1);
  230. INSERT INTO `sys_dict_item` VALUES (65, 2, 'WEIXIN_CP', '企业微信', 'social_type', '企业微信', 3, ' ', ' ', '2022-02-18 13:56:25', '2022-02-18 13:56:28', NULL, '0', 1);
  231. INSERT INTO `sys_dict_item` VALUES (66, 18, '2', 'APP', 'style_type', 'uview风格', 1, ' ', ' ', '2020-02-07 03:53:12', '2020-02-07 03:53:12', '', '0', 1);
  232. COMMIT;
  233. -- ----------------------------
  234. -- Table structure for sys_file
  235. -- ----------------------------
  236. DROP TABLE IF EXISTS `sys_file`;
  237. CREATE TABLE `sys_file` (
  238. `id` bigint NOT NULL COMMENT '编号',
  239. `file_name` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  240. `bucket_name` varchar(200) CHARACTER SET utf8mb4 DEFAULT NULL,
  241. `original` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  242. `type` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL,
  243. `file_size` bigint DEFAULT NULL COMMENT '文件大小',
  244. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  245. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  246. `create_time` datetime DEFAULT NULL COMMENT '上传时间',
  247. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  248. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  249. `tenant_id` bigint DEFAULT NULL COMMENT '所属租户',
  250. PRIMARY KEY (`id`) USING BTREE
  251. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='文件管理表';
  252. -- ----------------------------
  253. -- Records of sys_file
  254. -- ----------------------------
  255. BEGIN;
  256. COMMIT;
  257. -- ----------------------------
  258. -- Table structure for sys_log
  259. -- ----------------------------
  260. DROP TABLE IF EXISTS `sys_log`;
  261. CREATE TABLE `sys_log` (
  262. `id` bigint NOT NULL COMMENT '编号',
  263. `log_type` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  264. `title` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  265. `service_id` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  266. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  267. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  268. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  269. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  270. `remote_addr` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  271. `user_agent` varchar(1000) CHARACTER SET utf8mb4 DEFAULT NULL,
  272. `request_uri` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  273. `method` varchar(10) CHARACTER SET utf8mb4 DEFAULT NULL,
  274. `params` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  275. `time` bigint DEFAULT NULL COMMENT '执行时间',
  276. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  277. `exception` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
  278. `tenant_id` bigint DEFAULT '0' COMMENT '所属租户',
  279. PRIMARY KEY (`id`) USING BTREE,
  280. KEY `sys_log_request_uri` (`request_uri`) USING BTREE,
  281. KEY `sys_log_type` (`log_type`) USING BTREE,
  282. KEY `sys_log_create_date` (`create_time`) USING BTREE
  283. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='日志表';
  284. -- ----------------------------
  285. -- Records of sys_log
  286. -- ----------------------------
  287. BEGIN;
  288. COMMIT;
  289. -- ----------------------------
  290. -- Table structure for sys_menu
  291. -- ----------------------------
  292. DROP TABLE IF EXISTS `sys_menu`;
  293. CREATE TABLE `sys_menu` (
  294. `menu_id` bigint NOT NULL COMMENT '菜单ID',
  295. `name` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  296. `permission` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  297. `path` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
  298. `parent_id` bigint DEFAULT NULL COMMENT '父菜单ID',
  299. `icon` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  300. `sort_order` int DEFAULT '1' COMMENT '排序值',
  301. `keep_alive` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  302. `menu_type` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  303. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  304. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  305. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  306. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  307. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  308. `tenant_id` bigint unsigned DEFAULT NULL COMMENT '租户ID',
  309. PRIMARY KEY (`menu_id`) USING BTREE
  310. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='菜单权限表';
  311. -- ----------------------------
  312. -- Records of sys_menu
  313. -- ----------------------------
  314. BEGIN;
  315. INSERT INTO `sys_menu` VALUES (1000, '权限管理', NULL, '/admin', -1, 'icon-quanxianguanli', 0, '0', '0', ' ', '2018-09-28 08:29:53', ' ', '2022-01-25 17:24:21', '0', 1);
  316. INSERT INTO `sys_menu` VALUES (1100, '用户管理', NULL, '/admin/user/index', 1000, 'icon-yonghuguanli', 1, '0', '0', ' ', '2017-11-02 22:24:37', ' ', '2022-01-27 11:58:48', '0', 1);
  317. INSERT INTO `sys_menu` VALUES (1101, '用户新增', 'sys_user_add', NULL, 1100, NULL, 1, '0', '1', ' ', '2017-11-08 09:52:09', ' ', '2021-05-25 03:12:55', '0', 1);
  318. INSERT INTO `sys_menu` VALUES (1102, '用户修改', 'sys_user_edit', NULL, 1100, NULL, 1, '0', '1', ' ', '2017-11-08 09:52:48', ' ', '2021-05-25 03:12:55', '0', 1);
  319. INSERT INTO `sys_menu` VALUES (1103, '用户删除', 'sys_user_del', NULL, 1100, NULL, 1, '0', '1', ' ', '2017-11-08 09:54:01', ' ', '2021-05-25 03:12:55', '0', 1);
  320. INSERT INTO `sys_menu` VALUES (1104, '导入导出', 'sys_user_export', NULL, 1100, NULL, 1, '0', '1', ' ', '2017-11-08 09:54:01', ' ', '2021-05-25 03:12:55', '0', 1);
  321. INSERT INTO `sys_menu` VALUES (1200, '菜单管理', NULL, '/admin/menu/index', 1000, 'icon-caidanguanli', 2, '0', '0', ' ', '2017-11-08 09:57:27', ' ', '2022-01-27 11:58:55', '0', 1);
  322. INSERT INTO `sys_menu` VALUES (1201, '菜单新增', 'sys_menu_add', NULL, 1200, NULL, 1, '0', '1', ' ', '2017-11-08 10:15:53', ' ', '2021-05-25 03:12:55', '0', 1);
  323. INSERT INTO `sys_menu` VALUES (1202, '菜单修改', 'sys_menu_edit', NULL, 1200, NULL, 1, '0', '1', ' ', '2017-11-08 10:16:23', ' ', '2021-05-25 03:12:55', '0', 1);
  324. INSERT INTO `sys_menu` VALUES (1203, '菜单删除', 'sys_menu_del', NULL, 1200, NULL, 1, '0', '1', ' ', '2017-11-08 10:16:43', ' ', '2021-05-25 03:12:55', '0', 1);
  325. INSERT INTO `sys_menu` VALUES (1300, '角色管理', NULL, '/admin/role/index', 1000, 'icon-jiaoseguanli', 3, '0', '0', ' ', '2017-11-08 10:13:37', ' ', '2022-01-27 11:59:01', '0', 1);
  326. INSERT INTO `sys_menu` VALUES (1301, '角色新增', 'sys_role_add', NULL, 1300, NULL, 1, '0', '1', ' ', '2017-11-08 10:14:18', ' ', '2021-05-25 03:12:55', '0', 1);
  327. INSERT INTO `sys_menu` VALUES (1302, '角色修改', 'sys_role_edit', NULL, 1300, NULL, 1, '0', '1', ' ', '2017-11-08 10:14:41', ' ', '2021-05-25 03:12:55', '0', 1);
  328. INSERT INTO `sys_menu` VALUES (1303, '角色删除', 'sys_role_del', NULL, 1300, NULL, 1, '0', '1', ' ', '2017-11-08 10:14:59', ' ', '2021-05-25 03:12:55', '0', 1);
  329. INSERT INTO `sys_menu` VALUES (1304, '分配权限', 'sys_role_perm', NULL, 1300, NULL, 1, '0', '1', ' ', '2018-04-20 07:22:55', ' ', '2021-05-25 03:12:55', '0', 1);
  330. INSERT INTO `sys_menu` VALUES (1305, '角色导入导出', 'sys_role_export', NULL, 1300, NULL, 4, '0', '1', ' ', '2022-03-26 15:54:34', ' ', NULL, '0', 1);
  331. INSERT INTO `sys_menu` VALUES (1400, '部门管理', NULL, '/admin/dept/index', 1000, 'icon-web-icon-', 4, '0', '0', ' ', '2018-01-20 13:17:19', ' ', '2022-01-27 11:59:06', '0', 1);
  332. INSERT INTO `sys_menu` VALUES (1401, '部门新增', 'sys_dept_add', NULL, 1400, NULL, 1, '0', '1', ' ', '2018-01-20 14:56:16', ' ', '2021-05-25 03:12:55', '0', 1);
  333. INSERT INTO `sys_menu` VALUES (1402, '部门修改', 'sys_dept_edit', NULL, 1400, NULL, 1, '0', '1', ' ', '2018-01-20 14:56:59', ' ', '2021-05-25 03:12:55', '0', 1);
  334. INSERT INTO `sys_menu` VALUES (1403, '部门删除', 'sys_dept_del', NULL, 1400, NULL, 1, '0', '1', ' ', '2018-01-20 14:57:28', ' ', '2021-05-25 03:12:55', '0', 1);
  335. INSERT INTO `sys_menu` VALUES (1404, '开放互联', 'sys_connect_sync', NULL, 1400, NULL, 1, '0', '1', ' ', '2018-01-20 14:57:28', ' ', '2021-05-25 03:12:55', '0', 1);
  336. INSERT INTO `sys_menu` VALUES (1500, '租户管理', '', '/admin/tenant/index', 1000, 'icon-erji-zuhushouye', 5, '0', '0', ' ', '2018-01-20 13:17:19', ' ', '2022-01-27 11:59:14', '0', 1);
  337. 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);
  338. 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);
  339. 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);
  340. INSERT INTO `sys_menu` VALUES (1600, '岗位管理', NULL, '/admin/post/index', 1000, 'icon-record', 6, '0', '0', ' ', '2022-03-26 13:04:14', ' ', NULL, '0', 1);
  341. INSERT INTO `sys_menu` VALUES (1601, '岗位信息查看', 'sys_post_view', NULL, 1600, NULL, 0, '0', '1', ' ', '2022-03-26 13:05:34', ' ', NULL, '0', 1);
  342. INSERT INTO `sys_menu` VALUES (1602, '岗位信息新增', 'sys_post_add', NULL, 1600, NULL, 1, '0', '1', ' ', '2022-03-26 13:06:00', ' ', NULL, '0', 1);
  343. INSERT INTO `sys_menu` VALUES (1603, '岗位信息修改', 'sys_post_edit', NULL, 1600, NULL, 2, '0', '1', ' ', '2022-03-26 13:06:31', ' ', '2022-03-26 13:06:38', '0', 1);
  344. INSERT INTO `sys_menu` VALUES (1604, '岗位信息删除', 'sys_post_del', NULL, 1600, NULL, 3, '0', '1', ' ', '2022-03-26 13:06:31', ' ', NULL, '0', 1);
  345. INSERT INTO `sys_menu` VALUES (1605, '岗位导入导出', 'sys_post_export', NULL, 1600, NULL, 4, '0', '1', ' ', '2022-03-26 13:06:31', ' ', '2022-03-26 06:32:02', '0', 1);
  346. INSERT INTO `sys_menu` VALUES (2000, '系统管理', NULL, '/system', -1, 'icon-xitongpeizhi', 1, '0', '0', ' ', '2017-11-07 20:56:00', ' ', '2022-02-05 16:15:14', '0', 1);
  347. INSERT INTO `sys_menu` VALUES (2100, '日志管理', NULL, '/admin/log/index', 2000, 'icon-rizhi', 5, '0', '0', ' ', '2017-11-20 14:06:22', ' ', '2020-03-24 08:56:56', '0', 1);
  348. INSERT INTO `sys_menu` VALUES (2101, '日志删除', 'sys_log_del', NULL, 2100, NULL, 1, '0', '1', ' ', '2017-11-20 20:37:37', ' ', '2021-05-25 03:12:55', '0', 1);
  349. INSERT INTO `sys_menu` VALUES (2102, '导入导出', 'sys_log_export', NULL, 2100, NULL, 1, '0', '1', ' ', '2017-11-08 09:54:01', ' ', '2021-05-25 03:12:55', '0', 1);
  350. 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);
  351. INSERT INTO `sys_menu` VALUES (2201, '字典删除', 'sys_dict_del', NULL, 2200, NULL, 1, '0', '1', ' ', '2017-11-29 11:30:11', ' ', '2021-05-25 03:12:55', '0', 1);
  352. INSERT INTO `sys_menu` VALUES (2202, '字典新增', 'sys_dict_add', NULL, 2200, NULL, 1, '0', '1', ' ', '2018-05-11 22:34:55', ' ', '2021-05-25 03:12:55', '0', 1);
  353. INSERT INTO `sys_menu` VALUES (2203, '字典修改', 'sys_dict_edit', NULL, 2200, NULL, 1, '0', '1', ' ', '2018-05-11 22:36:03', ' ', '2021-05-25 03:12:55', '0', 1);
  354. 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);
  355. 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);
  356. 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);
  357. 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);
  358. INSERT INTO `sys_menu` VALUES (2300, '代码生成', '', '/gen/index', 9000, 'icon-weibiaoti46', 1, '0', '0', ' ', '2018-01-20 13:17:19', ' ', '2020-03-24 08:57:14', '0', 1);
  359. INSERT INTO `sys_menu` VALUES (2400, '终端管理', '', '/admin/client/index', 2000, 'icon-bangzhushouji', 9, '1', '0', ' ', '2018-01-20 13:17:19', ' ', '2020-03-24 08:57:15', '0', 1);
  360. INSERT INTO `sys_menu` VALUES (2401, '客户端新增', 'sys_client_add', NULL, 2400, '1', 1, '0', '1', ' ', '2018-05-15 21:35:18', ' ', '2021-05-25 03:12:55', '0', 1);
  361. INSERT INTO `sys_menu` VALUES (2402, '客户端修改', 'sys_client_edit', NULL, 2400, NULL, 1, '0', '1', ' ', '2018-05-15 21:37:06', ' ', '2021-05-25 03:12:55', '0', 1);
  362. INSERT INTO `sys_menu` VALUES (2403, '客户端删除', 'sys_client_del', NULL, 2400, NULL, 1, '0', '1', ' ', '2018-05-15 21:39:16', ' ', '2021-05-25 03:12:55', '0', 1);
  363. 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);
  364. 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);
  365. 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);
  366. 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);
  367. 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);
  368. 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);
  369. 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);
  370. 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);
  371. 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);
  372. 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);
  373. 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);
  374. 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);
  375. 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);
  376. 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);
  377. INSERT INTO `sys_menu` VALUES (3000, '系统监控', NULL, '/daemon', -1, 'icon-msnui-supervise', 2, '0', '2', ' ', '2018-07-27 01:13:21', ' ', '2020-03-24 08:57:31', '0', 1);
  378. INSERT INTO `sys_menu` VALUES (3500, '文档扩展', NULL, 'http://pigx-gateway:9999/admin/doc.html', 3000, 'icon-wendang', 2, '0', '0', ' ', '2018-06-26 10:50:32', ' ', '2020-03-24 08:57:36', '0', 1);
  379. 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);
  380. 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);
  381. INSERT INTO `sys_menu` VALUES (8000, '文件管理', NULL, '/admin/file/index', 2000, 'icon-wenjianguanli', 6, '0', '0', ' ', '2019-06-25 12:44:46', ' ', '2020-03-24 08:58:41', '0', 1);
  382. INSERT INTO `sys_menu` VALUES (8001, '删除文件', 'sys_file_del', NULL, 8000, NULL, 1, '0', '1', ' ', '2019-06-25 13:41:41', ' ', '2020-03-24 08:58:42', '0', 1);
  383. INSERT INTO `sys_menu` VALUES (9000, '开发平台', NULL, '/gen', -1, 'icon-shejiyukaifa-', 9, '0', '0', ' ', '2019-08-12 09:35:16', ' ', '2020-03-24 08:58:48', '0', 1);
  384. INSERT INTO `sys_menu` VALUES (9001, '表单管理', '', '/gen/form', 9000, 'icon-record', 3, '0', '0', ' ', '2018-01-20 13:17:19', ' ', '2020-03-24 08:58:44', '0', 1);
  385. INSERT INTO `sys_menu` VALUES (9002, '表单新增', 'gen_form_add', NULL, 9001, '1', 0, '0', '1', ' ', '2018-05-15 21:35:18', ' ', '2020-03-24 08:58:45', '0', 1);
  386. INSERT INTO `sys_menu` VALUES (9003, '表单修改', 'gen_form_edit', NULL, 9001, '1', 1, '0', '1', ' ', '2018-05-15 21:35:18', ' ', '2020-03-24 08:58:46', '0', 1);
  387. INSERT INTO `sys_menu` VALUES (9004, '表单删除', 'gen_form_del', NULL, 9001, '1', 2, '0', '1', ' ', '2018-05-15 21:35:18', ' ', '2020-03-24 08:58:47', '0', 1);
  388. INSERT INTO `sys_menu` VALUES (9005, '数据源管理', NULL, '/gen/datasource', 9000, 'icon-mysql', 0, '0', '0', ' ', '2019-08-12 09:42:11', ' ', '2020-03-24 08:58:49', '0', 1);
  389. INSERT INTO `sys_menu` VALUES (9006, '表单设计', NULL, '/gen/design', 9000, 'icon-biaodanbiaoqian', 2, '0', '0', ' ', '2019-08-16 10:08:56', ' ', '2020-03-24 08:58:53', '0', 1);
  390. INSERT INTO `sys_menu` VALUES (9007, '低代码', 'gen_api_designer', NULL , 9001, '1', 3, '0', '1', ' ', '2019-08-16 10:08:56', ' ', '2020-03-24 08:58:53', '0', 1);
  391. INSERT INTO `sys_menu` VALUES (15100, '租户菜单', 'admin_systenant_tenantmenu', NULL, 1500, '1', 1, '0', '1', 'admin', '2022-12-12 09:01:41', ' ', '2023-01-11 05:52:51', '0', 1);
  392. INSERT INTO `sys_menu` VALUES (15101, '租户菜单删除', 'admin_systenantmenu_del', NULL, 15100, '1', 1, '0', '1', 'admin', '2022-12-09 14:04:19', 'admin', '2023-01-11 05:52:51', '0', 1);
  393. INSERT INTO `sys_menu` VALUES (15102, '租户菜单编辑', 'admin_systenantmenu_edit', NULL, 15100, '1', 1, '0', '1', 'admin', '2022-12-09 14:04:19', 'admin', '2023-01-11 05:52:51', '0', 1);
  394. INSERT INTO `sys_menu` VALUES (15103, '租户菜单新增', 'admin_systenantmenu_add', NULL, 15100, '1', 1, '0', '1', 'admin', '2022-12-09 14:04:19', 'admin', '2022-12-12 09:02:00', '0', 1);
  395. COMMIT;
  396. -- ----------------------------
  397. -- Table structure for sys_oauth_client_details
  398. -- ----------------------------
  399. DROP TABLE IF EXISTS `sys_oauth_client_details`;
  400. CREATE TABLE `sys_oauth_client_details`
  401. (
  402. `id` bigint NOT NULL COMMENT 'ID',
  403. `client_id` varchar(32) CHARACTER SET utf8mb4 NOT NULL,
  404. `resource_ids` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  405. `client_secret` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  406. `scope` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  407. `authorized_grant_types` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  408. `web_server_redirect_uri` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  409. `authorities` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  410. `access_token_validity` int DEFAULT NULL,
  411. `refresh_token_validity` int DEFAULT NULL,
  412. `additional_information` varchar(4096) CHARACTER SET utf8mb4 DEFAULT NULL,
  413. `autoapprove` varchar(256) CHARACTER SET utf8mb4 DEFAULT NULL,
  414. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  415. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  416. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  417. `create_time` datetime DEFAULT NULL COMMENT '上传时间',
  418. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  419. `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '所属租户',
  420. PRIMARY KEY (`id`) USING BTREE
  421. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='终端信息表';
  422. -- ----------------------------
  423. -- Records of sys_oauth_client_details
  424. -- ----------------------------
  425. BEGIN;
  426. INSERT INTO `sys_oauth_client_details` VALUES (1, 'app', NULL, 'app', 'server', 'password,refresh_token,authorization_code,client_credentials,mobile', '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, 43200, 2592001, '{\"enc_flag\":\"1\",\"captcha_flag\":\"1\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  427. INSERT INTO `sys_oauth_client_details` VALUES (2, 'daemon', NULL, 'daemon', 'server', 'password,refresh_token', NULL, NULL, 43200, 2592001, '{\"enc_flag\":\"1\",\"captcha_flag\":\"1\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  428. INSERT INTO `sys_oauth_client_details` VALUES (3, 'gen', NULL, 'gen', 'server', 'password,refresh_token', NULL, NULL, 43200, 2592001, '{\"enc_flag\":\"1\",\"captcha_flag\":\"1\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  429. INSERT INTO `sys_oauth_client_details` VALUES (4, 'mp', NULL, 'mp', 'server', 'password,refresh_token', NULL, NULL, 43200, 2592001, '{\"enc_flag\":\"1\",\"captcha_flag\":\"1\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  430. INSERT INTO `sys_oauth_client_details` VALUES (5, 'pig', NULL, 'pig', 'server', 'password,refresh_token,authorization_code,client_credentials,mobile', '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, 43200, 2592001, '{\"enc_flag\":\"1\",\"captcha_flag\":\"1\"}', 'false', '0', ' ', ' ', NULL, NULL, 1);
  431. INSERT INTO `sys_oauth_client_details` VALUES (6, 'test', NULL, 'test', 'server', 'password,refresh_token', NULL, NULL, 43200, 2592001, '{ \"enc_flag\":\"1\",\"captcha_flag\":\"0\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  432. INSERT INTO `sys_oauth_client_details` VALUES (7, 'social', NULL, 'social', 'server', 'password,refresh_token,mobile', NULL, NULL, 43200, 2592001, '{ \"enc_flag\":\"0\",\"captcha_flag\":\"0\"}', 'true', '0', ' ', ' ', NULL, NULL, 1);
  433. COMMIT;
  434. -- ----------------------------
  435. -- Table structure for sys_public_param
  436. -- ----------------------------
  437. DROP TABLE IF EXISTS `sys_public_param`;
  438. CREATE TABLE `sys_public_param` (
  439. `public_id` bigint NOT NULL COMMENT '编号',
  440. `public_name` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
  441. `public_key` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
  442. `public_value` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
  443. `status` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  444. `validate_code` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  445. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  446. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  447. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  448. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  449. `public_type` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  450. `system_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  451. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  452. `tenant_id` bigint DEFAULT NULL COMMENT '租户ID',
  453. PRIMARY KEY (`public_id`) USING BTREE
  454. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='公共参数配置表';
  455. -- ----------------------------
  456. -- Records of sys_public_param
  457. -- ----------------------------
  458. BEGIN;
  459. 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);
  460. INSERT INTO `sys_public_param` VALUES (2, '租户默认部门名称', 'TENANT_DEFAULT_DEPTNAME', '租户默认部门', '0', '', ' ', ' ', '2020-05-12 03:36:32', NULL, '2', '1', '0', 1);
  461. INSERT INTO `sys_public_param` VALUES (3, '租户默认账户', 'TENANT_DEFAULT_USERNAME', 'admin', '0', '', ' ', ' ', '2020-05-12 04:05:04', NULL, '2', '1', '0', 1);
  462. INSERT INTO `sys_public_param` VALUES (4, '租户默认密码', 'TENANT_DEFAULT_PASSWORD', '123456', '0', '', ' ', ' ', '2020-05-12 04:05:24', NULL, '2', '1', '0', 1);
  463. INSERT INTO `sys_public_param` VALUES (5, '租户默认角色编码', 'TENANT_DEFAULT_ROLECODE', 'ROLE_ADMIN', '0', '', ' ', ' ', '2020-05-12 04:05:57', NULL, '2', '1', '0', 1);
  464. INSERT INTO `sys_public_param` VALUES (6, '租户默认角色名称', 'TENANT_DEFAULT_ROLENAME', '租户默认角色', '0', '', ' ', ' ', '2020-05-12 04:06:19', NULL, '2', '1', '0', 1);
  465. INSERT INTO `sys_public_param` VALUES (7, '表前缀', 'GEN_TABLE_PREFIX', 'tb_', '0', '', ' ', ' ', '2020-05-12 04:23:04', NULL, '9', '1', '0', 1);
  466. INSERT INTO `sys_public_param` VALUES (8, '接口文档不显示的字段', 'GEN_HIDDEN_COLUMNS', 'tenant_id', '0', '', ' ', ' ', '2020-05-12 04:25:19', NULL, '9', '1', '0', 1);
  467. INSERT INTO `sys_public_param` VALUES (9, '注册用户默认角色', 'USER_DEFAULT_ROLE', 'GENERAL_USER', '0', NULL, ' ', ' ', '2022-03-31 16:52:24', NULL, '2', '1', '0', 1);
  468. COMMIT;
  469. -- ----------------------------
  470. -- Table structure for sys_role
  471. -- ----------------------------
  472. DROP TABLE IF EXISTS `sys_role`;
  473. CREATE TABLE `sys_role` (
  474. `role_id` bigint NOT NULL,
  475. `role_name` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  476. `role_code` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  477. `role_desc` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  478. `ds_type` char(1) CHARACTER SET utf8mb4 DEFAULT '2',
  479. `ds_scope` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  480. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  481. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  482. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  483. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  484. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  485. `tenant_id` bigint DEFAULT NULL,
  486. PRIMARY KEY (`role_id`) USING BTREE,
  487. KEY `role_idx1_role_code` (`role_code`) USING BTREE
  488. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统角色表';
  489. -- ----------------------------
  490. -- Records of sys_role
  491. -- ----------------------------
  492. BEGIN;
  493. INSERT INTO `sys_role` VALUES (1, '管理员', 'ROLE_ADMIN', '管理员', '3', '2', ' ', ' ', '2017-10-29 15:45:51', '2022-01-25 18:21:23', '0', 1);
  494. INSERT INTO `sys_role` VALUES (2, '普通用户', 'GENERAL_USER', '普通用户', '3', NULL, ' ', ' ', '2022-03-31 17:03:15', NULL, '0', 1);
  495. COMMIT;
  496. -- ----------------------------
  497. -- Table structure for sys_role_menu
  498. -- ----------------------------
  499. DROP TABLE IF EXISTS `sys_role_menu`;
  500. CREATE TABLE `sys_role_menu` (
  501. `role_id` bigint NOT NULL COMMENT '角色ID',
  502. `menu_id` bigint NOT NULL COMMENT '菜单ID',
  503. PRIMARY KEY (`role_id`,`menu_id`) USING BTREE
  504. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='角色菜单表';
  505. -- ----------------------------
  506. -- Records of sys_role_menu
  507. -- ----------------------------
  508. BEGIN;
  509. INSERT INTO `sys_role_menu` VALUES (1, 1000);
  510. INSERT INTO `sys_role_menu` VALUES (1, 1100);
  511. INSERT INTO `sys_role_menu` VALUES (1, 1101);
  512. INSERT INTO `sys_role_menu` VALUES (1, 1102);
  513. INSERT INTO `sys_role_menu` VALUES (1, 1103);
  514. INSERT INTO `sys_role_menu` VALUES (1, 1104);
  515. INSERT INTO `sys_role_menu` VALUES (1, 1200);
  516. INSERT INTO `sys_role_menu` VALUES (1, 1201);
  517. INSERT INTO `sys_role_menu` VALUES (1, 1202);
  518. INSERT INTO `sys_role_menu` VALUES (1, 1203);
  519. INSERT INTO `sys_role_menu` VALUES (1, 1300);
  520. INSERT INTO `sys_role_menu` VALUES (1, 1301);
  521. INSERT INTO `sys_role_menu` VALUES (1, 1302);
  522. INSERT INTO `sys_role_menu` VALUES (1, 1303);
  523. INSERT INTO `sys_role_menu` VALUES (1, 1304);
  524. INSERT INTO `sys_role_menu` VALUES (1, 1305);
  525. INSERT INTO `sys_role_menu` VALUES (1, 1400);
  526. INSERT INTO `sys_role_menu` VALUES (1, 1401);
  527. INSERT INTO `sys_role_menu` VALUES (1, 1402);
  528. INSERT INTO `sys_role_menu` VALUES (1, 1403);
  529. INSERT INTO `sys_role_menu` VALUES (1, 1404);
  530. INSERT INTO `sys_role_menu` VALUES (1, 1500);
  531. INSERT INTO `sys_role_menu` VALUES (1, 1501);
  532. INSERT INTO `sys_role_menu` VALUES (1, 1502);
  533. INSERT INTO `sys_role_menu` VALUES (1, 1503);
  534. INSERT INTO `sys_role_menu` VALUES (1, 1600);
  535. INSERT INTO `sys_role_menu` VALUES (1, 1601);
  536. INSERT INTO `sys_role_menu` VALUES (1, 1602);
  537. INSERT INTO `sys_role_menu` VALUES (1, 1603);
  538. INSERT INTO `sys_role_menu` VALUES (1, 1604);
  539. INSERT INTO `sys_role_menu` VALUES (1, 1605);
  540. INSERT INTO `sys_role_menu` VALUES (1, 2000);
  541. INSERT INTO `sys_role_menu` VALUES (1, 2100);
  542. INSERT INTO `sys_role_menu` VALUES (1, 2101);
  543. INSERT INTO `sys_role_menu` VALUES (1, 2102);
  544. INSERT INTO `sys_role_menu` VALUES (1, 2200);
  545. INSERT INTO `sys_role_menu` VALUES (1, 2201);
  546. INSERT INTO `sys_role_menu` VALUES (1, 2202);
  547. INSERT INTO `sys_role_menu` VALUES (1, 2203);
  548. INSERT INTO `sys_role_menu` VALUES (1, 2210);
  549. INSERT INTO `sys_role_menu` VALUES (1, 2211);
  550. INSERT INTO `sys_role_menu` VALUES (1, 2212);
  551. INSERT INTO `sys_role_menu` VALUES (1, 2213);
  552. INSERT INTO `sys_role_menu` VALUES (1, 2300);
  553. INSERT INTO `sys_role_menu` VALUES (1, 2400);
  554. INSERT INTO `sys_role_menu` VALUES (1, 2401);
  555. INSERT INTO `sys_role_menu` VALUES (1, 2402);
  556. INSERT INTO `sys_role_menu` VALUES (1, 2403);
  557. INSERT INTO `sys_role_menu` VALUES (1, 2500);
  558. INSERT INTO `sys_role_menu` VALUES (1, 2501);
  559. INSERT INTO `sys_role_menu` VALUES (1, 2502);
  560. INSERT INTO `sys_role_menu` VALUES (1, 2503);
  561. INSERT INTO `sys_role_menu` VALUES (1, 2600);
  562. INSERT INTO `sys_role_menu` VALUES (1, 2601);
  563. INSERT INTO `sys_role_menu` VALUES (1, 2700);
  564. INSERT INTO `sys_role_menu` VALUES (1, 2800);
  565. INSERT INTO `sys_role_menu` VALUES (1, 2810);
  566. INSERT INTO `sys_role_menu` VALUES (1, 2820);
  567. INSERT INTO `sys_role_menu` VALUES (1, 2830);
  568. INSERT INTO `sys_role_menu` VALUES (1, 2840);
  569. INSERT INTO `sys_role_menu` VALUES (1, 2850);
  570. INSERT INTO `sys_role_menu` VALUES (1, 2860);
  571. INSERT INTO `sys_role_menu` VALUES (1, 2870);
  572. INSERT INTO `sys_role_menu` VALUES (1, 3000);
  573. INSERT INTO `sys_role_menu` VALUES (1, 3500);
  574. INSERT INTO `sys_role_menu` VALUES (1, 3600);
  575. INSERT INTO `sys_role_menu` VALUES (1, 8000);
  576. INSERT INTO `sys_role_menu` VALUES (1, 8001);
  577. INSERT INTO `sys_role_menu` VALUES (1, 9000);
  578. INSERT INTO `sys_role_menu` VALUES (1, 9001);
  579. INSERT INTO `sys_role_menu` VALUES (1, 9002);
  580. INSERT INTO `sys_role_menu` VALUES (1, 9003);
  581. INSERT INTO `sys_role_menu` VALUES (1, 9004);
  582. INSERT INTO `sys_role_menu` VALUES (1, 9005);
  583. INSERT INTO `sys_role_menu` VALUES (1, 9006);
  584. INSERT INTO `sys_role_menu` VALUES (1, 9007);
  585. INSERT INTO `sys_role_menu` VALUES (1, 15100);
  586. INSERT INTO `sys_role_menu` VALUES (1, 15101);
  587. INSERT INTO `sys_role_menu` VALUES (1, 15102);
  588. INSERT INTO `sys_role_menu` VALUES (1, 15103);
  589. COMMIT;
  590. -- ----------------------------
  591. -- Table structure for sys_social_details
  592. -- ----------------------------
  593. DROP TABLE IF EXISTS `sys_social_details`;
  594. CREATE TABLE `sys_social_details`
  595. (
  596. `id` bigint NOT NULL COMMENT '主鍵',
  597. `type` varchar(16) CHARACTER SET utf8mb4 DEFAULT NULL,
  598. `remark` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  599. `app_id` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  600. `app_secret` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  601. `redirect_url` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL,
  602. `ext` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '拓展字段',
  603. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  604. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  605. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  606. `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  607. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  608. `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '所属租户',
  609. PRIMARY KEY (`id`) USING BTREE
  610. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='系统社交登录账号表';
  611. -- ----------------------------
  612. -- Table structure for sys_tenant
  613. -- ----------------------------
  614. DROP TABLE IF EXISTS `sys_tenant`;
  615. CREATE TABLE `sys_tenant` (
  616. `id` bigint(0) NOT NULL COMMENT '租户id',
  617. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  618. `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  619. `tenant_domain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  620. `start_time` datetime(0) NULL DEFAULT NULL COMMENT '开始时间',
  621. `end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间',
  622. `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
  623. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
  624. `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ' ' COMMENT '创建人',
  625. `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ' ' COMMENT '修改人',
  626. `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建',
  627. `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  628. `menu_id` bigint(0) NULL DEFAULT NULL,
  629. PRIMARY KEY (`id`) USING BTREE
  630. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '租户表' ROW_FORMAT = Dynamic;
  631. -- ----------------------------
  632. -- Records of sys_tenant
  633. -- ----------------------------
  634. BEGIN;
  635. INSERT INTO `sys_tenant` VALUES (1, '北京分公司', '1', '', '2019-05-15 00:00:00', '2029-05-15 00:00:00', '0', '0', '', 'admin', '2019-05-15 15:44:57', '2022-12-09 15:27:50', 1);
  636. COMMIT;
  637. -- ----------------------------
  638. -- Table structure for sys_tenant_menu
  639. -- ----------------------------
  640. DROP TABLE IF EXISTS `sys_tenant_menu`;
  641. CREATE TABLE `sys_tenant_menu` (
  642. `id` bigint(0) NOT NULL,
  643. `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '租户菜单名称',
  644. `menu_ids` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单id集合',
  645. `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '0' COMMENT '租户菜单,9:冻结,0:正常',
  646. `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
  647. `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ' ' COMMENT '创建人',
  648. `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT ' ' COMMENT '修改人',
  649. `create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建',
  650. `update_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  651. PRIMARY KEY (`id`) USING BTREE
  652. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  653. -- ----------------------------
  654. -- Records of sys_tenant_menu
  655. -- ----------------------------
  656. INSERT INTO `sys_tenant_menu` VALUES (1, '1231', '1000,1100,1101,1102,1103,1104,1200,1201,1202,1203,1300,1301,1302,1303,1304,1305,1400,1401,1402,1403,1404,1500,1501,1502,1503,1600,1601,1602,1603,1604,1605,1601095373834067969,1601095530717814785,1601095569972305921,1601095611131011073', '0', '0', 'admin', ' ', '2022-12-09 14:39:56', '2022-12-09 06:39:56');
  657. -- ----------------------------
  658. -- Table structure for sys_user
  659. -- ----------------------------
  660. DROP TABLE IF EXISTS `sys_user`;
  661. CREATE TABLE `sys_user` (
  662. `user_id` bigint NOT NULL COMMENT '主键ID',
  663. `username` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL,
  664. `password` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  665. `salt` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  666. `phone` varchar(20) CHARACTER SET utf8mb4 DEFAULT NULL,
  667. `avatar` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL,
  668. `nickname` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '拓展字段:昵称',
  669. `name` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '拓展字段:姓名',
  670. `email` varchar(128) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '拓展字段:邮箱',
  671. `dept_id` bigint DEFAULT NULL COMMENT '部门ID',
  672. `create_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '创建人',
  673. `update_by` varchar(64) CHARACTER SET utf8 NOT NULL DEFAULT ' ' COMMENT '修改人',
  674. `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  675. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
  676. `lock_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  677. `del_flag` char(1) CHARACTER SET utf8mb4 DEFAULT '0',
  678. `wx_openid` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '微信登录openId',
  679. `mini_openid` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '小程序openId',
  680. `qq_openid` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'QQ openId',
  681. `gitee_login` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '码云 标识',
  682. `osc_id` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '开源中国 标识',
  683. `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '所属租户',
  684. PRIMARY KEY (`user_id`) USING BTREE,
  685. KEY `user_wx_openid` (`wx_openid`) USING BTREE,
  686. KEY `user_qq_openid` (`qq_openid`) USING BTREE,
  687. KEY `user_idx1_username` (`username`) USING BTREE
  688. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户表';
  689. -- ----------------------------
  690. -- Records of sys_user
  691. -- ----------------------------
  692. BEGIN;
  693. INSERT INTO `sys_user` VALUES (1, 'admin', '$2a$10$cE02oZ1N4mkdA6JHJUP7/uAJ3TQdVgO3kLRvLoe5KvvMU99W5r5hG', '', '17034642888', '/admin/sys-file/lengleng/c5a85e0770cd4fe78bc14b63b3bd05ae.jpg', '管理员', '管理员', 'admin@mail.com', 1, ' ', ' ', '2018-04-20 07:15:18', '2022-02-18 14:02:09', '0', '0', 'o_0FT0uyg_H1vVy2H0JpSwlVGhWQ', 'oBxPy5E-v82xWGsfzZVzkD3wEX64', NULL, 'log4j', '2303656', 1);
  694. COMMIT;
  695. -- ----------------------------
  696. -- Table structure for sys_user_role
  697. -- ----------------------------
  698. DROP TABLE IF EXISTS `sys_user_role`;
  699. CREATE TABLE `sys_user_role` (
  700. `user_id` bigint NOT NULL COMMENT '用户ID',
  701. `role_id` bigint NOT NULL COMMENT '角色ID',
  702. PRIMARY KEY (`user_id`,`role_id`) USING BTREE
  703. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户角色表';
  704. -- ----------------------------
  705. -- Records of sys_user_role
  706. -- ----------------------------
  707. BEGIN;
  708. INSERT INTO `sys_user_role` VALUES (1, 1);
  709. COMMIT;
  710. -- ----------------------------
  711. -- Table structure for qrtz_blob_triggers
  712. -- ----------------------------
  713. DROP TABLE IF EXISTS `qrtz_blob_triggers`;
  714. CREATE TABLE `qrtz_blob_triggers` (
  715. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  716. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  717. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  718. `blob_data` blob,
  719. PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  720. CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
  721. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  722. -- ----------------------------
  723. -- Records of qrtz_blob_triggers
  724. -- ----------------------------
  725. BEGIN;
  726. COMMIT;
  727. -- ----------------------------
  728. -- Table structure for qrtz_calendars
  729. -- ----------------------------
  730. DROP TABLE IF EXISTS `qrtz_calendars`;
  731. CREATE TABLE `qrtz_calendars` (
  732. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  733. `calendar_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  734. `calendar` blob NOT NULL,
  735. PRIMARY KEY (`sched_name`,`calendar_name`) USING BTREE
  736. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  737. -- ----------------------------
  738. -- Records of qrtz_calendars
  739. -- ----------------------------
  740. BEGIN;
  741. COMMIT;
  742. -- ----------------------------
  743. -- Table structure for qrtz_cron_triggers
  744. -- ----------------------------
  745. DROP TABLE IF EXISTS `qrtz_cron_triggers`;
  746. CREATE TABLE `qrtz_cron_triggers` (
  747. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  748. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  749. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  750. `cron_expression` varchar(200) CHARACTER SET utf8 NOT NULL,
  751. `time_zone_id` varchar(80) CHARACTER SET utf8 DEFAULT NULL,
  752. PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  753. CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
  754. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  755. -- ----------------------------
  756. -- Records of qrtz_cron_triggers
  757. -- ----------------------------
  758. BEGIN;
  759. COMMIT;
  760. -- ----------------------------
  761. -- Table structure for qrtz_fired_triggers
  762. -- ----------------------------
  763. DROP TABLE IF EXISTS `qrtz_fired_triggers`;
  764. CREATE TABLE `qrtz_fired_triggers` (
  765. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  766. `entry_id` varchar(95) CHARACTER SET utf8 NOT NULL,
  767. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  768. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  769. `instance_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  770. `fired_time` bigint NOT NULL,
  771. `sched_time` bigint NOT NULL,
  772. `priority` int NOT NULL,
  773. `state` varchar(16) CHARACTER SET utf8 NOT NULL,
  774. `job_name` varchar(200) CHARACTER SET utf8 DEFAULT NULL,
  775. `job_group` varchar(200) CHARACTER SET utf8 DEFAULT NULL,
  776. `is_nonconcurrent` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
  777. `requests_recovery` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
  778. PRIMARY KEY (`sched_name`,`entry_id`) USING BTREE
  779. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  780. -- ----------------------------
  781. -- Records of qrtz_fired_triggers
  782. -- ----------------------------
  783. BEGIN;
  784. COMMIT;
  785. -- ----------------------------
  786. -- Table structure for qrtz_job_details
  787. -- ----------------------------
  788. DROP TABLE IF EXISTS `qrtz_job_details`;
  789. CREATE TABLE `qrtz_job_details` (
  790. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  791. `job_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  792. `job_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  793. `description` varchar(250) CHARACTER SET utf8 DEFAULT NULL,
  794. `job_class_name` varchar(250) CHARACTER SET utf8 NOT NULL,
  795. `is_durable` varchar(1) CHARACTER SET utf8 NOT NULL,
  796. `is_nonconcurrent` varchar(1) CHARACTER SET utf8 NOT NULL,
  797. `is_update_data` varchar(1) CHARACTER SET utf8 NOT NULL,
  798. `requests_recovery` varchar(1) CHARACTER SET utf8 NOT NULL,
  799. `job_data` blob,
  800. PRIMARY KEY (`sched_name`,`job_name`,`job_group`) USING BTREE
  801. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  802. -- ----------------------------
  803. -- Records of qrtz_job_details
  804. -- ----------------------------
  805. BEGIN;
  806. COMMIT;
  807. -- ----------------------------
  808. -- Table structure for qrtz_locks
  809. -- ----------------------------
  810. DROP TABLE IF EXISTS `qrtz_locks`;
  811. CREATE TABLE `qrtz_locks` (
  812. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  813. `lock_name` varchar(40) CHARACTER SET utf8 NOT NULL,
  814. PRIMARY KEY (`sched_name`,`lock_name`) USING BTREE
  815. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  816. -- ----------------------------
  817. -- Records of qrtz_locks
  818. -- ----------------------------
  819. BEGIN;
  820. COMMIT;
  821. -- ----------------------------
  822. -- Table structure for qrtz_paused_trigger_grps
  823. -- ----------------------------
  824. DROP TABLE IF EXISTS `qrtz_paused_trigger_grps`;
  825. CREATE TABLE `qrtz_paused_trigger_grps` (
  826. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  827. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  828. PRIMARY KEY (`sched_name`,`trigger_group`) USING BTREE
  829. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  830. -- ----------------------------
  831. -- Records of qrtz_paused_trigger_grps
  832. -- ----------------------------
  833. BEGIN;
  834. COMMIT;
  835. -- ----------------------------
  836. -- Table structure for qrtz_scheduler_state
  837. -- ----------------------------
  838. DROP TABLE IF EXISTS `qrtz_scheduler_state`;
  839. CREATE TABLE `qrtz_scheduler_state` (
  840. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  841. `instance_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  842. `last_checkin_time` bigint NOT NULL,
  843. `checkin_interval` bigint NOT NULL,
  844. PRIMARY KEY (`sched_name`,`instance_name`) USING BTREE
  845. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  846. -- ----------------------------
  847. -- Records of qrtz_scheduler_state
  848. -- ----------------------------
  849. BEGIN;
  850. COMMIT;
  851. -- ----------------------------
  852. -- Table structure for qrtz_simple_triggers
  853. -- ----------------------------
  854. DROP TABLE IF EXISTS `qrtz_simple_triggers`;
  855. CREATE TABLE `qrtz_simple_triggers` (
  856. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  857. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  858. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  859. `repeat_count` bigint NOT NULL,
  860. `repeat_interval` bigint NOT NULL,
  861. `times_triggered` bigint NOT NULL,
  862. PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  863. CONSTRAINT `QRTZ_SIMPLE_TRIGGERS_IBFK_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
  864. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  865. -- ----------------------------
  866. -- Records of qrtz_simple_triggers
  867. -- ----------------------------
  868. BEGIN;
  869. COMMIT;
  870. -- ----------------------------
  871. -- Table structure for qrtz_simprop_triggers
  872. -- ----------------------------
  873. DROP TABLE IF EXISTS `qrtz_simprop_triggers`;
  874. CREATE TABLE `qrtz_simprop_triggers` (
  875. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  876. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  877. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  878. `str_prop_1` varchar(512) CHARACTER SET utf8 DEFAULT NULL,
  879. `str_prop_2` varchar(512) CHARACTER SET utf8 DEFAULT NULL,
  880. `str_prop_3` varchar(512) CHARACTER SET utf8 DEFAULT NULL,
  881. `int_prop_1` int DEFAULT NULL,
  882. `int_prop_2` int DEFAULT NULL,
  883. `long_prop_1` bigint DEFAULT NULL,
  884. `long_prop_2` bigint DEFAULT NULL,
  885. `dec_prop_1` decimal(13,4) DEFAULT NULL,
  886. `dec_prop_2` decimal(13,4) DEFAULT NULL,
  887. `bool_prop_1` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
  888. `bool_prop_2` varchar(1) CHARACTER SET utf8 DEFAULT NULL,
  889. PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  890. CONSTRAINT `QRTZ_SIMPROP_TRIGGERS_IBFK_1` FOREIGN KEY (`sched_name`, `trigger_name`, `trigger_group`) REFERENCES `qrtz_triggers` (`sched_name`, `trigger_name`, `trigger_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
  891. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  892. -- ----------------------------
  893. -- Records of qrtz_simprop_triggers
  894. -- ----------------------------
  895. BEGIN;
  896. COMMIT;
  897. -- ----------------------------
  898. -- Table structure for qrtz_triggers
  899. -- ----------------------------
  900. DROP TABLE IF EXISTS `qrtz_triggers`;
  901. CREATE TABLE `qrtz_triggers` (
  902. `sched_name` varchar(120) CHARACTER SET utf8 NOT NULL,
  903. `trigger_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  904. `trigger_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  905. `job_name` varchar(200) CHARACTER SET utf8 NOT NULL,
  906. `job_group` varchar(200) CHARACTER SET utf8 NOT NULL,
  907. `description` varchar(250) CHARACTER SET utf8 DEFAULT NULL,
  908. `next_fire_time` bigint DEFAULT NULL,
  909. `prev_fire_time` bigint DEFAULT NULL,
  910. `priority` int DEFAULT NULL,
  911. `trigger_state` varchar(16) CHARACTER SET utf8 NOT NULL,
  912. `trigger_type` varchar(8) CHARACTER SET utf8 NOT NULL,
  913. `start_time` bigint NOT NULL,
  914. `end_time` bigint DEFAULT NULL,
  915. `calendar_name` varchar(200) CHARACTER SET utf8 DEFAULT NULL,
  916. `misfire_instr` smallint DEFAULT NULL,
  917. `job_data` blob,
  918. PRIMARY KEY (`sched_name`,`trigger_name`,`trigger_group`) USING BTREE,
  919. KEY `sched_name` (`sched_name`,`job_name`,`job_group`) USING BTREE,
  920. CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`sched_name`, `job_name`, `job_group`) REFERENCES `qrtz_job_details` (`sched_name`, `job_name`, `job_group`) ON DELETE RESTRICT ON UPDATE RESTRICT
  921. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  922. -- ----------------------------
  923. -- Records of qrtz_triggers
  924. -- ----------------------------
  925. BEGIN;
  926. COMMIT;
  927. -- ----------------------------
  928. -- Table structure for sys_job
  929. -- ----------------------------
  930. DROP TABLE IF EXISTS `sys_job`;
  931. CREATE TABLE `sys_job` (
  932. `job_id` bigint NOT NULL COMMENT '任务id',
  933. `job_name` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT '任务名称',
  934. `job_group` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT '任务组名',
  935. `job_order` char(1) CHARACTER SET utf8mb4 DEFAULT '1' COMMENT '组内执行顺利,值越大执行优先级越高,最大值9,最小值1',
  936. `job_type` char(1) CHARACTER SET utf8mb4 NOT NULL DEFAULT '1' COMMENT '1、java类;2、spring bean名称;3、rest调用;4、jar调用;9其他',
  937. `execute_path` varchar(500) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'job_type=3时,rest调用地址,仅支持rest get协议,需要增加String返回值,0成功,1失败;job_type=4时,jar路径;其它值为空',
  938. `class_name` varchar(500) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'job_type=1时,类完整路径;job_type=2时,spring bean名称;其它值为空',
  939. `method_name` varchar(500) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '任务方法',
  940. `method_params_value` varchar(2000) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '参数值',
  941. `cron_expression` varchar(255) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT 'cron执行表达式',
  942. `misfire_policy` varchar(20) CHARACTER SET utf8mb4 DEFAULT '3' COMMENT '错失执行策略(1错失周期立即执行 2错失周期执行一次 3下周期执行)',
  943. `job_tenant_type` char(1) CHARACTER SET utf8mb4 DEFAULT '1' COMMENT '1、多租户任务;2、非多租户任务',
  944. `job_status` char(1) CHARACTER SET utf8mb4 DEFAULT '0' COMMENT '状态(1、未发布;2、运行中;3、暂停;4、删除;)',
  945. `job_execute_status` char(1) CHARACTER SET utf8mb4 DEFAULT '0' COMMENT '状态(0正常 1异常)',
  946. `create_by` varchar(64) CHARACTER SET utf8mb4 DEFAULT NULL COMMENT '创建者',
  947. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  948. `update_by` varchar(64) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '更新者',
  949. `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  950. `start_time` timestamp NULL DEFAULT NULL COMMENT '初次执行时间',
  951. `previous_time` timestamp NULL DEFAULT NULL COMMENT '上次执行时间',
  952. `next_time` timestamp NULL DEFAULT NULL COMMENT '下次执行时间',
  953. `tenant_id` bigint DEFAULT '1' COMMENT '租户',
  954. `remark` varchar(500) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '备注信息',
  955. PRIMARY KEY (`job_id`,`job_name`,`job_group`) USING BTREE
  956. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='定时任务调度表';
  957. -- ----------------------------
  958. -- Records of sys_job
  959. -- ----------------------------
  960. BEGIN;
  961. COMMIT;
  962. -- ----------------------------
  963. -- Table structure for sys_job_log
  964. -- ----------------------------
  965. DROP TABLE IF EXISTS `sys_job_log`;
  966. CREATE TABLE `sys_job_log` (
  967. `job_log_id` bigint NOT NULL COMMENT '任务日志ID',
  968. `job_id` bigint NOT NULL COMMENT '任务id',
  969. `job_name` varchar(64) CHARACTER SET utf8 DEFAULT NULL COMMENT '任务名称',
  970. `job_group` varchar(64) CHARACTER SET utf8 DEFAULT NULL COMMENT '任务组名',
  971. `job_order` char(1) CHARACTER SET utf8 DEFAULT NULL COMMENT '组内执行顺利,值越大执行优先级越高,最大值9,最小值1',
  972. `job_type` char(1) CHARACTER SET utf8 NOT NULL DEFAULT '1' COMMENT '1、java类;2、spring bean名称;3、rest调用;4、jar调用;9其他',
  973. `execute_path` varchar(500) CHARACTER SET utf8 DEFAULT NULL COMMENT 'job_type=3时,rest调用地址,仅支持post协议;job_type=4时,jar路径;其它值为空',
  974. `class_name` varchar(500) CHARACTER SET utf8 DEFAULT NULL COMMENT 'job_type=1时,类完整路径;job_type=2时,spring bean名称;其它值为空',
  975. `method_name` varchar(500) CHARACTER SET utf8 DEFAULT NULL COMMENT '任务方法',
  976. `method_params_value` varchar(2000) CHARACTER SET utf8 DEFAULT NULL COMMENT '参数值',
  977. `cron_expression` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT 'cron执行表达式',
  978. `job_message` varchar(500) CHARACTER SET utf8 DEFAULT NULL COMMENT '日志信息',
  979. `job_log_status` char(1) CHARACTER SET utf8 DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
  980. `execute_time` varchar(30) CHARACTER SET utf8 DEFAULT NULL COMMENT '执行时间',
  981. `exception_info` varchar(2000) CHARACTER SET utf8 DEFAULT '' COMMENT '异常信息',
  982. `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  983. `tenant_id` bigint NOT NULL DEFAULT '1' COMMENT '租户id',
  984. PRIMARY KEY (`job_log_id`) USING BTREE
  985. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='定时任务执行日志表';
  986. -- ----------------------------
  987. -- Records of sys_job_log
  988. -- ----------------------------
  989. BEGIN;
  990. COMMIT;
  991. SET FOREIGN_KEY_CHECKS = 1;