mldong.sql 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : hyper-db-root
  4. Source Server Type : MySQL
  5. Source Server Version : 50731
  6. Source Host : 192.168.0.160:3306
  7. Source Schema : mldong
  8. Target Server Type : MySQL
  9. Target Server Version : 50731
  10. File Encoding : 65001
  11. Date: 08/05/2022 22:01:50
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for cms_article
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `cms_article`;
  19. CREATE TABLE `cms_article` (
  20. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  21. `category_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '栏目id',
  22. `title` varchar(120) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '标题',
  23. `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述',
  24. `cover` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '大图',
  25. `author` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作者',
  26. `source` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文章来源',
  27. `sort` double(10, 2) UNSIGNED NULL DEFAULT 10.00 COMMENT '排序',
  28. `status` int(6) UNSIGNED NULL DEFAULT 1 COMMENT '状态(1->草稿|DRAFT,2->审核中|AUDITING,3->审批通过|PASS,4->审批不通过|NO_PASS)',
  29. `business_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工作流业务编号',
  30. `publish_time` datetime(3) NULL DEFAULT NULL COMMENT '发布时间',
  31. `is_publish` tinyint(1) NULL DEFAULT NULL COMMENT '是否发布(1->否|NO,2->是|YES)',
  32. `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '文本内容',
  33. `ext_form_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展信息',
  34. `dept_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '所属部门',
  35. `user_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '所属用户',
  36. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  37. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  38. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  39. PRIMARY KEY (`id`) USING BTREE
  40. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  41. -- ----------------------------
  42. -- Records of cms_article
  43. -- ----------------------------
  44. INSERT INTO `cms_article` VALUES (1, 1, '测试文章', NULL, NULL, '立东', NULL, 10.00, 1, 'e8492b4e38e348a1aae9053eb74ca29c', NULL, 1, NULL, '{}', NULL, NULL, '2022-04-05 20:30:38.955', '2022-04-06 22:39:29.135', 1);
  45. -- ----------------------------
  46. -- Table structure for cms_category
  47. -- ----------------------------
  48. DROP TABLE IF EXISTS `cms_category`;
  49. CREATE TABLE `cms_category` (
  50. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  51. `parent_id` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '父栏目id',
  52. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '栏目名称',
  53. `sort` double(10, 2) UNSIGNED NULL DEFAULT 10.00 COMMENT '排序',
  54. `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
  55. `is_nav` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '是否导航(1->否|NO,2->是|YES)',
  56. `is_show` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '是否显示(1->否|NO,2->是|YES)',
  57. `is_page` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否单页面(1->否|NO,2->是|YES)',
  58. `dept_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '所属部门',
  59. `user_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '所属用户',
  60. `model_id` bigint(255) UNSIGNED NULL DEFAULT NULL COMMENT '所属模型',
  61. `seo_keyworks` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'seo关键字',
  62. `seo_description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'seo描述',
  63. `ext_form_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '扩展的表单配置',
  64. `ext_form_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '扩展表单值',
  65. `ext_article_form_config` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '文章扩展字段配置',
  66. `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '富文本',
  67. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  68. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  69. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  70. PRIMARY KEY (`id`) USING BTREE
  71. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  72. -- ----------------------------
  73. -- Records of cms_category
  74. -- ----------------------------
  75. INSERT INTO `cms_category` VALUES (1, 0, '新闻中心', 1.00, NULL, 2, 2, 2, NULL, NULL, NULL, NULL, NULL, '{\"formItems\":[]}', NULL, '{\"formItems\":[]}', NULL, '2022-04-05 19:42:34.276', '2022-04-05 19:42:34.276', 1);
  76. -- ----------------------------
  77. -- Table structure for sys_config
  78. -- ----------------------------
  79. DROP TABLE IF EXISTS `sys_config`;
  80. CREATE TABLE `sys_config` (
  81. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '编号',
  82. `config_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数名称',
  83. `config_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参数键名',
  84. `config_value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数键值',
  85. `is_system` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '系统内置(1->否|NO,2->是|YES)',
  86. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  87. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  88. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  89. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  90. PRIMARY KEY (`id`) USING BTREE
  91. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参数配置' ROW_FORMAT = Dynamic;
  92. -- ----------------------------
  93. -- Records of sys_config
  94. -- ----------------------------
  95. INSERT INTO `sys_config` VALUES (1, 'test', 'test', '1', 2, NULL, '2022-05-02 14:58:52.625', '2022-05-02 14:58:52.625', 1);
  96. -- ----------------------------
  97. -- Table structure for sys_dept
  98. -- ----------------------------
  99. DROP TABLE IF EXISTS `sys_dept`;
  100. CREATE TABLE `sys_dept` (
  101. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  102. `parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父级id',
  103. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '部门名称',
  104. `code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '部门编码',
  105. `sort` double(10, 2) NULL DEFAULT 10.00 COMMENT '排序',
  106. `contacts` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人',
  107. `mobile_phone` varchar(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人手机号',
  108. `telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
  109. `email` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  110. `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地址',
  111. `is_enabled` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '是否启用(1->禁用|NO,2->启用|YES)',
  112. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  113. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  114. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  115. PRIMARY KEY (`id`) USING BTREE
  116. ) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  117. -- ----------------------------
  118. -- Records of sys_dept
  119. -- ----------------------------
  120. INSERT INTO `sys_dept` VALUES (6, 0, '广西大学', '1', 10.00, NULL, NULL, NULL, NULL, NULL, 2, '2020-10-21 16:48:38.445', '2020-10-22 08:52:50.531', 1);
  121. INSERT INTO `sys_dept` VALUES (7, 6, '计算机与电子信息学院', '2', 10.00, NULL, NULL, NULL, NULL, NULL, 2, '2020-10-21 16:48:51.857', '2020-10-22 08:53:03.495', 1);
  122. -- ----------------------------
  123. -- Table structure for sys_dict
  124. -- ----------------------------
  125. DROP TABLE IF EXISTS `sys_dict`;
  126. CREATE TABLE `sys_dict` (
  127. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  128. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  129. `dict_key` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '唯一编码',
  130. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  131. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  132. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  133. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  134. PRIMARY KEY (`id`) USING BTREE
  135. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典' ROW_FORMAT = Dynamic;
  136. -- ----------------------------
  137. -- Records of sys_dict
  138. -- ----------------------------
  139. INSERT INTO `sys_dict` VALUES (1, '测试', 'sys_test', '测试', '2020-06-11 23:11:49.532', '2020-06-11 23:11:49.532', 2);
  140. INSERT INTO `sys_dict` VALUES (2, '用户类型', 'user_type', '用户类型123', '2020-06-28 21:23:32.961', '2020-07-16 23:51:19.401', 1);
  141. INSERT INTO `sys_dict` VALUES (3, '测试', '3333', NULL, '2020-07-03 15:38:00.319', '2020-07-03 15:38:00.319', 1);
  142. INSERT INTO `sys_dict` VALUES (4, '123', '123', '123', '2020-07-03 16:33:48.592', '2020-07-03 16:33:48.592', 1);
  143. -- ----------------------------
  144. -- Table structure for sys_dict_item
  145. -- ----------------------------
  146. DROP TABLE IF EXISTS `sys_dict_item`;
  147. CREATE TABLE `sys_dict_item` (
  148. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  149. `dict_id` bigint(20) UNSIGNED NOT NULL COMMENT '字典id',
  150. `name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '名称',
  151. `dict_item_value` int(10) UNSIGNED NOT NULL DEFAULT 1 COMMENT '值',
  152. `sort` double(10, 2) UNSIGNED NULL DEFAULT 10.00 COMMENT '排序',
  153. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  154. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  155. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  156. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  157. PRIMARY KEY (`id`) USING BTREE
  158. ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典项' ROW_FORMAT = Dynamic;
  159. -- ----------------------------
  160. -- Records of sys_dict_item
  161. -- ----------------------------
  162. INSERT INTO `sys_dict_item` VALUES (1, 1, '男', 10, 10.00, '', '2020-06-11 23:12:37.042', '2020-06-11 23:12:37.042', 2);
  163. INSERT INTO `sys_dict_item` VALUES (2, 2, 'test1', 10, 10.00, '普通用户', '2020-08-03 19:16:33.780', '2020-08-03 19:18:52.088', 2);
  164. INSERT INTO `sys_dict_item` VALUES (3, 2, 'test1', 10, 10.00, '普通用户', '2020-08-03 19:19:04.534', '2020-08-03 19:50:26.957', 1);
  165. -- ----------------------------
  166. -- Table structure for sys_menu
  167. -- ----------------------------
  168. DROP TABLE IF EXISTS `sys_menu`;
  169. CREATE TABLE `sys_menu` (
  170. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  171. `parent_id` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '父菜单id',
  172. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '菜单名称',
  173. `sort` double(10, 2) NULL DEFAULT 10.00 COMMENT '排序',
  174. `route_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由名称',
  175. `path` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '路由地址',
  176. `icon` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '图标',
  177. `is_show` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '是否显示(1->不显示|NO,2->显示|YES)',
  178. `is_cache` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否缓存(1->不缓存|NO,2->缓存|YES)',
  179. `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  180. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  181. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  182. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  183. PRIMARY KEY (`id`) USING BTREE
  184. ) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单' ROW_FORMAT = Dynamic;
  185. -- ----------------------------
  186. -- Records of sys_menu
  187. -- ----------------------------
  188. INSERT INTO `sys_menu` VALUES (1, 0, '系统设置', 10.00, 'sys', '/sys', 'sys', 2, 1, NULL, '2020-06-25 21:05:01.000', '2020-09-08 15:31:18.640', 1);
  189. INSERT INTO `sys_menu` VALUES (2, 1, '菜单管理', 1.00, 'sys:menu:index', '/sys/menu/index', 'tree-table', 2, 1, NULL, '2020-06-25 21:06:34.000', '2020-10-30 08:49:07.433', 1);
  190. INSERT INTO `sys_menu` VALUES (3, 1, '用户管理', 2.00, 'sys:user:index', '/sys/user/index', 'user', 2, 1, NULL, '2020-06-25 21:07:05.000', '2020-10-30 08:49:40.069', 1);
  191. INSERT INTO `sys_menu` VALUES (4, 1, '角色管理', 3.00, 'sys:role:index', '/sys/role/index', 'peoples', 2, 1, NULL, '2020-06-25 21:07:37.000', '2020-10-30 08:50:08.941', 1);
  192. INSERT INTO `sys_menu` VALUES (5, 1, '字典管理', 4.00, 'sys:dict:index', '/sys/dict/index', 'dict', 2, 1, NULL, '2020-06-25 21:08:08.000', '2020-10-30 08:50:30.754', 1);
  193. INSERT INTO `sys_menu` VALUES (6, 0, '内容管理', 11.00, 'cms', '/cms', 'cms', 2, 1, NULL, '2020-06-25 21:09:05.000', '2020-06-29 09:31:58.956', 1);
  194. INSERT INTO `sys_menu` VALUES (7, 6, '栏目管理', 1.00, 'cms:category:index', '/cms/category/index', 'table', 2, 1, NULL, '2020-06-25 21:09:36.000', '2020-10-30 08:53:54.727', 1);
  195. INSERT INTO `sys_menu` VALUES (8, 6, '模型管理', 2.00, 'cms:model:index', '/cms/model/index', 'build', 2, 1, NULL, '2020-06-25 21:10:23.000', '2020-10-30 08:55:12.253', 1);
  196. INSERT INTO `sys_menu` VALUES (9, 6, '文章管理', 3.00, 'cms:article:index', '/cms/article/index', 'documentation', 2, 1, NULL, '2020-06-25 21:10:50.000', '2020-10-30 08:55:19.841', 1);
  197. INSERT INTO `sys_menu` VALUES (10, 0, '订单管理', 12.00, 'oms', '/oms', 'oms', 2, 1, NULL, '2020-06-25 21:11:29.000', '2020-06-29 09:31:58.956', 1);
  198. INSERT INTO `sys_menu` VALUES (11, 10, '订单列表', 1.00, 'oms:order:index', '/oms/order/index', 'clipboard', 2, 1, NULL, '2020-06-25 21:11:55.000', '2020-10-30 08:55:49.596', 1);
  199. INSERT INTO `sys_menu` VALUES (12, 10, '订单设置', 2.00, 'oms:orderSetting:index', '/oms/orderSetting/index', 'edit', 2, 1, NULL, '2020-06-25 21:12:15.000', '2020-10-30 08:56:25.056', 1);
  200. INSERT INTO `sys_menu` VALUES (13, 0, '商品管理', 13.00, 'pms', 'pms', 'pms', 2, 1, NULL, '2020-06-25 21:14:02.000', '2020-07-10 10:31:46.482', 1);
  201. INSERT INTO `sys_menu` VALUES (14, 13, '商品分类', 1.00, 'pms:productCategory:index', '/pms/productCategory/index', 'cascader', 2, 1, NULL, '2020-06-25 21:16:05.000', '2020-10-30 08:56:43.499', 1);
  202. INSERT INTO `sys_menu` VALUES (15, 13, '商品列表', 2.00, 'pms:product:index', '/pms/product/index', 'excel', 2, 1, NULL, '2020-06-25 21:16:36.000', '2020-10-30 08:56:57.348', 1);
  203. INSERT INTO `sys_menu` VALUES (16, 13, '品牌管理', 3.00, 'pms:brand:index', '/pms/brand/index', 'dashboard', 2, 1, NULL, '2020-06-25 21:16:57.000', '2020-10-30 08:57:06.981', 1);
  204. INSERT INTO `sys_menu` VALUES (21, 1, '日志管理', 5.00, 'sys:requestLog:index', '/sys/requestLog/index', 'log', 2, 1, NULL, '2020-09-06 20:39:14.137', '2020-10-30 08:50:57.871', 1);
  205. INSERT INTO `sys_menu` VALUES (22, 1, '部门管理', 10.00, 'sys:dept:index', '/sys/dept/index', 'tree', 2, 1, NULL, '2020-10-21 16:15:22.926', '2020-10-30 08:51:31.096', 1);
  206. INSERT INTO `sys_menu` VALUES (23, 1, '岗位管理', 10.00, 'sys:post:index', '/sys/post/index', 'post', 2, 1, NULL, '2020-10-21 17:23:12.122', '2020-10-30 08:51:45.195', 1);
  207. INSERT INTO `sys_menu` VALUES (24, 1, '通知公告', 10.10, 'sys:notice:index', '/sys/notice/index', 'message', 2, 1, NULL, '2020-10-27 20:41:46.632', '2020-10-30 08:52:52.775', 1);
  208. INSERT INTO `sys_menu` VALUES (25, 1, '参数配置', 10.20, 'sys:config:index', '/sys/config/index', 'edit', 2, 1, NULL, '2020-11-08 16:39:05.673', '2020-11-08 16:39:05.673', 1);
  209. INSERT INTO `sys_menu` VALUES (26, 1, '接口清单', 1.10, 'sys:menu:mapilist', '/sys/menu/mapilist', 'list', 2, 1, NULL, '2020-11-08 17:17:28.527', '2020-11-08 17:40:07.579', 1);
  210. INSERT INTO `sys_menu` VALUES (27, 0, '工作流', 10.10, 'wf', '/wf', 'guide', 2, 1, NULL, '2022-04-04 20:15:47.642', '2022-04-04 20:16:13.804', 1);
  211. INSERT INTO `sys_menu` VALUES (28, 27, '流程定义', 1.00, 'wf:process:index', '/wf/process/index', 'drag', 2, 1, NULL, '2022-04-04 20:16:48.936', '2022-04-04 20:16:48.936', 1);
  212. INSERT INTO `sys_menu` VALUES (29, 27, '流程实例', 2.00, 'wf:order:index', '/wf/order/index', 'documentation', 2, 1, NULL, '2022-04-04 20:19:27.441', '2022-04-04 20:19:27.441', 1);
  213. INSERT INTO `sys_menu` VALUES (30, 27, '流程任务', 3.00, 'wf:task:index', 'BlankLayout', 'excel', 2, 1, NULL, '2022-04-04 20:20:13.762', '2022-04-05 10:01:30.417', 1);
  214. INSERT INTO `sys_menu` VALUES (31, 30, '我的待办', 1.00, 'wf:task:todolist', '/wf/task/todolist', NULL, 2, 1, NULL, '2022-04-05 09:48:03.076', '2022-04-05 09:48:03.076', 1);
  215. INSERT INTO `sys_menu` VALUES (32, 30, '我的已办', 2.00, 'wf:task:donelist', '/wf/task/donelist', NULL, 2, 1, NULL, '2022-04-05 09:48:27.676', '2022-04-05 09:48:27.676', 1);
  216. -- ----------------------------
  217. -- Table structure for sys_notice
  218. -- ----------------------------
  219. DROP TABLE IF EXISTS `sys_notice`;
  220. CREATE TABLE `sys_notice` (
  221. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '编号',
  222. `title` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公告标题',
  223. `type` int(6) UNSIGNED NULL DEFAULT 10 COMMENT '公告类型(10->通知|TZ,20->公告|GG)',
  224. `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '公告内容',
  225. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  226. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  227. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  228. PRIMARY KEY (`id`) USING BTREE
  229. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '通知公告' ROW_FORMAT = Dynamic;
  230. -- ----------------------------
  231. -- Records of sys_notice
  232. -- ----------------------------
  233. INSERT INTO `sys_notice` VALUES (1, '元旦放假通知', 10, '元旦放假通知', '2020-11-03 21:55:00.915', '2020-11-03 21:55:00.915', 1);
  234. -- ----------------------------
  235. -- Table structure for sys_post
  236. -- ----------------------------
  237. DROP TABLE IF EXISTS `sys_post`;
  238. CREATE TABLE `sys_post` (
  239. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  240. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位名称',
  241. `code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '岗位编号',
  242. `sort` double(10, 2) UNSIGNED NULL DEFAULT 10.00 COMMENT '排序',
  243. `is_enabled` tinyint(1) UNSIGNED NULL DEFAULT 2 COMMENT '是否启用(1->禁用|NO,2->启用|YES)',
  244. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  245. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  246. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  247. PRIMARY KEY (`id`) USING BTREE
  248. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  249. -- ----------------------------
  250. -- Records of sys_post
  251. -- ----------------------------
  252. INSERT INTO `sys_post` VALUES (1, '董事长', 'ceo', 10.00, 2, '2020-10-21 17:23:40.267', '2020-10-21 17:23:40.267', 1);
  253. INSERT INTO `sys_post` VALUES (2, '项目经理', 'se', 10.00, 2, '2020-10-21 17:23:51.307', '2020-10-21 17:23:51.307', 1);
  254. INSERT INTO `sys_post` VALUES (3, '人力资源', 'hr', 10.00, 2, '2020-10-21 17:24:11.484', '2020-10-21 17:24:11.484', 1);
  255. INSERT INTO `sys_post` VALUES (4, '普通员工', 'user', 10.00, 2, '2020-10-21 17:25:01.004', '2020-10-21 17:25:01.004', 1);
  256. -- ----------------------------
  257. -- Table structure for sys_request_log
  258. -- ----------------------------
  259. DROP TABLE IF EXISTS `sys_request_log`;
  260. CREATE TABLE `sys_request_log` (
  261. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  262. `track_id` char(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求唯一标识',
  263. `request_type` int(10) UNSIGNED NULL DEFAULT 99 COMMENT '请求类型(10->添加|SAVE,20->修改|UPDATE,30->删除|REMOVE,40->导入|IMPORT,50->导出|EXPORT,99->其他|OTHER)',
  264. `uri` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求路径',
  265. `query_string` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求url参数',
  266. `method` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求方式',
  267. `description` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作说明',
  268. `ip` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '客户端ip',
  269. `body` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求体',
  270. `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '请求token',
  271. `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户id',
  272. `user_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  273. `return_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '返回参数',
  274. `start_time` datetime(3) NULL DEFAULT NULL COMMENT '开始时间',
  275. `end_time` datetime(3) NULL DEFAULT NULL COMMENT '结束时间',
  276. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  277. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  278. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  279. PRIMARY KEY (`id`) USING BTREE
  280. ) ENGINE = InnoDB AUTO_INCREMENT = 683 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '请求日志' ROW_FORMAT = Dynamic;
  281. -- ----------------------------
  282. -- Records of sys_request_log
  283. -- ----------------------------
  284. -- ----------------------------
  285. -- Table structure for sys_role
  286. -- ----------------------------
  287. DROP TABLE IF EXISTS `sys_role`;
  288. CREATE TABLE `sys_role` (
  289. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  290. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '角色名称',
  291. `role_key` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '角色标识(唯一)',
  292. `role_type` int(6) NULL DEFAULT 10 COMMENT '角色类型(10->管理员|ADMIN,20->流程审核员|WORKFLOW)',
  293. `data_scope` int(6) UNSIGNED NULL DEFAULT 10 COMMENT '数据范围(10->所有数据权限|ALL,20->部门数据权限|DEPT,30->部门及以下数据权限|DEPT_CHILD,40->仅本人数据权限|MYSELF,50->自定义数据权限|CUSTOM)',
  294. `is_enabled` tinyint(1) NULL DEFAULT 2 COMMENT '是否启用(1->禁用|NO,2->启用|YES)',
  295. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
  296. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  297. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  298. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  299. PRIMARY KEY (`id`) USING BTREE
  300. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色' ROW_FORMAT = Compact;
  301. -- ----------------------------
  302. -- Records of sys_role
  303. -- ----------------------------
  304. INSERT INTO `sys_role` VALUES (1, '普通管理员', 'NORMAL_MANAGE', 10, 10, 1, '普通管理员', '2020-05-31 07:07:26.000', '2020-05-31 07:07:29.000', 2);
  305. INSERT INTO `sys_role` VALUES (2, '超级管理员', 'SUPER_ADMIN', 10, 10, 2, '超级管理员', '2020-06-27 07:20:01.638', '2020-07-14 16:54:49.631', 1);
  306. INSERT INTO `sys_role` VALUES (3, '审批专员', 'approveBoss', 10, 10, 2, '审批专员', '2020-06-27 07:23:38.401', '2020-07-03 16:34:27.677', 1);
  307. INSERT INTO `sys_role` VALUES (4, '工作流审批', 'approveDept', 10, 10, 2, '123', '2020-07-03 16:34:09.588', '2020-07-03 16:34:09.588', 1);
  308. -- ----------------------------
  309. -- Table structure for sys_role_access
  310. -- ----------------------------
  311. DROP TABLE IF EXISTS `sys_role_access`;
  312. CREATE TABLE `sys_role_access` (
  313. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  314. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id',
  315. `access` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '权限标识',
  316. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  317. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  318. `is_deleted` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  319. PRIMARY KEY (`id`) USING BTREE,
  320. INDEX `idx_sys_role_access`(`access`) USING BTREE
  321. ) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色权限关系' ROW_FORMAT = Dynamic;
  322. -- ----------------------------
  323. -- Records of sys_role_access
  324. -- ----------------------------
  325. INSERT INTO `sys_role_access` VALUES (1, 3, 'sys:uploadRecord:index', '2020-06-30 23:06:48.500', '2020-06-30 23:06:48.500', 2);
  326. INSERT INTO `sys_role_access` VALUES (2, 3, 'sys:upload:createUploadToken', '2020-06-30 23:06:48.500', '2020-06-30 23:06:48.500', 2);
  327. INSERT INTO `sys_role_access` VALUES (3, 3, 'sys:uploadRecord:remove', '2020-06-30 23:06:48.500', '2020-06-30 23:06:48.500', 2);
  328. INSERT INTO `sys_role_access` VALUES (4, 3, 'sys:uploadRecord:get', '2020-06-30 23:06:48.500', '2020-06-30 23:06:48.500', 2);
  329. INSERT INTO `sys_role_access` VALUES (5, 3, 'sys:uploadRecord:list', '2020-06-30 23:06:48.500', '2020-06-30 23:06:48.500', 2);
  330. INSERT INTO `sys_role_access` VALUES (6, 3, 'sys:dictItem:index', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  331. INSERT INTO `sys_role_access` VALUES (7, 3, 'sys:dictItem:remove', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  332. INSERT INTO `sys_role_access` VALUES (8, 3, 'sys:dictItem:get', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  333. INSERT INTO `sys_role_access` VALUES (9, 3, 'sys:dictItem:update', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  334. INSERT INTO `sys_role_access` VALUES (10, 3, 'sys:dictItem:list', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  335. INSERT INTO `sys_role_access` VALUES (11, 3, 'sys:dictItem:save', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  336. INSERT INTO `sys_role_access` VALUES (12, 3, 'sys:dict:index', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  337. INSERT INTO `sys_role_access` VALUES (13, 3, 'sys:dict:listAllEnum', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  338. INSERT INTO `sys_role_access` VALUES (14, 3, 'sys:dict:getByDictKey', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  339. INSERT INTO `sys_role_access` VALUES (15, 3, 'sys:dict:remove', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  340. INSERT INTO `sys_role_access` VALUES (16, 3, 'sys:dict:get', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  341. INSERT INTO `sys_role_access` VALUES (17, 3, 'sys:dict:update', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  342. INSERT INTO `sys_role_access` VALUES (18, 3, 'sys:dict:list', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  343. INSERT INTO `sys_role_access` VALUES (19, 3, 'sys:dict:save', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  344. INSERT INTO `sys_role_access` VALUES (20, 3, 'sys:user:get', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  345. INSERT INTO `sys_role_access` VALUES (21, 3, 'sys:user:update', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  346. INSERT INTO `sys_role_access` VALUES (22, 3, 'sys:user:list', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  347. INSERT INTO `sys_role_access` VALUES (23, 3, 'sys:user:save', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  348. INSERT INTO `sys_role_access` VALUES (24, 3, 'sys:menu:index', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  349. INSERT INTO `sys_role_access` VALUES (25, 3, 'sys:menu:remove', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  350. INSERT INTO `sys_role_access` VALUES (26, 3, 'sys:menu:get', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  351. INSERT INTO `sys_role_access` VALUES (27, 3, 'sys:menu:update', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  352. INSERT INTO `sys_role_access` VALUES (28, 3, 'sys:menu:list', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  353. INSERT INTO `sys_role_access` VALUES (29, 3, 'sys:menu:save', '2020-07-01 21:50:57.094', '2020-07-01 21:50:57.094', 1);
  354. INSERT INTO `sys_role_access` VALUES (30, 2, 'sys:role:remove', '2020-07-02 17:21:14.484', '2020-07-02 17:21:14.484', 1);
  355. INSERT INTO `sys_role_access` VALUES (31, 2, 'sys:uploadConfig:index', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  356. INSERT INTO `sys_role_access` VALUES (32, 2, 'sys:uploadConfig:remove', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  357. INSERT INTO `sys_role_access` VALUES (33, 2, 'sys:uploadConfig:get', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  358. INSERT INTO `sys_role_access` VALUES (34, 2, 'sys:uploadConfig:update', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  359. INSERT INTO `sys_role_access` VALUES (35, 2, 'sys:uploadConfig:list', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  360. INSERT INTO `sys_role_access` VALUES (36, 2, 'sys:uploadConfig:save', '2020-07-07 09:16:39.508', '2020-07-07 09:16:39.508', 2);
  361. INSERT INTO `sys_role_access` VALUES (37, 2, 'sys:user:index', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  362. INSERT INTO `sys_role_access` VALUES (38, 2, 'sys:user:remove', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  363. INSERT INTO `sys_role_access` VALUES (39, 2, 'sys:user:get', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  364. INSERT INTO `sys_role_access` VALUES (40, 2, 'sys:user:update', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  365. INSERT INTO `sys_role_access` VALUES (41, 2, 'sys:user:list', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  366. INSERT INTO `sys_role_access` VALUES (42, 2, 'sys:user:save', '2020-07-19 02:31:43.325', '2020-07-19 02:31:43.325', 1);
  367. -- ----------------------------
  368. -- Table structure for sys_role_dept
  369. -- ----------------------------
  370. DROP TABLE IF EXISTS `sys_role_dept`;
  371. CREATE TABLE `sys_role_dept` (
  372. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  373. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id',
  374. `dept_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id',
  375. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  376. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  377. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  378. PRIMARY KEY (`id`) USING BTREE
  379. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色部门关系表' ROW_FORMAT = Dynamic;
  380. -- ----------------------------
  381. -- Records of sys_role_dept
  382. -- ----------------------------
  383. INSERT INTO `sys_role_dept` VALUES (1, 3, 6, '2020-12-23 20:02:27.000', '2020-12-23 20:02:29.000', 1);
  384. -- ----------------------------
  385. -- Table structure for sys_role_menu
  386. -- ----------------------------
  387. DROP TABLE IF EXISTS `sys_role_menu`;
  388. CREATE TABLE `sys_role_menu` (
  389. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  390. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id',
  391. `menu_id` bigint(20) UNSIGNED NOT NULL COMMENT '菜单id',
  392. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  393. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  394. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  395. PRIMARY KEY (`id`) USING BTREE
  396. ) ENGINE = InnoDB AUTO_INCREMENT = 47 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色菜单关系' ROW_FORMAT = Dynamic;
  397. -- ----------------------------
  398. -- Records of sys_role_menu
  399. -- ----------------------------
  400. INSERT INTO `sys_role_menu` VALUES (1, 2, 6, '2020-06-30 23:13:54.765', '2020-06-30 23:13:54.765', 2);
  401. INSERT INTO `sys_role_menu` VALUES (2, 2, 7, '2020-06-30 23:13:54.765', '2020-06-30 23:13:54.765', 2);
  402. INSERT INTO `sys_role_menu` VALUES (3, 2, 8, '2020-06-30 23:13:54.765', '2020-06-30 23:13:54.765', 2);
  403. INSERT INTO `sys_role_menu` VALUES (4, 2, 9, '2020-06-30 23:13:54.765', '2020-06-30 23:13:54.765', 2);
  404. INSERT INTO `sys_role_menu` VALUES (5, 3, 7, '2020-06-30 23:26:49.656', '2020-06-30 23:26:49.656', 2);
  405. INSERT INTO `sys_role_menu` VALUES (6, 3, 8, '2020-06-30 23:26:49.656', '2020-06-30 23:26:49.656', 2);
  406. INSERT INTO `sys_role_menu` VALUES (7, 3, 10, '2020-06-30 23:26:49.656', '2020-06-30 23:26:49.656', 2);
  407. INSERT INTO `sys_role_menu` VALUES (8, 3, 11, '2020-06-30 23:26:49.656', '2020-06-30 23:26:49.656', 2);
  408. INSERT INTO `sys_role_menu` VALUES (9, 3, 12, '2020-06-30 23:26:49.656', '2020-06-30 23:26:49.656', 2);
  409. INSERT INTO `sys_role_menu` VALUES (10, 3, 1, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 2);
  410. INSERT INTO `sys_role_menu` VALUES (11, 3, 2, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 1);
  411. INSERT INTO `sys_role_menu` VALUES (12, 3, 3, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 1);
  412. INSERT INTO `sys_role_menu` VALUES (13, 3, 4, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 2);
  413. INSERT INTO `sys_role_menu` VALUES (14, 3, 5, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 1);
  414. INSERT INTO `sys_role_menu` VALUES (15, 3, 7, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 1);
  415. INSERT INTO `sys_role_menu` VALUES (16, 3, 9, '2020-07-01 21:51:20.294', '2020-07-01 21:51:20.294', 1);
  416. INSERT INTO `sys_role_menu` VALUES (17, 2, 2, '2020-07-02 12:20:51.642', '2020-07-02 12:20:51.642', 2);
  417. INSERT INTO `sys_role_menu` VALUES (18, 2, 3, '2020-07-02 12:20:51.642', '2020-07-02 12:20:51.642', 2);
  418. INSERT INTO `sys_role_menu` VALUES (19, 2, 1, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  419. INSERT INTO `sys_role_menu` VALUES (20, 2, 4, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  420. INSERT INTO `sys_role_menu` VALUES (21, 2, 5, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  421. INSERT INTO `sys_role_menu` VALUES (22, 2, 10, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  422. INSERT INTO `sys_role_menu` VALUES (23, 2, 11, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  423. INSERT INTO `sys_role_menu` VALUES (24, 2, 12, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 1);
  424. INSERT INTO `sys_role_menu` VALUES (25, 2, 13, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  425. INSERT INTO `sys_role_menu` VALUES (26, 2, 14, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  426. INSERT INTO `sys_role_menu` VALUES (27, 2, 15, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  427. INSERT INTO `sys_role_menu` VALUES (28, 2, 16, '2020-07-02 12:23:15.379', '2020-07-02 12:23:15.379', 2);
  428. INSERT INTO `sys_role_menu` VALUES (29, 2, 10, '2020-07-02 13:48:35.866', '2020-07-02 13:48:35.866', 1);
  429. INSERT INTO `sys_role_menu` VALUES (30, 2, 11, '2020-07-02 13:48:35.866', '2020-07-02 13:48:35.866', 1);
  430. INSERT INTO `sys_role_menu` VALUES (31, 4, 3, '2020-07-15 09:15:50.925', '2020-07-15 09:15:50.925', 1);
  431. INSERT INTO `sys_role_menu` VALUES (32, 4, 4, '2020-07-15 09:15:50.925', '2020-07-15 09:15:50.925', 1);
  432. INSERT INTO `sys_role_menu` VALUES (33, 2, 1, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  433. INSERT INTO `sys_role_menu` VALUES (34, 2, 2, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  434. INSERT INTO `sys_role_menu` VALUES (35, 2, 3, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  435. INSERT INTO `sys_role_menu` VALUES (36, 2, 4, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  436. INSERT INTO `sys_role_menu` VALUES (37, 2, 5, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  437. INSERT INTO `sys_role_menu` VALUES (38, 2, 6, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  438. INSERT INTO `sys_role_menu` VALUES (39, 2, 7, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  439. INSERT INTO `sys_role_menu` VALUES (40, 2, 8, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  440. INSERT INTO `sys_role_menu` VALUES (41, 2, 9, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  441. INSERT INTO `sys_role_menu` VALUES (42, 2, 13, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  442. INSERT INTO `sys_role_menu` VALUES (43, 2, 14, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  443. INSERT INTO `sys_role_menu` VALUES (44, 2, 15, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  444. INSERT INTO `sys_role_menu` VALUES (45, 2, 16, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  445. INSERT INTO `sys_role_menu` VALUES (46, 2, 17, '2020-08-26 15:41:12.202', '2020-08-26 15:41:12.202', 1);
  446. -- ----------------------------
  447. -- Table structure for sys_upload_config
  448. -- ----------------------------
  449. DROP TABLE IF EXISTS `sys_upload_config`;
  450. CREATE TABLE `sys_upload_config` (
  451. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  452. `biz_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务名称',
  453. `biz_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务类型',
  454. `file_size_min` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '限定上传文件大小最小值,单位`byte`。(0为不限制)',
  455. `file_size_max` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '限定上传文件大小最大值,单位`byte`。(0为不限制)',
  456. `file_ext` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '限定用户上传后辍(多个逗号分割)',
  457. `upload_dir` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上传目录',
  458. `upload_sub_dir` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '上传子目录',
  459. `base_url` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '访问地址前辍',
  460. `callback_url` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '回调地址',
  461. `naming_strategy` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '命名策略',
  462. `is_record` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否记录(1->不记录|NO,2->记录|YES)',
  463. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  464. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  465. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  466. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  467. PRIMARY KEY (`id`) USING BTREE
  468. ) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '上传配置' ROW_FORMAT = Dynamic;
  469. -- ----------------------------
  470. -- Records of sys_upload_config
  471. -- ----------------------------
  472. INSERT INTO `sys_upload_config` VALUES (1, '头像', 'avatar', 0, 2097152, '.png,.jpg,.jpeg', NULL, '', 'http://qiniu.mldong.com/', 'http://api.mldong.com/sys/uploadRecord/handleCallback', 'default', 1, '头像', '2020-06-14 12:07:03.024', '2020-06-14 12:07:03.024', 2);
  473. -- ----------------------------
  474. -- Table structure for sys_upload_record
  475. -- ----------------------------
  476. DROP TABLE IF EXISTS `sys_upload_record`;
  477. CREATE TABLE `sys_upload_record` (
  478. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  479. `biz_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务类型',
  480. `biz_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '业务id',
  481. `url` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件保存的资源路径',
  482. `file_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上传的原始文件名',
  483. `file_size` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '资源大小,单位为字节',
  484. `mime_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源类型',
  485. `file_ext` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上传资源的后缀名',
  486. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  487. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  488. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  489. PRIMARY KEY (`id`) USING BTREE
  490. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '上传记录' ROW_FORMAT = Dynamic;
  491. -- ----------------------------
  492. -- Records of sys_upload_record
  493. -- ----------------------------
  494. INSERT INTO `sys_upload_record` VALUES (4, 'avatar', '7f07a3cc-77ba-47b9-af74-88b2631f2bc4', 'avatar/202006/50d0f9e5-fa60-4551-a0d9-714923575637.png', 'qrcode.png', 497, 'image/png', '.png', '2020-06-14 13:10:30.102', '2020-06-14 13:10:30.102', 2);
  495. -- ----------------------------
  496. -- Table structure for sys_user
  497. -- ----------------------------
  498. DROP TABLE IF EXISTS `sys_user`;
  499. CREATE TABLE `sys_user` (
  500. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  501. `user_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '用户名',
  502. `real_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
  503. `avatar` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '头像',
  504. `email` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  505. `mobile_phone` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手机号',
  506. `telephone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话',
  507. `password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  508. `salt` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '加盐',
  509. `sex` int(6) UNSIGNED NULL DEFAULT 1 COMMENT '性别(1->男|MALE,2->女|FEMALE,3->未知|UNKNOWN)',
  510. `is_locked` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否锁定(2->已锁定|YES,1->未锁定|NO)',
  511. `dept_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '部门id',
  512. `post_id` bigint(20) UNSIGNED NULL DEFAULT NULL COMMENT '岗位id',
  513. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  514. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  515. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  516. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  517. PRIMARY KEY (`id`) USING BTREE,
  518. INDEX `real_name`(`real_name`) USING BTREE,
  519. INDEX `user_name`(`user_name`) USING BTREE
  520. ) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户' ROW_FORMAT = Compact;
  521. -- ----------------------------
  522. -- Records of sys_user
  523. -- ----------------------------
  524. INSERT INTO `sys_user` VALUES (1, 'admin', 'mldong', '', '', '18676163666', '', 'd235fdf30381ac33cf71a19344a97590', 'qpma6gn1', 1, 1, 6, 4, NULL, '2020-06-09 21:47:33.417', '2020-10-22 08:47:53.307', 1);
  525. INSERT INTO `sys_user` VALUES (5, 'demo666', '测试号', NULL, NULL, '18276163688', NULL, '835d2134b35fa1d9387e42f625331acb', 'kkv5dxxw', 1, 1, NULL, NULL, NULL, '2020-06-19 23:00:53.709', '2020-06-20 00:15:45.055', 2);
  526. INSERT INTO `sys_user` VALUES (6, '小李子', '李白', NULL, '851321457@qq.com', '13669584561', NULL, 'ab55f269cbe23cc7f55dfbaf68bc3ac3', 'c2vntsr0', 2, 1, NULL, NULL, NULL, '2020-06-21 16:22:07.275', '2020-06-21 16:26:41.629', 2);
  527. INSERT INTO `sys_user` VALUES (7, '123', '123', NULL, '123456789@qq.com', '13333333333', NULL, 'f74a8d6c25e272cab53c33fa44459e09', 'dm78rsew', 1, 1, NULL, NULL, NULL, '2020-06-22 09:54:38.859', '2020-06-22 10:04:55.848', 2);
  528. INSERT INTO `sys_user` VALUES (8, '对方的发', '大的', NULL, '8551312@163.com', '13023123256', NULL, '810fe86875a5687287e84af1cef2ad54', 'g80fa065', 1, 1, NULL, NULL, NULL, '2020-06-22 10:00:08.934', '2020-06-22 10:04:51.947', 2);
  529. INSERT INTO `sys_user` VALUES (9, 'ni', '大的', NULL, '8551312@163.com', '13023123256', NULL, 'c079872794690156289617a60a11c316', 'ztih3jzc', 2, 1, NULL, NULL, NULL, '2020-06-22 10:01:12.890', '2020-07-09 14:17:28.401', 2);
  530. INSERT INTO `sys_user` VALUES (10, '地方v的', 'hghg', NULL, '13696452586@163.com', '13645607895', NULL, 'd9acbc2eef540ffc8ea6dd8fdacd37cc', 'jpqocubh', 2, 1, NULL, NULL, NULL, '2020-06-22 10:06:41.892', '2020-07-09 14:17:25.562', 2);
  531. INSERT INTO `sys_user` VALUES (11, '孙狗', '孙笑川', NULL, NULL, '17444444444', NULL, '7941882c9fdcd4bb2a17b804d2b5c5ba', 'ewst066f', 1, 1, NULL, NULL, NULL, '2020-06-22 15:03:06.617', '2020-07-09 14:17:20.153', 2);
  532. INSERT INTO `sys_user` VALUES (12, 'mldong', 'mldong', NULL, '', '18276162636', NULL, 'cc11af98f4e595d4ee99154fc212ec49', 's9x7qwnk', 1, 1, NULL, NULL, NULL, '2020-07-01 21:49:03.509', '2020-07-09 14:17:17.237', 1);
  533. INSERT INTO `sys_user` VALUES (13, 'www', 'www', NULL, NULL, '13000000000', NULL, 'b2e5c56f0b93187d054a0be5c03e13c3', 'dwuiljkf', 1, 1, NULL, NULL, NULL, '2020-07-02 12:25:29.586', '2020-07-02 14:25:48.123', 2);
  534. INSERT INTO `sys_user` VALUES (14, 'dsfdf', 'dfgdfg', NULL, '85513141@163.com', '13512345678', NULL, '5850c814ee651629fb437c01227e9abd', 't60qeu2p', 1, 1, NULL, NULL, NULL, '2020-07-09 14:18:02.937', '2020-07-11 11:16:00.501', 2);
  535. INSERT INTO `sys_user` VALUES (15, '111111', '111111111', NULL, NULL, '13333333333', NULL, '6b58a2de83b205feed7d931f8eb639c1', 'vqmpxen7', 1, 1, 7, 4, NULL, '2020-07-15 09:16:17.159', '2020-10-22 08:48:57.973', 1);
  536. -- ----------------------------
  537. -- Table structure for sys_user_login_times
  538. -- ----------------------------
  539. DROP TABLE IF EXISTS `sys_user_login_times`;
  540. CREATE TABLE `sys_user_login_times` (
  541. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  542. `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户id',
  543. `login_ip` char(15) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '登录ip',
  544. `times` int(10) UNSIGNED NOT NULL DEFAULT 1 COMMENT '登录次数',
  545. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  546. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  547. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  548. PRIMARY KEY (`id`) USING BTREE
  549. ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户登录次数' ROW_FORMAT = Dynamic;
  550. -- ----------------------------
  551. -- Records of sys_user_login_times
  552. -- ----------------------------
  553. -- ----------------------------
  554. -- Table structure for sys_user_role
  555. -- ----------------------------
  556. DROP TABLE IF EXISTS `sys_user_role`;
  557. CREATE TABLE `sys_user_role` (
  558. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  559. `user_id` bigint(20) UNSIGNED NOT NULL COMMENT '用户id',
  560. `role_id` bigint(20) UNSIGNED NOT NULL COMMENT '角色id',
  561. `create_time` datetime(3) NOT NULL COMMENT '创建时间',
  562. `update_time` datetime(3) NOT NULL COMMENT '更新时间',
  563. `is_deleted` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否删除(1->未删除|NO,2->已删除|YES)',
  564. PRIMARY KEY (`id`) USING BTREE
  565. ) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户角色关系表' ROW_FORMAT = Dynamic;
  566. -- ----------------------------
  567. -- Records of sys_user_role
  568. -- ----------------------------
  569. INSERT INTO `sys_user_role` VALUES (1, 10, 2, '2020-07-01 21:24:36.859', '2020-07-01 21:24:36.859', 2);
  570. INSERT INTO `sys_user_role` VALUES (2, 11, 2, '2020-07-01 21:24:36.859', '2020-07-01 21:24:36.859', 2);
  571. INSERT INTO `sys_user_role` VALUES (3, 11, 2, '2020-07-01 21:34:35.573', '2020-07-01 21:34:35.573', 1);
  572. INSERT INTO `sys_user_role` VALUES (4, 9, 2, '2020-07-01 21:35:27.229', '2020-07-01 21:35:27.229', 2);
  573. INSERT INTO `sys_user_role` VALUES (5, 9, 2, '2020-07-01 21:36:31.589', '2020-07-01 21:36:31.589', 2);
  574. INSERT INTO `sys_user_role` VALUES (6, 9, 2, '2020-07-01 21:40:58.618', '2020-07-01 21:40:58.618', 2);
  575. INSERT INTO `sys_user_role` VALUES (7, 1, 2, '2020-07-01 21:46:19.510', '2020-07-01 21:46:19.510', 2);
  576. INSERT INTO `sys_user_role` VALUES (8, 9, 2, '2020-07-01 21:47:30.524', '2020-07-01 21:47:30.524', 2);
  577. INSERT INTO `sys_user_role` VALUES (9, 1, 2, '2020-07-01 21:47:49.724', '2020-07-01 21:47:49.724', 2);
  578. INSERT INTO `sys_user_role` VALUES (10, 12, 3, '2020-07-01 21:50:12.448', '2020-07-01 21:50:12.448', 1);
  579. INSERT INTO `sys_user_role` VALUES (11, 1, 2, '2020-07-02 12:21:17.749', '2020-07-02 12:21:17.749', 1);
  580. INSERT INTO `sys_user_role` VALUES (12, 1, 4, '2020-07-15 09:15:32.158', '2020-07-15 09:15:32.158', 1);
  581. INSERT INTO `sys_user_role` VALUES (13, 1, 3, '2022-04-03 13:33:32.000', '2022-04-03 13:33:36.000', 1);
  582. -- ----------------------------
  583. -- Table structure for wf_cc_order
  584. -- ----------------------------
  585. DROP TABLE IF EXISTS `wf_cc_order`;
  586. CREATE TABLE `wf_cc_order` (
  587. `order_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程实例ID',
  588. `actor_Id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参与者ID',
  589. `creator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发起人',
  590. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '抄送时间',
  591. `finish_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '完成时间',
  592. `status` tinyint(1) NULL DEFAULT NULL COMMENT '状态',
  593. INDEX `IDX_CCORDER_ORDER`(`order_Id`) USING BTREE
  594. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '抄送实例表' ROW_FORMAT = Dynamic;
  595. -- ----------------------------
  596. -- Records of wf_cc_order
  597. -- ----------------------------
  598. -- ----------------------------
  599. -- Table structure for wf_hist_order
  600. -- ----------------------------
  601. DROP TABLE IF EXISTS `wf_hist_order`;
  602. CREATE TABLE `wf_hist_order` (
  603. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  604. `process_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '流程定义ID',
  605. `order_State` tinyint(1) NOT NULL COMMENT '状态',
  606. `creator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发起人',
  607. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '发起时间',
  608. `end_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '完成时间',
  609. `expire_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '期望完成时间',
  610. `priority` tinyint(1) NULL DEFAULT NULL COMMENT '优先级',
  611. `parent_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父流程ID',
  612. `order_No` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程实例编号',
  613. `variable` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附属变量json存储',
  614. PRIMARY KEY (`id`) USING BTREE,
  615. INDEX `IDX_HIST_ORDER_PROCESSID`(`process_Id`) USING BTREE,
  616. INDEX `IDX_HIST_ORDER_NO`(`order_No`) USING BTREE,
  617. INDEX `FK_HIST_ORDER_PARENTID`(`parent_Id`) USING BTREE,
  618. CONSTRAINT `FK_HIST_ORDER_PARENTID` FOREIGN KEY (`parent_Id`) REFERENCES `wf_hist_order` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  619. CONSTRAINT `FK_HIST_ORDER_PROCESSID` FOREIGN KEY (`process_Id`) REFERENCES `wf_process` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  620. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '历史流程实例表' ROW_FORMAT = Dynamic;
  621. -- ----------------------------
  622. -- Records of wf_hist_order
  623. -- ----------------------------
  624. INSERT INTO `wf_hist_order` VALUES ('3a73e28221f04c56be3a15926409d3d2', '29cf3267885b4f8a85f0ac0e89b735a9', 1, '1', '2022-05-06 23:05:51', NULL, NULL, NULL, NULL, '1b0221016ce44a6f9d2261a625ac8168', '{\"apply\":1,\"audit\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"1b0221016ce44a6f9d2261a625ac8168\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  625. INSERT INTO `wf_hist_order` VALUES ('70c2a2143487441b9e4a1d37126e95c4', 'b28c099e9a3648b68d4358ae26553519', 0, '1', '2022-04-05 22:45:51', '2022-04-05 22:51:59', NULL, NULL, NULL, 'dc13383002704e2bb9ff7accf3504f3b', '{\"f_day\":1,\"f_reason\":\"8888\",\"f_startTime\":\"2022-04-05 00:00:00\",\"f_endTime\":\"2022-04-06 00:00:00\",\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"dc13383002704e2bb9ff7accf3504f3b\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"orderStatus\":3,\"approvalType\":0,\"approvalOpinion\":\"不同意\"}');
  626. INSERT INTO `wf_hist_order` VALUES ('e875cd755f05439a87143c38f9c26a4e', '29cf3267885b4f8a85f0ac0e89b735a9', 0, '1', '2022-05-06 22:20:54', '2022-05-06 22:58:30', NULL, NULL, NULL, 'c21034b29b33488581b8971bf594125a', '{\"apply\":1,\"audit\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"c21034b29b33488581b8971bf594125a\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"hasNext\":1,\"orderState\":3}');
  627. INSERT INTO `wf_hist_order` VALUES ('f1bd25797aae4732838676f539c622ef', 'b28c099e9a3648b68d4358ae26553519', 1, '1', '2022-04-19 21:35:57', NULL, NULL, NULL, NULL, '295279926757418fa88ad9e8a368cab6', '{\"f_day\":3,\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"295279926757418fa88ad9e8a368cab6\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  628. -- ----------------------------
  629. -- Table structure for wf_hist_task
  630. -- ----------------------------
  631. DROP TABLE IF EXISTS `wf_hist_task`;
  632. CREATE TABLE `wf_hist_task` (
  633. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  634. `order_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '流程实例ID',
  635. `task_Name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  636. `display_Name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务显示名称',
  637. `task_Type` tinyint(1) NOT NULL COMMENT '任务类型',
  638. `perform_Type` tinyint(1) NULL DEFAULT NULL COMMENT '参与类型',
  639. `task_State` tinyint(1) NOT NULL COMMENT '任务状态',
  640. `operator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务处理人',
  641. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务创建时间',
  642. `finish_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务完成时间',
  643. `expire_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务期望完成时间',
  644. `action_Url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务处理url',
  645. `parent_Task_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父任务ID',
  646. `variable` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附属变量json存储',
  647. PRIMARY KEY (`id`) USING BTREE,
  648. INDEX `IDX_HIST_TASK_ORDER`(`order_Id`) USING BTREE,
  649. INDEX `IDX_HIST_TASK_TASKNAME`(`task_Name`) USING BTREE,
  650. INDEX `IDX_HIST_TASK_PARENTTASK`(`parent_Task_Id`) USING BTREE,
  651. CONSTRAINT `FK_HIST_TASK_ORDERID` FOREIGN KEY (`order_Id`) REFERENCES `wf_hist_order` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  652. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '历史任务表' ROW_FORMAT = Dynamic;
  653. -- ----------------------------
  654. -- Records of wf_hist_task
  655. -- ----------------------------
  656. INSERT INTO `wf_hist_task` VALUES ('09071361d62f4817aa13bf77b3bebaeb', '3a73e28221f04c56be3a15926409d3d2', 'audit', '审核', 0, 0, 0, '1', '2022-05-06 23:07:34', '2022-05-06 23:09:40', NULL, '', '24d936fc114a4e6995976581e06438fd', '{\"audit\":12,\"hasNext\":1,\"approvalType\":1,\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  657. INSERT INTO `wf_hist_task` VALUES ('24d936fc114a4e6995976581e06438fd', '3a73e28221f04c56be3a15926409d3d2', 'audit', '审核', 0, 0, 0, '1', '2022-05-06 23:06:12', '2022-05-06 23:07:34', NULL, '', '7f3018bc7da94194830c7b93ae6a6118', '{\"audit\":1,\"hasNext\":1,\"approvalType\":1,\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  658. INSERT INTO `wf_hist_task` VALUES ('4e139687bc02435bb878b247b45c2c7b', '70c2a2143487441b9e4a1d37126e95c4', 'apply', '请假申请', 0, 0, 0, 'snaker.auto', '2022-04-05 22:45:51', '2022-04-05 22:45:51', NULL, '', 'start', '{\"f_day\":1,\"f_reason\":\"8888\",\"f_startTime\":\"2022-04-05 00:00:00\",\"f_endTime\":\"2022-04-06 00:00:00\",\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"dc13383002704e2bb9ff7accf3504f3b\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"S-ACTOR\":\"approve.operator\"}');
  659. INSERT INTO `wf_hist_task` VALUES ('50e8c560ef7c4e91acfc8ddb641ef811', 'e875cd755f05439a87143c38f9c26a4e', 'audit', '审核', 0, 0, 0, '1', '2022-05-06 22:20:54', '2022-05-06 22:58:30', NULL, '', 'b2cec0e7a1864e0f99bfbb67d5531f65', '{\"audit\":1,\"hasNext\":1,\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  660. INSERT INTO `wf_hist_task` VALUES ('7f3018bc7da94194830c7b93ae6a6118', '3a73e28221f04c56be3a15926409d3d2', 'audit', '审核', 0, 0, 0, '1', '2022-05-06 23:05:51', '2022-05-06 23:06:12', NULL, '', 'ffeaaa58854545e49cce92160cffa051', '{\"audit\":1,\"hasNext\":1,\"approvalType\":1,\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  661. INSERT INTO `wf_hist_task` VALUES ('8a89fc85f934431399a8fa7f45d5d6fe', '70c2a2143487441b9e4a1d37126e95c4', 'approveDept', '部门领导审批', 0, 0, 0, '1', '2022-04-05 22:45:51', '2022-04-05 22:51:59', NULL, '', '4e139687bc02435bb878b247b45c2c7b', '{\"approvalType\":0,\"approvalOpinion\":\"不同意\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}');
  662. INSERT INTO `wf_hist_task` VALUES ('b2cec0e7a1864e0f99bfbb67d5531f65', 'e875cd755f05439a87143c38f9c26a4e', 'apply', '申请', 0, 0, 0, 'snaker.auto', '2022-05-06 22:20:54', '2022-05-06 22:20:54', NULL, '', 'start', '{\"apply\":1,\"audit\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"c21034b29b33488581b8971bf594125a\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"S-ACTOR\":\"1\"}');
  663. INSERT INTO `wf_hist_task` VALUES ('b492070e6b0748aea23f9e15ef4755ca', 'f1bd25797aae4732838676f539c622ef', 'apply', '请假申请', 0, 0, 0, 'snaker.auto', '2022-04-19 21:35:57', '2022-04-19 21:35:58', NULL, '', 'start', '{\"f_day\":3,\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"295279926757418fa88ad9e8a368cab6\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"S-ACTOR\":\"approve.operator\"}');
  664. INSERT INTO `wf_hist_task` VALUES ('ffeaaa58854545e49cce92160cffa051', '3a73e28221f04c56be3a15926409d3d2', 'apply', '申请', 0, 0, 0, 'snaker.auto', '2022-05-06 23:05:51', '2022-05-06 23:05:51', NULL, '', 'start', '{\"apply\":1,\"audit\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"1b0221016ce44a6f9d2261a625ac8168\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"S-ACTOR\":\"1\"}');
  665. -- ----------------------------
  666. -- Table structure for wf_hist_task_actor
  667. -- ----------------------------
  668. DROP TABLE IF EXISTS `wf_hist_task_actor`;
  669. CREATE TABLE `wf_hist_task_actor` (
  670. `task_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务ID',
  671. `actor_Id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参与者ID',
  672. INDEX `IDX_HIST_TASKACTOR_TASK`(`task_Id`) USING BTREE,
  673. CONSTRAINT `FK_HIST_TASKACTOR` FOREIGN KEY (`task_Id`) REFERENCES `wf_hist_task` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  674. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '历史任务参与者表' ROW_FORMAT = Dynamic;
  675. -- ----------------------------
  676. -- Records of wf_hist_task_actor
  677. -- ----------------------------
  678. INSERT INTO `wf_hist_task_actor` VALUES ('4e139687bc02435bb878b247b45c2c7b', 'approve.operator');
  679. INSERT INTO `wf_hist_task_actor` VALUES ('8a89fc85f934431399a8fa7f45d5d6fe', '1');
  680. INSERT INTO `wf_hist_task_actor` VALUES ('b492070e6b0748aea23f9e15ef4755ca', 'approve.operator');
  681. INSERT INTO `wf_hist_task_actor` VALUES ('b2cec0e7a1864e0f99bfbb67d5531f65', '1');
  682. INSERT INTO `wf_hist_task_actor` VALUES ('50e8c560ef7c4e91acfc8ddb641ef811', '1');
  683. INSERT INTO `wf_hist_task_actor` VALUES ('ffeaaa58854545e49cce92160cffa051', '1');
  684. INSERT INTO `wf_hist_task_actor` VALUES ('7f3018bc7da94194830c7b93ae6a6118', '1');
  685. INSERT INTO `wf_hist_task_actor` VALUES ('24d936fc114a4e6995976581e06438fd', '1');
  686. INSERT INTO `wf_hist_task_actor` VALUES ('09071361d62f4817aa13bf77b3bebaeb', '1');
  687. -- ----------------------------
  688. -- Table structure for wf_model_designer
  689. -- ----------------------------
  690. DROP TABLE IF EXISTS `wf_model_designer`;
  691. CREATE TABLE `wf_model_designer` (
  692. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  693. `model_group_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0 COMMENT '分组ID',
  694. `model_type` int(6) UNSIGNED NOT NULL DEFAULT 10 COMMENT '模型类型(10->流程|PROCESS,20->表单|FORM)',
  695. `model_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '模型名称',
  696. `model_key` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '唯一标识',
  697. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  698. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  699. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  700. `is_deleted` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '是否删除',
  701. PRIMARY KEY (`id`) USING BTREE
  702. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '模型设计' ROW_FORMAT = Dynamic;
  703. -- ----------------------------
  704. -- Records of wf_model_designer
  705. -- ----------------------------
  706. -- ----------------------------
  707. -- Table structure for wf_model_designer_his
  708. -- ----------------------------
  709. DROP TABLE IF EXISTS `wf_model_designer_his`;
  710. CREATE TABLE `wf_model_designer_his` (
  711. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  712. `model_designer_id` bigint(20) NOT NULL COMMENT '模型设计ID',
  713. `content` longblob NULL COMMENT '模型定义',
  714. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  715. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  716. PRIMARY KEY (`id`) USING BTREE,
  717. INDEX `idx_wf_model_d_his_id`(`model_designer_id`) USING BTREE,
  718. INDEX `idx_wf_mdh_create_time`(`create_time`) USING BTREE
  719. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '模型设计历史' ROW_FORMAT = Dynamic;
  720. -- ----------------------------
  721. -- Records of wf_model_designer_his
  722. -- ----------------------------
  723. -- ----------------------------
  724. -- Table structure for wf_model_group
  725. -- ----------------------------
  726. DROP TABLE IF EXISTS `wf_model_group`;
  727. CREATE TABLE `wf_model_group` (
  728. `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
  729. `name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '分组名称',
  730. `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  731. `user_id` bigint(20) NOT NULL COMMENT '用户ID',
  732. `create_time` datetime(3) NULL DEFAULT NULL COMMENT '创建时间',
  733. `update_time` datetime(3) NULL DEFAULT NULL COMMENT '更新时间',
  734. PRIMARY KEY (`id`) USING BTREE
  735. ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '模型分组' ROW_FORMAT = Dynamic;
  736. -- ----------------------------
  737. -- Records of wf_model_group
  738. -- ----------------------------
  739. -- ----------------------------
  740. -- Table structure for wf_order
  741. -- ----------------------------
  742. DROP TABLE IF EXISTS `wf_order`;
  743. CREATE TABLE `wf_order` (
  744. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  745. `parent_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父流程ID',
  746. `process_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '流程定义ID',
  747. `creator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发起人',
  748. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '发起时间',
  749. `expire_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '期望完成时间',
  750. `last_Update_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上次更新时间',
  751. `last_Updator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '上次更新人',
  752. `priority` tinyint(1) NULL DEFAULT NULL COMMENT '优先级',
  753. `parent_Node_Name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父流程依赖的节点名称',
  754. `order_No` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程实例编号',
  755. `variable` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附属变量json存储',
  756. `version` int(3) NULL DEFAULT NULL COMMENT '版本',
  757. PRIMARY KEY (`id`) USING BTREE,
  758. INDEX `IDX_ORDER_PROCESSID`(`process_Id`) USING BTREE,
  759. INDEX `IDX_ORDER_NO`(`order_No`) USING BTREE,
  760. INDEX `FK_ORDER_PARENTID`(`parent_Id`) USING BTREE,
  761. CONSTRAINT `FK_ORDER_PARENTID` FOREIGN KEY (`parent_Id`) REFERENCES `wf_order` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
  762. CONSTRAINT `FK_ORDER_PROCESSID` FOREIGN KEY (`process_Id`) REFERENCES `wf_process` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  763. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '流程实例表' ROW_FORMAT = Dynamic;
  764. -- ----------------------------
  765. -- Records of wf_order
  766. -- ----------------------------
  767. INSERT INTO `wf_order` VALUES ('3a73e28221f04c56be3a15926409d3d2', NULL, '29cf3267885b4f8a85f0ac0e89b735a9', '1', '2022-05-06 23:05:51', NULL, '2022-05-06 23:09:40', '1', NULL, NULL, '1b0221016ce44a6f9d2261a625ac8168', '{\"apply\":1,\"audit\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"1b0221016ce44a6f9d2261a625ac8168\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}', 4);
  768. INSERT INTO `wf_order` VALUES ('f1bd25797aae4732838676f539c622ef', NULL, 'b28c099e9a3648b68d4358ae26553519', '1', '2022-04-19 21:35:57', NULL, '2022-04-19 21:35:58', 'snaker.auto', NULL, NULL, '295279926757418fa88ad9e8a368cab6', '{\"f_day\":3,\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"295279926757418fa88ad9e8a368cab6\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\"}', 1);
  769. -- ----------------------------
  770. -- Table structure for wf_process
  771. -- ----------------------------
  772. DROP TABLE IF EXISTS `wf_process`;
  773. CREATE TABLE `wf_process` (
  774. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  775. `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程名称',
  776. `display_Name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程显示名称',
  777. `type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程类型',
  778. `instance_Url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实例url',
  779. `state` tinyint(1) NULL DEFAULT NULL COMMENT '流程是否可用',
  780. `content` longblob NULL COMMENT '流程模型定义',
  781. `version` int(2) NULL DEFAULT NULL COMMENT '版本',
  782. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  783. `creator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人',
  784. PRIMARY KEY (`id`) USING BTREE,
  785. INDEX `IDX_PROCESS_NAME`(`name`) USING BTREE
  786. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '流程定义表' ROW_FORMAT = Dynamic;
  787. -- ----------------------------
  788. -- Records of wf_process
  789. -- ----------------------------
  790. INSERT INTO `wf_process` VALUES ('29cf3267885b4f8a85f0ac0e89b735a9', 'repeat', '循环流程', NULL, '', 1, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0D0A3C70726F6365737320206E616D653D227265706561742220646973706C61794E616D653D22E5BEAAE78EAFE6B581E7A88B223E0D0A093C7374617274206E616D653D2273746172742220646973706C61794E616D653D22E5BC80E5A78B22206C61796F75743D223432302C3234302C3132302C3830223E0D0A09093C7472616E736974696F6E206E616D653D2237363566613232652D613335372D346662632D386262372D3534633537656435383132642220746F3D226170706C792220673D223433382C3234303B3536302C323430223E3C2F7472616E736974696F6E3E0D0A093C2F73746172743E0D0A093C7461736B206E616D653D226170706C792220646973706C61794E616D653D22E794B3E8AFB722206C61796F75743D223632302C3234302C3132302C3830222061737369676E65653D226170706C7922207461736B547970653D224D616A6F722220706572666F726D547970653D22414E59223E0D0A09093C7472616E736974696F6E206E616D653D2265363537663031612D653738362D343730382D626230352D6339643537656564333538322220746F3D2261756469742220673D223638302C3234303B3738302C323430223E3C2F7472616E736974696F6E3E0D0A093C2F7461736B3E0D0A093C7461736B206E616D653D2261756469742220646973706C61794E616D653D22E5AEA1E6A0B822206C61796F75743D223834302C3234302C3132302C3830222061737369676E65653D22617564697422207461736B547970653D224D616A6F722220706572666F726D547970653D22414E59223E0D0A09093C7472616E736974696F6E206E616D653D2264363362346362322D626234312D346163312D626561652D6264356435343866366639622220746F3D2235613133373332302D623566312D343939332D386566622D3764373364643537396466322220673D223930302C3234303B3939352C323430223E3C2F7472616E736974696F6E3E0D0A093C2F7461736B3E0D0A093C6465636973696F6E206E616D653D2235613133373332302D623566312D343939332D386566622D37643733646435373964663222206C61796F75743D22313032302C3234302C3132302C3830223E0D0A09093C7472616E736974696F6E206E616D653D2237636434323132622D646535642D343539322D393163302D6432363434396537623739332220746F3D22656E642220657870723D22236861734E6578743D3D302220673D22313034352C3234303B313136322C323430223E3C2F7472616E736974696F6E3E0D0A093C7472616E736974696F6E206E616D653D2232393639663462352D663935362D346666382D383030362D6536316537303137633235642220646973706C61794E616D653D22E8BDACE4BAA4E7BB99E696B0E79A84E5AEA1E6A0B8E4BABA2220746F3D2261756469742220657870723D22236861734E6578743D3D312220673D22313032302C3236353B313032302C3331303B3834302C3331303B3834302C323830223E3C2F7472616E736974696F6E3E0D0A093C2F6465636973696F6E3E0D0A093C656E64206E616D653D22656E642220646973706C61794E616D653D22E7BB93E69D9F22206C61796F75743D22313138302C3234302C3132302C3830223E0D0A09093C2F656E643E0D0A3C2F70726F636573733E, 0, '2022-05-06 22:18:35', '1');
  791. INSERT INTO `wf_process` VALUES ('a5a211f4fda142319ca6479d1f98e387', 'articleAudit', '文章审核', NULL, 'articleAuditForm', 1, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0A3C70726F6365737320206E616D653D2261727469636C6541756469742220646973706C61794E616D653D22E69687E7ABA0E5AEA1E6A0B82220696E7374616E636555726C3D2261727469636C654175646974466F726D223E0A093C7374617274206E616D653D2273746172742220646973706C61794E616D653D22E5BC80E5A78B22206C61796F75743D223336302C3138302C3132302C38302220707265496E746572636570746F72733D22636F6D2E6D6C646F6E672E6D6F64756C65732E636D732E77662E696E746572636570746F722E41727469636C655374617274507265496E746572636570746F72223E0A09093C7472616E736974696F6E206E616D653D2274312220746F3D226170706C792220673D223337382C3138303B3434302C313830223E3C2F7472616E736974696F6E3E0A093C2F73746172743E0A093C7461736B206E616D653D226170706C792220646973706C61794E616D653D22E69687E7ABA0E5AEA1E6A0B8E794B3E8AFB722206C61796F75743D223530302C3138302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E59222061737369676E65653D22617070726F76652E6F70657261746F72223E0A09093C7472616E736974696F6E206E616D653D2274322220746F3D22617070726F7665446570742220673D223536302C3138303B3632302C313830223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A093C7461736B206E616D653D22617070726F7665446570742220646973706C61794E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B922206C61796F75743D223638302C3138302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E59222061737369676E6D656E7448616E646C65723D22636F6D2E6D6C646F6E672E636F6E6669672E466C6F7741737369676E6D656E7448616E646C6572223E0A09093C7472616E736974696F6E206E616D653D2274332220746F3D22617070726F7665426F73732220673D223734302C3138303B3830302C313830223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A093C7461736B206E616D653D22617070726F7665426F73732220646973706C61794E616D653D22E585ACE58FB8E9A286E5AFBCE5AEA1E689B922206C61796F75743D223836302C3138302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E59222061737369676E6D656E7448616E646C65723D22636F6D2E6D6C646F6E672E636F6E6669672E466C6F7741737369676E6D656E7448616E646C6572223E0A09093C7472616E736974696F6E206E616D653D2274342220746F3D22656E642220673D223932302C3138303B3938322C313830223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A093C656E64206E616D653D22656E642220646973706C61794E616D653D22E7BB93E69D9F22206C61796F75743D22313030302C3138302C3132302C38302220706F7374496E746572636570746F72733D22636F6D2E6D6C646F6E672E6D6F64756C65732E636D732E77662E696E746572636570746F722E41727469636C65456E64506F7374496E7465726570746F72223E0A09093C2F656E643E0A3C2F70726F636573733E, 0, '2022-04-05 21:53:29', '1');
  792. INSERT INTO `wf_process` VALUES ('b28c099e9a3648b68d4358ae26553519', 'leave', '请假', NULL, 'leaveForm', 1, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0A3C70726F6365737320206E616D653D226C656176652220646973706C61794E616D653D22E8AFB7E581872220696E7374616E636555726C3D226C65617665466F726D223E0A093C7374617274206E616D653D2273746172742220646973706C61794E616D653D22E5BC80E5A78B22206C61796F75743D223334302C3136302C3132302C3830223E0A09093C7472616E736974696F6E206E616D653D2233303337626534312D353638322D343334342D623934612D3966616635633365363262612220746F3D226170706C792220673D223335382C3136303B3436302C313630223E3C2F7472616E736974696F6E3E0A093C2F73746172743E0A093C7461736B206E616D653D226170706C792220646973706C61794E616D653D22E8AFB7E58187E794B3E8AFB722206C61796F75743D223532302C3136302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922206175746F457865637574653D224E222061737369676E65653D22617070726F76652E6F70657261746F72223E0A09093C7472616E736974696F6E206E616D653D2263373936343261652D396632382D343231332D386364662D3065306436343637623162392220746F3D22617070726F7665446570742220673D223538302C3136303B3638302C313630223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A093C7461736B206E616D653D22617070726F7665446570742220646973706C61794E616D653D22E983A8E997A8E9A286E5AFBCE5AEA1E689B922206C61796F75743D223734302C3136302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922206175746F457865637574653D224E222061737369676E6D656E7448616E646C65723D22636F6D2E6D6C646F6E672E636F6E6669672E466C6F7741737369676E6D656E7448616E646C6572223E0A09093C7472616E736974696F6E206E616D653D2230396439623134332D393437332D346130662D383238372D3961626636663635626166352220746F3D2232633735656562662D356261662D346364302D613762332D3035343636626531333633342220673D223734302C3230303B3734302C333135223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A093C6465636973696F6E206E616D653D2232633735656562662D356261662D346364302D613762332D30353436366265313336333422206C61796F75743D223734302C3334302C3132302C3830223E0A09093C7472616E736974696F6E206E616D653D2235313765663263372D333438362D343939322D623535342D3066353338616239313735312220646973706C61794E616D653D22E8AFB7E58187E5A4A9E695B0E5B08FE4BA8E332220746F3D22656E642220657870723D2223665F646179266C743B332220673D223736342C3333393B313038302C3333393B313038302C313738223E3C2F7472616E736974696F6E3E0A093C7472616E736974696F6E206E616D653D2264376563343136362D663366632D346664362D613261632D6136633464353039633464642220646973706C61794E616D653D22E8AFB7E58187E5A4A9E695B0E5A4A7E4BA8EE7AD89E4BA8E332220746F3D22617070726F7665426F73732220657870723D2223665F6461792667743B3D332220673D223734302C3336353B3734302C3438303B3834302C343830223E3C2F7472616E736974696F6E3E0A093C2F6465636973696F6E3E0A093C656E64206E616D653D22656E642220646973706C61794E616D653D22E7BB93E69D9F22206C61796F75743D22313038302C3136302C3132302C3830223E0A09093C2F656E643E0A093C7461736B206E616D653D22617070726F7665426F73732220646973706C61794E616D653D22E585ACE58FB8E9A286E5AFBCE5AEA1E689B922206C61796F75743D223930302C3438302C3132302C383022207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922206175746F457865637574653D224E222061737369676E6D656E7448616E646C65723D22636F6D2E6D6C646F6E672E636F6E6669672E466C6F7741737369676E6D656E7448616E646C6572223E0A09093C7472616E736974696F6E206E616D653D2261363433343865632D343136382D346633362D386136312D3135636631326337313062392220746F3D22656E642220673D223936302C3438303B313134302C3438303B313134302C3131323B313038302C3131323B313038302C313432223E3C2F7472616E736974696F6E3E0A093C2F7461736B3E0A3C2F70726F636573733E, 0, '2022-04-05 16:35:21', '1');
  793. -- ----------------------------
  794. -- Table structure for wf_surrogate
  795. -- ----------------------------
  796. DROP TABLE IF EXISTS `wf_surrogate`;
  797. CREATE TABLE `wf_surrogate` (
  798. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  799. `process_Name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程名称',
  800. `operator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '授权人',
  801. `surrogate` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代理人',
  802. `odate` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '操作时间',
  803. `sdate` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '开始时间',
  804. `edate` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '结束时间',
  805. `state` tinyint(1) NULL DEFAULT NULL COMMENT '状态',
  806. PRIMARY KEY (`id`) USING BTREE,
  807. INDEX `IDX_SURROGATE_OPERATOR`(`operator`) USING BTREE
  808. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '委托代理表' ROW_FORMAT = Dynamic;
  809. -- ----------------------------
  810. -- Records of wf_surrogate
  811. -- ----------------------------
  812. -- ----------------------------
  813. -- Table structure for wf_task
  814. -- ----------------------------
  815. DROP TABLE IF EXISTS `wf_task`;
  816. CREATE TABLE `wf_task` (
  817. `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键ID',
  818. `order_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '流程实例ID',
  819. `task_Name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务名称',
  820. `display_Name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务显示名称',
  821. `task_Type` tinyint(1) NOT NULL COMMENT '任务类型',
  822. `perform_Type` tinyint(1) NULL DEFAULT NULL COMMENT '参与类型',
  823. `operator` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务处理人',
  824. `create_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务创建时间',
  825. `finish_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务完成时间',
  826. `expire_Time` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务期望完成时间',
  827. `action_Url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '任务处理的url',
  828. `parent_Task_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '父任务ID',
  829. `variable` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '附属变量json存储',
  830. `version` tinyint(1) NULL DEFAULT NULL COMMENT '版本',
  831. PRIMARY KEY (`id`) USING BTREE,
  832. INDEX `IDX_TASK_ORDER`(`order_Id`) USING BTREE,
  833. INDEX `IDX_TASK_TASKNAME`(`task_Name`) USING BTREE,
  834. INDEX `IDX_TASK_PARENTTASK`(`parent_Task_Id`) USING BTREE,
  835. CONSTRAINT `FK_TASK_ORDERID` FOREIGN KEY (`order_Id`) REFERENCES `wf_order` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  836. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务表' ROW_FORMAT = Dynamic;
  837. -- ----------------------------
  838. -- Records of wf_task
  839. -- ----------------------------
  840. INSERT INTO `wf_task` VALUES ('91f21e40ecc84833948a7ccd3a138b7c', 'f1bd25797aae4732838676f539c622ef', 'approveDept', '部门领导审批', 0, 0, NULL, '2022-04-19 21:35:58', NULL, NULL, '', 'b492070e6b0748aea23f9e15ef4755ca', '{\"f_day\":3,\"instanceUrl\":\"leaveForm\",\"snaker.orderNo\":\"295279926757418fa88ad9e8a368cab6\",\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"S-ACTOR\":\"1\"}', 0);
  841. INSERT INTO `wf_task` VALUES ('e3402b1d2572407eaa2e1afa9ecc731e', '3a73e28221f04c56be3a15926409d3d2', 'audit', '审核', 0, 0, NULL, '2022-05-06 23:09:40', NULL, NULL, '', '09071361d62f4817aa13bf77b3bebaeb', '{\"audit\":12,\"hasNext\":1,\"approvalType\":1,\"operator.userName\":\"admin\",\"operator.realName\":\"mldong\",\"apply\":1,\"instanceUrl\":\"\",\"snaker.orderNo\":\"1b0221016ce44a6f9d2261a625ac8168\",\"S-ACTOR\":\"12\"}', 0);
  842. -- ----------------------------
  843. -- Table structure for wf_task_actor
  844. -- ----------------------------
  845. DROP TABLE IF EXISTS `wf_task_actor`;
  846. CREATE TABLE `wf_task_actor` (
  847. `task_Id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '任务ID',
  848. `actor_Id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '参与者ID',
  849. INDEX `IDX_TASKACTOR_TASK`(`task_Id`) USING BTREE,
  850. CONSTRAINT `FK_TASK_ACTOR_TASKID` FOREIGN KEY (`task_Id`) REFERENCES `wf_task` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT
  851. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务参与者表' ROW_FORMAT = Dynamic;
  852. -- ----------------------------
  853. -- Records of wf_task_actor
  854. -- ----------------------------
  855. INSERT INTO `wf_task_actor` VALUES ('91f21e40ecc84833948a7ccd3a138b7c', '1');
  856. INSERT INTO `wf_task_actor` VALUES ('e3402b1d2572407eaa2e1afa9ecc731e', '12');
  857. SET FOREIGN_KEY_CHECKS = 1;