/*
 Navicat Premium Data Transfer

 Source Server         : myself
 Source Server Type    : MySQL
 Source Server Version : 50528
 Source Host           : localhost:3306
 Source Schema         : laker

 Target Server Type    : MySQL
 Target Server Version : 50528
 File Encoding         : 65001

 Date: 11/08/2021 19:02:40
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept`  (
  `dept_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `dept_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `pid` bigint(11) NOT NULL DEFAULT 0,
  `status` tinyint(1) DEFAULT NULL,
  `sort` int(255) DEFAULT NULL,
  PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (4, '研发部', '', 0, 1, 1);
INSERT INTO `sys_dept` VALUES (5, '测试部', '', 0, 1, 1);
INSERT INTO `sys_dept` VALUES (6, '研发一部-1', '今天天气如何', 4, 1, 2);

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `menu_id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `pid` bigint(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父ID',
  `title` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '名称',
  `icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '菜单图标',
  `href` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '链接',
  `open_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '链接打开方式',
  `sort` int(11) DEFAULT 0 COMMENT '菜单排序',
  `enable` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态(0:禁用,1:启用)',
  `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '备注信息',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `type` int(11) DEFAULT NULL COMMENT '类型',
  `power_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '权限标识',
  PRIMARY KEY (`menu_id`) USING BTREE,
  INDEX `title`(`title`) USING BTREE,
  INDEX `href`(`href`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 282 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统菜单表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, 0, '工作空间', 'layui-icon layui-icon-console', '', '', 0, 1, NULL, NULL, 0, NULL);
INSERT INTO `sys_menu` VALUES (250, 1, '控制后台', 'layui-icon layui-icon-console', 'view/console/console1.html', '_iframe', 0, 1, NULL, NULL, 1, NULL);
INSERT INTO `sys_menu` VALUES (251, 0, '系统管理', 'layui-icon layui-icon-set-fill', '', '', 0, 1, NULL, NULL, 0, NULL);
INSERT INTO `sys_menu` VALUES (252, 251, '权限管理', 'layui-icon layui-icon layui-icon-face-cry', 'view/system/power.html', '_iframe', 11, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (258, 251, '用户管理', 'layui-icon layui-icon-user', 'view/system/user.html', '_iframe', 1, 1, NULL, NULL, 1, 'user');
INSERT INTO `sys_menu` VALUES (259, 0, '常用组件', 'layui-icon layui-icon-rate-solid', '', '', 2, 1, NULL, NULL, 0, '');
INSERT INTO `sys_menu` VALUES (260, 259, '基础组件', 'layui-icon ', '', '', 1, 1, NULL, NULL, 0, '');
INSERT INTO `sys_menu` VALUES (261, 260, '多选下拉', 'layui-icon ', 'view/document/select.html', '_iframe', 2, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (262, 259, '进阶组件', 'layui-icon ', '', '', 2, 1, NULL, NULL, 0, '');
INSERT INTO `sys_menu` VALUES (263, 262, '数据表格', 'layui-icon ', 'view/document/table.html', '_iframe', 2, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (264, 251, '流程定义', 'layui-icon layui-icon-tree', 'view/flow/processList.html', '_iframe', 1, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (265, 251, '流程实例', 'layui-icon ', 'view/flow/orderList.html', '', 9, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (266, 1, '应用监控', 'layui-icon ', '/monitoring', '_iframe', 1, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (268, 251, '接口文档', 'layui-icon ', '/doc.html', '_iframe', 3, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (269, 1, '任务列表', 'layui-icon ', 'view/flow/taskList.html', '_iframe', 1, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (270, 1, '请假申请', 'layui-icon ', 'view/flow/process/leave.html', '_iframe', 4, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (280, 251, '角色管理', 'layui-icon ', 'view/system/role.html', '_iframe', 2, 1, NULL, NULL, 1, '');
INSERT INTO `sys_menu` VALUES (281, 251, '部门管理', 'layui-icon ', 'view/system/deptment.html', '_iframe', 11, 1, NULL, NULL, 1, '');

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `role_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `role_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '角色名',
  `role_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'Key值',
  `details` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述',
  `enable` tinyint(1) DEFAULT NULL COMMENT '是否可用',
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (2, '超级管理员', 'admin', '超级管理员很牛逼', 1, NULL);
INSERT INTO `sys_role` VALUES (3, '普通员工', 'general ', '普通员工2', 0, NULL);

-- ----------------------------
-- Table structure for sys_role_power
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_power`;
CREATE TABLE `sys_role_power`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `role_id` bigint(20) DEFAULT NULL,
  `power_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_role_power
-- ----------------------------
INSERT INTO `sys_role_power` VALUES (1, 2, 1);
INSERT INTO `sys_role_power` VALUES (2, 2, 250);
INSERT INTO `sys_role_power` VALUES (3, 2, 269);

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `user_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `nick_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `dept_id` bigint(20) DEFAULT NULL,
  `sex` int(2) DEFAULT NULL,
  `phone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `enable` int(2) DEFAULT NULL,
  `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
  `create_time` datetime DEFAULT NULL,
  PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (16, 'laker', '123456', '老李', 4, 1, '1', 1, '', '2021-08-09 18:25:32');
INSERT INTO `sys_user` VALUES (17, 'yang', '123456', '陈阳', 6, 1, '', 1, '', '2021-08-10 10:24:23');
INSERT INTO `sys_user` VALUES (18, 'zhang', '123456', '张总', 5, 1, '', 1, '', '2021-08-10 10:24:38');
INSERT INTO `sys_user` VALUES (22, '854085467', '*******', '', 4, 1, '15555555555', 1, '854085467@qq.com', '2021-08-11 18:19:10');

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) DEFAULT NULL,
  `role_id` bigint(20) DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Compact;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (7, NULL, 2);
INSERT INTO `sys_user_role` VALUES (9, 16, 2);
INSERT INTO `sys_user_role` VALUES (10, 16, 3);
INSERT INTO `sys_user_role` VALUES (13, 18, 2);
INSERT INTO `sys_user_role` VALUES (14, 18, 3);
INSERT INTO `sys_user_role` VALUES (16, 19, 3);
INSERT INTO `sys_user_role` VALUES (17, NULL, 2);
INSERT INTO `sys_user_role` VALUES (18, 17, 2);
INSERT INTO `sys_user_role` VALUES (19, NULL, 2);
INSERT INTO `sys_user_role` VALUES (24, 22, 2);
INSERT INTO `sys_user_role` VALUES (25, 22, 3);

-- ----------------------------
-- Table structure for wf_hist_order
-- ----------------------------
DROP TABLE IF EXISTS `wf_hist_order`;
CREATE TABLE `wf_hist_order`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
  `process_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程定义ID',
  `order_State` tinyint(1) NOT NULL COMMENT '状态',
  `creator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '发起人',
  `create_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '发起时间',
  `end_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '完成时间',
  `expire_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '期望完成时间',
  `priority` tinyint(1) DEFAULT NULL COMMENT '优先级',
  `parent_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父流程ID',
  `order_No` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '流程实例编号',
  `variable` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '附属变量json存储',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_HIST_ORDER_PROCESSID`(`process_Id`) USING BTREE,
  INDEX `IDX_HIST_ORDER_NO`(`order_No`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '历史流程实例表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_hist_order
-- ----------------------------
INSERT INTO `wf_hist_order` VALUES ('031de35d015a4dbf98ebabf36091b4e7', '0058e0887d3046148d2f9391ec92ed4f', 0, 'laker', '2021-08-10 11:02:46', '2021-08-10 14:19:06', NULL, NULL, NULL, '20210810-11:02:46-447-572', '{\"day\":4,\"leaveReason\":\"3\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}');
INSERT INTO `wf_hist_order` VALUES ('50bd89c380cd4e1188e6009415c19be6', '0058e0887d3046148d2f9391ec92ed4f', 1, 'laker', '2021-08-11 16:35:43', NULL, NULL, NULL, NULL, '20210811-16:35:44-001-625', '{\"day\":12,\"leaveReason\":\"2\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}');
INSERT INTO `wf_hist_order` VALUES ('5d29bef9d0af45758d527263623c8836', '80cf99f6c93a48178472922150574b72', 0, '张三', '2021-08-07 00:30:47', '2021-08-07 00:34:30', NULL, NULL, NULL, '20210807-00:30:47-716-183', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('6f14ff72235a42369d32ff642514c8df', '809686f2e32c4b0cb0c03d40870ef420', 0, '张三', '2021-08-07 00:21:16', '2021-08-07 00:22:19', NULL, NULL, NULL, '20210807-00:21:16-356-835', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('761d29459af64ad98f5efe36bed75dde', '8088934cbc9a4ed582110ca8b2032141', 0, '张三', '2021-08-09 13:13:12', '2021-08-09 13:13:13', NULL, NULL, NULL, '20210809-13:13:12-954-226', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('9edc37d3e52a4b98be417f1273f5696c', '2703ef37377344e792bb65d64e969651', 0, '张三', '2021-08-09 13:16:00', '2021-08-09 13:16:01', NULL, NULL, NULL, '20210809-13:16:00-892-702', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('9ef1cbdc4d6d46caafda056039480140', 'd75d398402884dc0bfaf4011f3b7ca00', 0, '张三', '2021-08-07 01:27:56', '2021-08-07 01:28:51', NULL, NULL, NULL, '20210807-01:27:56-085-586', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('a94b8cbedd824b759106e79e90c7c8a2', '0058e0887d3046148d2f9391ec92ed4f', 1, '张三', '2021-08-09 13:17:06', NULL, NULL, NULL, NULL, '20210809-13:17:06-345-949', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('ae26506a316046ad87155fbd200a99f2', '0058e0887d3046148d2f9391ec92ed4f', 0, 'laker', '2021-08-10 10:24:56', '2021-08-10 10:49:54', NULL, NULL, NULL, '20210810-10:24:56-644-739', '{\"userName\":\"10\",\"nickName\":\"测试书法课老接口\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}');
INSERT INTO `wf_hist_order` VALUES ('b307f9cb2044409a9713554e26d22d81', '0058e0887d3046148d2f9391ec92ed4f', 1, 'laker', '2021-08-10 09:51:35', NULL, NULL, NULL, NULL, '20210810-09:51:35-516-17', '{\"userName\":\"2\",\"nickName\":\"沙发大法\"}');
INSERT INTO `wf_hist_order` VALUES ('c4d8489f53e44d76b3959627093727fa', 'd9d058d96ee74e96b044481cfafd372b', 0, '张三', '2021-08-07 01:29:52', '2021-08-07 01:29:58', NULL, NULL, NULL, '20210807-01:29:52-088-611', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('dd2d7f3f64bc4066a1efa065dcab5828', '7dcbccfad943487ba2ded8bbf6c48b40', 0, '张三', '2021-08-07 00:40:53', '2021-08-07 00:41:22', NULL, NULL, NULL, '20210807-00:40:53-372-437', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}');
INSERT INTO `wf_hist_order` VALUES ('f36e0864d1b947f9a5c3d215eef11f06', '0058e0887d3046148d2f9391ec92ed4f', 1, 'laker', '2021-08-10 10:57:23', NULL, NULL, NULL, NULL, '20210810-10:57:23-234-395', '{\"day\":\"4\",\"leaveReason\":\"affafadfdaf\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}');

-- ----------------------------
-- Table structure for wf_hist_task
-- ----------------------------
DROP TABLE IF EXISTS `wf_hist_task`;
CREATE TABLE `wf_hist_task`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
  `order_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程实例ID',
  `task_Name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
  `display_Name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务显示名称',
  `task_Type` tinyint(1) NOT NULL COMMENT '任务类型',
  `perform_Type` tinyint(1) DEFAULT NULL COMMENT '参与类型',
  `task_State` tinyint(1) NOT NULL COMMENT '任务状态',
  `operator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务处理人',
  `create_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务创建时间',
  `finish_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务完成时间',
  `expire_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务期望完成时间',
  `action_Url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务处理url',
  `parent_Task_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父任务ID',
  `variable` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '附属变量json存储',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_HIST_TASK_ORDER`(`order_Id`) USING BTREE,
  INDEX `IDX_HIST_TASK_TASKNAME`(`task_Name`) USING BTREE,
  INDEX `IDX_HIST_TASK_PARENTTASK`(`parent_Task_Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '历史任务表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_hist_task
-- ----------------------------
INSERT INTO `wf_hist_task` VALUES ('01a7f4722ee24da6bc6338144863f385', 'c4d8489f53e44d76b3959627093727fa', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-07 01:29:56', '2021-08-07 01:29:57', NULL, '', '458dca189c444f2b9ae33a94e81b33b8', '{\"day\":1,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('02ec31185bfc46d7a3e4933ff01ce200', 'ae26506a316046ad87155fbd200a99f2', 'apply', '请假申请', 0, 0, 0, 'laker', '2021-08-10 10:24:56', '2021-08-10 10:24:56', NULL, '', 'start', '{\"userName\":\"10\",\"nickName\":\"测试书法课老接口\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\",\"S-ACTOR\":\"laker\"}');
INSERT INTO `wf_hist_task` VALUES ('06a13096b30043e09df6878d3ff82b13', '761d29459af64ad98f5efe36bed75dde', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-09 13:13:13', '2021-08-09 13:13:13', NULL, '', 'ed597093ff9447fd97fe7d04401b997a', '{\"day\":1,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('0820ee45e7b24a6f819ee23f446ac197', '5d29bef9d0af45758d527263623c8836', 'approveBoss', '总经理审批', 0, 0, 0, '老板娘', '2021-08-07 00:32:05', '2021-08-07 00:33:15', NULL, '', '7c2c388b13c2431abd0a08a46f4a1839', '{}');
INSERT INTO `wf_hist_task` VALUES ('2132a03c35ca491fadee378515ab8472', 'dd2d7f3f64bc4066a1efa065dcab5828', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-07 00:40:53', '2021-08-07 00:41:01', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('23e78f8b06e549e3ace8409890021f42', '6f14ff72235a42369d32ff642514c8df', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-07 00:21:30', '2021-08-07 00:21:43', NULL, '', '74abeba7adfb4569bfca5afda415ffdf', '{\"day\":3,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('2c0143a311014c23ba2c3a6084d17f13', 'f36e0864d1b947f9a5c3d215eef11f06', 'apply', '请假申请', 0, 0, 0, 'laker', '2021-08-10 10:57:23', '2021-08-10 10:57:23', NULL, '', 'start', '{\"day\":\"4\",\"leaveReason\":\"affafadfdaf\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\",\"S-ACTOR\":\"laker\"}');
INSERT INTO `wf_hist_task` VALUES ('3bd2418b77854fe8af686068cf8a628c', '031de35d015a4dbf98ebabf36091b4e7', 'approveBoss', '总经理审批', 0, 0, 0, 'zhang', '2021-08-10 11:07:49', '2021-08-10 11:08:35', NULL, '', '50148943425b4aa8a760845a894005d5', '{\"rejectReason\":null}');
INSERT INTO `wf_hist_task` VALUES ('3e4b44dc065d43deb739eae76413b7dc', '6f14ff72235a42369d32ff642514c8df', 'approveBoss', '总经理审批', 0, 0, 0, '老板娘', '2021-08-07 00:21:43', '2021-08-07 00:22:19', NULL, '', '23e78f8b06e549e3ace8409890021f42', '{}');
INSERT INTO `wf_hist_task` VALUES ('458dca189c444f2b9ae33a94e81b33b8', 'c4d8489f53e44d76b3959627093727fa', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-07 01:29:52', '2021-08-07 01:29:55', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('50148943425b4aa8a760845a894005d5', '031de35d015a4dbf98ebabf36091b4e7', 'approveDept', '部门经理审批', 0, 0, 0, 'yang', '2021-08-10 11:02:46', '2021-08-10 11:07:49', NULL, '', '724e812e43824109afdad955bb6558fc', '{}');
INSERT INTO `wf_hist_task` VALUES ('6256b5a1e79c4598bf295fcba8f3258b', 'dd2d7f3f64bc4066a1efa065dcab5828', 'approveBoss', '总经理审批', 0, 0, 0, '老板娘', '2021-08-07 00:41:02', '2021-08-07 00:41:08', NULL, '', 'a46be0e8e0404681b9114c1606dc3b25', '{}');
INSERT INTO `wf_hist_task` VALUES ('6733583dc3fe437a902e8b05abb4a9fc', 'a94b8cbedd824b759106e79e90c7c8a2', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-09 13:17:06', '2021-08-09 13:17:06', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('674844b56ea24777b44daa7d660c1bc3', '9ef1cbdc4d6d46caafda056039480140', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-07 01:28:05', '2021-08-07 01:28:07', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('724e812e43824109afdad955bb6558fc', '031de35d015a4dbf98ebabf36091b4e7', 'apply', '请假申请', 0, 0, 0, 'laker', '2021-08-10 11:02:46', '2021-08-10 11:02:46', NULL, '', 'start', '{\"day\":4,\"leaveReason\":\"3\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\",\"S-ACTOR\":\"laker\"}');
INSERT INTO `wf_hist_task` VALUES ('74a9f727b3884a67898853f2017f9bb0', '5d29bef9d0af45758d527263623c8836', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-07 00:30:47', '2021-08-07 00:31:54', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('74abeba7adfb4569bfca5afda415ffdf', '6f14ff72235a42369d32ff642514c8df', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-07 00:21:16', '2021-08-07 00:21:30', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('762a22c61a1b4a07a002a1be39972220', '9ef1cbdc4d6d46caafda056039480140', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-07 01:28:32', '2021-08-07 01:28:33', NULL, '', '674844b56ea24777b44daa7d660c1bc3', '{\"day\":3,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('76fcbd89f73b401f9077b458ea217464', '9ef1cbdc4d6d46caafda056039480140', 'approveBoss', '总经理审批', 0, 0, 0, '老板娘', '2021-08-07 01:28:37', '2021-08-07 01:28:43', NULL, '', '762a22c61a1b4a07a002a1be39972220', '{}');
INSERT INTO `wf_hist_task` VALUES ('7c2c388b13c2431abd0a08a46f4a1839', '5d29bef9d0af45758d527263623c8836', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-07 00:31:54', '2021-08-07 00:32:05', NULL, '', '74a9f727b3884a67898853f2017f9bb0', '{\"day\":3,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('7d4c57300d684d35a382e34c5b7f789c', '9edc37d3e52a4b98be417f1273f5696c', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-09 13:16:01', '2021-08-09 13:16:01', NULL, '', 'ed06fd2157cf47fd907a2677045b4cdc', '{\"day\":1,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('86e7f4b8b15248a2a2ab70dad1582861', 'ae26506a316046ad87155fbd200a99f2', 'approveDept', '部门经理审批', 0, 0, 0, 'yang', '2021-08-10 10:24:56', '2021-08-10 10:49:54', NULL, '', '02ec31185bfc46d7a3e4933ff01ce200', '{}');
INSERT INTO `wf_hist_task` VALUES ('89fd07efb4904a67b1d4aee823ebd7fa', '50bd89c380cd4e1188e6009415c19be6', 'apply', '请假申请', 0, 0, 0, 'laker', '2021-08-11 16:35:44', '2021-08-11 16:35:44', NULL, '', 'start', '{\"day\":12,\"leaveReason\":\"2\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\",\"S-ACTOR\":\"laker\"}');
INSERT INTO `wf_hist_task` VALUES ('8a1d2e2e96744b4db0b21089d18f6c6a', 'a94b8cbedd824b759106e79e90c7c8a2', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-09 13:17:06', '2021-08-09 13:17:06', NULL, '', '6733583dc3fe437a902e8b05abb4a9fc', '{\"day\":3,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('92a6025e3a274564bdfb7ea82306628b', '031de35d015a4dbf98ebabf36091b4e7', 'approveDept', '部门经理审批', 0, 0, 0, 'yang', '2021-08-10 11:08:35', '2021-08-10 11:10:27', NULL, '', '724e812e43824109afdad955bb6558fc', '{}');
INSERT INTO `wf_hist_task` VALUES ('a46be0e8e0404681b9114c1606dc3b25', 'dd2d7f3f64bc4066a1efa065dcab5828', 'approveDept', '部门经理审批', 0, 0, 0, '组长', '2021-08-07 00:41:01', '2021-08-07 00:41:02', NULL, '', '2132a03c35ca491fadee378515ab8472', '{\"day\":3,\"approveBoss.operator\":\"老板娘\"}');
INSERT INTO `wf_hist_task` VALUES ('ccd8fc86cac147218fec1f9eb0080cc0', '031de35d015a4dbf98ebabf36091b4e7', 'approveBoss', '总经理审批', 0, 0, 0, 'zhang', '2021-08-10 11:10:27', '2021-08-10 14:19:06', NULL, '', '92a6025e3a274564bdfb7ea82306628b', '{}');
INSERT INTO `wf_hist_task` VALUES ('ed06fd2157cf47fd907a2677045b4cdc', '9edc37d3e52a4b98be417f1273f5696c', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-09 13:16:01', '2021-08-09 13:16:01', NULL, '', 'start', '{}');
INSERT INTO `wf_hist_task` VALUES ('ed597093ff9447fd97fe7d04401b997a', '761d29459af64ad98f5efe36bed75dde', 'apply', '请假申请', 0, 0, 0, '张三排', '2021-08-09 13:13:13', '2021-08-09 13:13:13', NULL, '', 'start', '{}');

-- ----------------------------
-- Table structure for wf_hist_task_actor
-- ----------------------------
DROP TABLE IF EXISTS `wf_hist_task_actor`;
CREATE TABLE `wf_hist_task_actor`  (
  `task_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务ID',
  `actor_Id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '参与者ID',
  INDEX `IDX_HIST_TASKACTOR_TASK`(`task_Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '历史任务参与者表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_hist_task_actor
-- ----------------------------
INSERT INTO `wf_hist_task_actor` VALUES ('74abeba7adfb4569bfca5afda415ffdf', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('23e78f8b06e549e3ace8409890021f42', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('3e4b44dc065d43deb739eae76413b7dc', '老板娘');
INSERT INTO `wf_hist_task_actor` VALUES ('74a9f727b3884a67898853f2017f9bb0', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('7c2c388b13c2431abd0a08a46f4a1839', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('0820ee45e7b24a6f819ee23f446ac197', '老板娘');
INSERT INTO `wf_hist_task_actor` VALUES ('2132a03c35ca491fadee378515ab8472', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('a46be0e8e0404681b9114c1606dc3b25', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('6256b5a1e79c4598bf295fcba8f3258b', '老板娘');
INSERT INTO `wf_hist_task_actor` VALUES ('674844b56ea24777b44daa7d660c1bc3', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('762a22c61a1b4a07a002a1be39972220', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('76fcbd89f73b401f9077b458ea217464', '老板娘');
INSERT INTO `wf_hist_task_actor` VALUES ('458dca189c444f2b9ae33a94e81b33b8', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('01a7f4722ee24da6bc6338144863f385', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('ed597093ff9447fd97fe7d04401b997a', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('06a13096b30043e09df6878d3ff82b13', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('ed06fd2157cf47fd907a2677045b4cdc', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('7d4c57300d684d35a382e34c5b7f789c', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('6733583dc3fe437a902e8b05abb4a9fc', '张三排');
INSERT INTO `wf_hist_task_actor` VALUES ('8a1d2e2e96744b4db0b21089d18f6c6a', '组长');
INSERT INTO `wf_hist_task_actor` VALUES ('02ec31185bfc46d7a3e4933ff01ce200', 'laker');
INSERT INTO `wf_hist_task_actor` VALUES ('86e7f4b8b15248a2a2ab70dad1582861', 'yang');
INSERT INTO `wf_hist_task_actor` VALUES ('2c0143a311014c23ba2c3a6084d17f13', 'laker');
INSERT INTO `wf_hist_task_actor` VALUES ('724e812e43824109afdad955bb6558fc', 'laker');
INSERT INTO `wf_hist_task_actor` VALUES ('50148943425b4aa8a760845a894005d5', 'yang');
INSERT INTO `wf_hist_task_actor` VALUES ('3bd2418b77854fe8af686068cf8a628c', 'zhang');
INSERT INTO `wf_hist_task_actor` VALUES ('92a6025e3a274564bdfb7ea82306628b', 'yang');
INSERT INTO `wf_hist_task_actor` VALUES ('ccd8fc86cac147218fec1f9eb0080cc0', 'zhang');
INSERT INTO `wf_hist_task_actor` VALUES ('89fd07efb4904a67b1d4aee823ebd7fa', 'laker');

-- ----------------------------
-- Table structure for wf_order
-- ----------------------------
DROP TABLE IF EXISTS `wf_order`;
CREATE TABLE `wf_order`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
  `parent_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父流程ID',
  `process_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程定义ID',
  `creator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '发起人',
  `create_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '发起时间',
  `expire_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '期望完成时间',
  `last_Update_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '上次更新时间',
  `last_Updator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '上次更新人',
  `priority` tinyint(1) DEFAULT NULL COMMENT '优先级',
  `parent_Node_Name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父流程依赖的节点名称',
  `order_No` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '流程实例编号',
  `variable` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '附属变量json存储',
  `version` int(3) DEFAULT NULL COMMENT '版本',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_ORDER_PROCESSID`(`process_Id`) USING BTREE,
  INDEX `IDX_ORDER_NO`(`order_No`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '流程实例表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_order
-- ----------------------------
INSERT INTO `wf_order` VALUES ('50bd89c380cd4e1188e6009415c19be6', NULL, '0058e0887d3046148d2f9391ec92ed4f', 'laker', '2021-08-11 16:35:43', NULL, '2021-08-11 16:35:44', 'laker', NULL, NULL, '20210811-16:35:44-001-625', '{\"day\":12,\"leaveReason\":\"2\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}', 1);
INSERT INTO `wf_order` VALUES ('a94b8cbedd824b759106e79e90c7c8a2', NULL, '0058e0887d3046148d2f9391ec92ed4f', '张三', '2021-08-09 13:17:06', NULL, '2021-08-09 13:17:06', '组长', NULL, NULL, '20210809-13:17:06-345-949', '{\"user1\":\"张三排\",\"user2\":\"组长\",\"approveBoss.operator\":\"老板\"}', 2);
INSERT INTO `wf_order` VALUES ('b307f9cb2044409a9713554e26d22d81', NULL, '0058e0887d3046148d2f9391ec92ed4f', 'laker', '2021-08-10 09:51:35', NULL, '2021-08-10 09:51:35', 'laker', NULL, NULL, '20210810-09:51:35-516-17', '{\"userName\":\"2\",\"nickName\":\"沙发大法\"}', 0);
INSERT INTO `wf_order` VALUES ('f36e0864d1b947f9a5c3d215eef11f06', NULL, '0058e0887d3046148d2f9391ec92ed4f', 'laker', '2021-08-10 10:57:23', NULL, '2021-08-10 10:57:23', 'laker', NULL, NULL, '20210810-10:57:23-234-395', '{\"day\":\"4\",\"leaveReason\":\"affafadfdaf\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\"}', 1);

-- ----------------------------
-- Table structure for wf_process
-- ----------------------------
DROP TABLE IF EXISTS `wf_process`;
CREATE TABLE `wf_process`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '流程名称',
  `display_Name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '流程显示名称',
  `type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '流程类型',
  `instance_Url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '实例url',
  `state` tinyint(1) DEFAULT NULL COMMENT '流程是否可用',
  `content` longblob COMMENT '流程模型定义',
  `version` int(2) DEFAULT NULL COMMENT '版本',
  `create_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建时间',
  `creator` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建人',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_PROCESS_NAME`(`name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '流程定义表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_process
-- ----------------------------
INSERT INTO `wf_process` VALUES ('0058e0887d3046148d2f9391ec92ed4f', 'leave', '请假流程测试', NULL, '', 1, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0A3C70726F63657373206E616D653D226C656176652220646973706C61794E616D653D22E8AFB7E58187E6B581E7A88BE6B58BE8AF9522203E0A3C7374617274206C61796F75743D2232342C3132342C35302C353022206E616D653D2273746172742220646973706C61794E616D653D2273746172743122203E0A3C7472616E736974696F6E206F66667365743D22312C302220746F3D226170706C7922206E616D653D227472616E736974696F6E3122202F3E0A3C2F73746172743E0A3C656E64206C61796F75743D223537302C3132342C35302C353022206E616D653D22656E642220646973706C61794E616D653D22656E643122203E0A3C2F656E643E0A3C7461736B206C61796F75743D223131372C3132322C3130302C353022206E616D653D226170706C792220646973706C61794E616D653D22E8AFB7E58187E794B3E8AFB7222061737369676E65653D22757365723122207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22617070726F76654465707422206E616D653D227472616E736974696F6E3222202F3E0A3C2F7461736B3E0A3C7461736B206C61796F75743D223237322C3132322C3130302C353022206E616D653D22617070726F7665446570742220646973706C61794E616D653D22E983A8E997A8E7BB8FE79086E5AEA1E689B9222061737369676E65653D22757365723222207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D226465636973696F6E3122206E616D653D227472616E736974696F6E3322202F3E0A3C2F7461736B3E0A3C6465636973696F6E206C61796F75743D223432362C3132342C35302C353022206E616D653D226465636973696F6E312220657870723D2223646179202667743B2032203F20277472616E736974696F6E3527203A20277472616E736974696F6E34272220646973706C61794E616D653D226465636973696F6E3122203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22656E6422206E616D653D227472616E736974696F6E342220646973706C61794E616D653D22266C743B3D32E5A4A922202F3E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22617070726F7665426F737322206E616D653D227472616E736974696F6E352220646973706C61794E616D653D222667743B32E5A4A922202F3E0A3C2F6465636973696F6E3E0A3C7461736B206C61796F75743D223430342C3233312C3130302C353022206E616D653D22617070726F7665426F73732220646973706C61794E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061737369676E65653D22757365723322207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22656E6422206E616D653D227472616E736974696F6E3622202F3E0A3C2F7461736B3E0A3C2F70726F636573733E, 2, '2021-08-09 13:17:06', NULL);
INSERT INTO `wf_process` VALUES ('2703ef37377344e792bb65d64e969651', 'leave', '请假流程测试', NULL, '', 0, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0A3C70726F63657373206E616D653D226C656176652220646973706C61794E616D653D22E8AFB7E58187E6B581E7A88BE6B58BE8AF9522203E0A3C7374617274206C61796F75743D2232342C3132342C35302C353022206E616D653D227374617274312220646973706C61794E616D653D2273746172743122203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D226170706C7922206E616D653D227472616E736974696F6E3122202F3E0A3C2F73746172743E0A3C656E64206C61796F75743D223835322C38312C35302C353022206E616D653D22656E64312220646973706C61794E616D653D22656E643122203E0A3C2F656E643E0A3C7461736B206C61796F75743D2239362C3231382C3130302C353022206E616D653D226170706C792220646973706C61794E616D653D22E8AFB7E58187E794B3E8AFB7222061737369676E65653D22757365723122207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22617070726F76654465707422206E616D653D227472616E736974696F6E3222202F3E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D2272656374313422206E616D653D2270617468313622202F3E0A3C2F7461736B3E0A3C7461736B206C61796F75743D223238302C34352C3130302C353022206E616D653D22617070726F7665446570742220646973706C61794E616D653D22E983A8E997A8E7BB8FE79086E5AEA1E689B9222061737369676E65653D22757365723222207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D226465636973696F6E3122206E616D653D227472616E736974696F6E3322202F3E0A3C2F7461736B3E0A3C6465636973696F6E206C61796F75743D223432362C3132342C35302C353022206E616D653D226465636973696F6E312220657870723D2223646179202667743B2032203F20277472616E736974696F6E3527203A20277472616E736974696F6E34272220646973706C61794E616D653D226465636973696F6E3122203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22656E643122206E616D653D227472616E736974696F6E342220646973706C61794E616D653D22266C743B3D32E5A4A922202F3E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22617070726F7665426F737322206E616D653D227472616E736974696F6E352220646973706C61794E616D653D222667743B32E5A4A922202F3E0A3C2F6465636973696F6E3E0A3C7461736B206C61796F75743D223430342C3233312C3130302C353022206E616D653D22617070726F7665426F73732220646973706C61794E616D653D22E680BBE7BB8FE79086E5AEA1E689B9222061737369676E65653D22617070726F7665426F73732E6F70657261746F7222207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C302220746F3D22656E643122206E616D653D227472616E736974696F6E3622202F3E0A3C2F7461736B3E0A3C666F726B206C61796F75743D223530382C3333362C3130302C353022206E616D653D2272656374313422203E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D2272656374313722206E616D653D2270617468323022202F3E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D2272656374313722206E616D653D2270617468323222202F3E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D2272656374313822206E616D653D2270617468323322202F3E0A3C2F666F726B3E0A3C6A6F696E206C61796F75743D223839352C3334302C3130302C353022206E616D653D2272656374313522203E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D22656E643122206E616D653D2270617468323922202F3E0A3C2F6A6F696E3E0A3C7461736B206C61796F75743D223732362C3237332C3130302C353022206E616D653D227265637431372220646973706C61794E616D653D2272656374313722207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D22656E643122206E616D653D2270617468323722202F3E0A3C2F7461736B3E0A3C7461736B206C61796F75743D223731332C3433332C3130302C353022206E616D653D227265637431382220646973706C61794E616D653D2272656374313822207461736B547970653D224D616A6F722220706572666F726D547970653D22414E5922203E0A3C7472616E736974696F6E206F66667365743D22302C2D31302220746F3D2272656374313522206E616D653D2270617468323422202F3E0A3C2F7461736B3E0A3C2F70726F636573733E, 1, '2021-08-09 13:16:00', NULL);
INSERT INTO `wf_process` VALUES ('8088934cbc9a4ed582110ca8b2032141', 'leave', '请假流程测试', NULL, '', 0, 0x3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822207374616E64616C6F6E653D226E6F223F3E0D0A0D0A3C70726F6365737320646973706C61794E616D653D22E8AFB7E58187E6B581E7A88BE6B58BE8AF952220696E7374616E636555726C3D2222206E616D653D226C65617665223E0D0A202020203C737461727420646973706C61794E616D653D2273746172743122206C61796F75743D2232342C3132342C2D312C2D3122206E616D653D22737461727431223E0D0A20202020202020203C7472616E736974696F6E20673D2222206E616D653D227472616E736974696F6E3122206F66667365743D22302C302220746F3D226170706C79222F3E0D0A202020203C2F73746172743E0D0A202020203C656E6420646973706C61794E616D653D22656E643122206C61796F75743D223537302C3132342C2D312C2D3122206E616D653D22656E6431222F3E0D0A0D0A202020203C7461736B2061737369676E65653D2275736572312220646973706C61794E616D653D22E8AFB7E58187E794B3E8AFB72220666F726D3D2222206C61796F75743D223131372C3132322C2D312C2D3122206E616D653D226170706C79220D0A20202020202020202020706572666F726D547970653D22414E59223E0D0A20202020202020203C7472616E736974696F6E20673D2222206E616D653D227472616E736974696F6E3222206F66667365743D22302C302220746F3D22617070726F766544657074222F3E0D0A202020203C2F7461736B3E0D0A202020203C7461736B2061737369676E65653D2275736572322220646973706C61794E616D653D22E983A8E997A8E7BB8FE79086E5AEA1E689B92220666F726D3D2222206C61796F75743D223237322C3132322C2D312C2D31220D0A202020202020202020206E616D653D22617070726F7665446570742220706572666F726D547970653D22414E59223E0D0A20202020202020203C7472616E736974696F6E20673D2222206E616D653D227472616E736974696F6E3322206F66667365743D22302C302220746F3D226465636973696F6E31222F3E0D0A202020203C2F7461736B3E0D0A202020203C6465636973696F6E20646973706C61794E616D653D226465636973696F6E312220657870723D2223646179202667743B2032203F20277472616E736974696F6E3527203A20277472616E736974696F6E342722206C61796F75743D223432362C3132342C2D312C2D31220D0A20202020202020202020202020206E616D653D226465636973696F6E31223E0D0A20202020202020203C7472616E736974696F6E20646973706C61794E616D653D22266C743B3D32E5A4A92220673D2222206E616D653D227472616E736974696F6E3422206F66667365743D22302C302220746F3D22656E6431222F3E0D0A20202020202020203C7472616E736974696F6E20646973706C61794E616D653D222667743B32E5A4A92220673D2222206E616D653D227472616E736974696F6E3522206F66667365743D22302C302220746F3D22617070726F7665426F7373222F3E0D0A202020203C2F6465636973696F6E3E0D0A202020203C7461736B2061737369676E65653D22617070726F7665426F73732E6F70657261746F722220646973706C61794E616D653D22E680BBE7BB8FE79086E5AEA1E689B92220666F726D3D2222206C61796F75743D223430342C3233312C2D312C2D31220D0A202020202020202020206E616D653D22617070726F7665426F73732220706572666F726D547970653D22414E59223E0D0A20202020202020203C7472616E736974696F6E20673D2222206E616D653D227472616E736974696F6E3622206F66667365743D22302C302220746F3D22656E6431222F3E0D0A202020203C2F7461736B3E0D0A3C2F70726F636573733E, 0, '2021-08-09 13:13:12', NULL);

-- ----------------------------
-- Table structure for wf_task
-- ----------------------------
DROP TABLE IF EXISTS `wf_task`;
CREATE TABLE `wf_task`  (
  `id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID',
  `order_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '流程实例ID',
  `task_Name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
  `display_Name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务显示名称',
  `task_Type` tinyint(1) NOT NULL COMMENT '任务类型',
  `perform_Type` tinyint(1) DEFAULT NULL COMMENT '参与类型',
  `operator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务处理人',
  `create_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务创建时间',
  `finish_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务完成时间',
  `expire_Time` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务期望完成时间',
  `action_Url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '任务处理的url',
  `parent_Task_Id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '父任务ID',
  `variable` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '附属变量json存储',
  `version` tinyint(1) DEFAULT NULL COMMENT '版本',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `IDX_TASK_ORDER`(`order_Id`) USING BTREE,
  INDEX `IDX_TASK_TASKNAME`(`task_Name`) USING BTREE,
  INDEX `IDX_TASK_PARENTTASK`(`parent_Task_Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_task
-- ----------------------------
INSERT INTO `wf_task` VALUES ('1efbc902092f458199ab24bd64e36ec8', '50bd89c380cd4e1188e6009415c19be6', 'approveDept', '部门经理审批', 0, 0, NULL, '2021-08-11 16:35:44', NULL, NULL, '', '89fd07efb4904a67b1d4aee823ebd7fa', '{\"day\":12,\"leaveReason\":\"2\",\"user1\":\"laker\",\"user2\":\"yang\",\"user3\":\"zhang\",\"S-ACTOR\":\"yang\"}', 0);

-- ----------------------------
-- Table structure for wf_task_actor
-- ----------------------------
DROP TABLE IF EXISTS `wf_task_actor`;
CREATE TABLE `wf_task_actor`  (
  `task_Id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务ID',
  `actor_Id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '参与者ID',
  INDEX `IDX_TASKACTOR_TASK`(`task_Id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务参与者表' ROW_FORMAT = Compact;

-- ----------------------------
-- Records of wf_task_actor
-- ----------------------------
INSERT INTO `wf_task_actor` VALUES ('ba3443374e3b4aeeb61fdbf7b2876582', '老板娘');
INSERT INTO `wf_task_actor` VALUES ('31d42833aad74561aeeb88ff7b4fcde9', 'user1');
INSERT INTO `wf_task_actor` VALUES ('2e67e87d27794d5d9ef5e8d36c986c27', 'yang');
INSERT INTO `wf_task_actor` VALUES ('1efbc902092f458199ab24bd64e36ec8', 'yang');

SET FOREIGN_KEY_CHECKS = 1;
