更新数据库文件

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-06-26 17:52:13 +08:00
parent 3fd91ba2bb
commit 3cf3c2d576
3 changed files with 3051 additions and 12 deletions

View File

@ -0,0 +1,31 @@
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `pearProject`.`pear_member` MODIFY COLUMN `dingtalk_userid` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '钉钉用户id' AFTER `dingtalk_unionid`;
ALTER TABLE `pearProject`.`pear_project_log` ADD COLUMN `is_robot` tinyint(1) NULL DEFAULT 0 COMMENT '是否机器人' AFTER `icon`;
CREATE TABLE `pearProject`.`pear_task_workflow` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规则名称',
`create_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`update_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`organization_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '组织id',
`project_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '项目id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务工作流表' ROW_FORMAT = Compact;
CREATE TABLE `pearProject`.`pear_task_workflow_rule` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
`type` tinyint(1) NULL DEFAULT 0 COMMENT '规则类型0任务分组1人员2条件',
`object_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '对象id',
`action` tinyint(1) NULL DEFAULT 0 COMMENT '场景。0任何条件1被完成2被重做3设置执行人4截止时间5优先级',
`create_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`update_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`workflow_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '工作流id',
`sort` int(10) NULL DEFAULT 0 COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务工作流规则表' ROW_FORMAT = Compact;
SET FOREIGN_KEY_CHECKS=1;

2935
data/2.6.0/pearproject.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,17 +1,17 @@
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server :
Source Server Type : MySQL
Source Server Version : 50640
Source Host : localhost:3306
Source Server Version : 50642
Source Host : 127.0.0.1:3306
Source Schema : pearproject
Target Server Type : MySQL
Target Server Version : 50640
Target Server Version : 50642
File Encoding : 65001
Date: 24/06/2019 19:15:16
Date: 26/06/2019 17:51:08
*/
SET NAMES utf8mb4;
@ -219,7 +219,7 @@ CREATE TABLE `pear_member` (
-- ----------------------------
-- Records of pear_member
-- ----------------------------
INSERT INTO `pear_member` VALUES (582, '123456', 'e10adc3949ba59abbe56e057f20f883e', 'vilson', '18681140825', 'juli', NULL, 1, '2019-02-16 10:22:45', '', 'https://static.vilson.xyz/cover.png', '', 0, 0, 0, NULL, NULL, '545522390@qq.com', '6v7be19pwman2fird04gqu53', NULL, NULL, NULL);
INSERT INTO `pear_member` VALUES (582, '123456', 'e10adc3949ba59abbe56e057f20f883e', 'vilson', '18681140825', 'juli', NULL, 1, '2019-06-26 14:12:48', '', 'https://static.vilson.xyz/cover.png', '', 0, 0, 0, NULL, NULL, '545522390@qq.com', '6v7be19pwman2fird04gqu53', NULL, NULL, NULL);
INSERT INTO `pear_member` VALUES (586, 'Alians', 'e10adc3949ba59abbe56e057f20f883e', 'Alians', '18377893857', 'vilson', NULL, 1, '2019-01-26 07:29:41', '', 'https://gw.alipayobjects.com/zos/rmsportal/zOsKZmFRdUtvpqCImOVY.png', NULL, 0, 0, 0, NULL, NULL, 'vilson@qq.com', 'kqdcn2w40p58r31zyo6efjib', NULL, NULL, NULL);
INSERT INTO `pear_member` VALUES (587, 'Chihiro', 'e10adc3949ba59abbe56e057f20f883e', 'Chihiro', '18278881051', 'Chihiro', NULL, 1, '2019-01-24 11:15:09', '', 'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png', NULL, 0, 0, 0, NULL, NULL, '741648282@qq.com', 'y680trgedcavbhnz24u7i5m3', NULL, NULL, NULL);
INSERT INTO `pear_member` VALUES (588, 'Json', 'f9f02f39d6d2048d760d8add98265ba1', 'Json', '18681140821', 'Json', '2019-01-05 21:57:01', 1, '2019-01-06 08:21:42', '', 'https://static.vilson.xyz/cover.png', NULL, 0, 0, 0, NULL, NULL, '123456@qq.com', 'vys8gd32cfui6brtwzj4pqho', NULL, NULL, NULL);
@ -390,7 +390,7 @@ CREATE TABLE `pear_project` (
INSERT INTO `pear_project` VALUES (1, 'https://beta.vilson.xyz/static/upload//20190103/f9ad4e304ea0be7609e3236188f7547d.png', 'iView', 'a8mpr6tvbndk10hj2lwcqzuo', '那是一种内在的东西, 他们到达不了,也无法触及的', 'private', NULL, NULL, 0, '10', 39.00, '2018-04-30 22:29:18', '6v7be19pwman2fird04gqu53', NULL, 1, '', 0, 0, NULL, 0, 0, 'default');
INSERT INTO `pear_project` VALUES (2, 'https://beta.vilson.xyz/static/upload//20190103/aaacec0e2001580b44dffbb967804349.png', 'Alipay', '8rlqyh56smzpoc1wef7390t2', '城镇中有那么多的酒馆,她却偏偏走进了我的酒馆', 'open', NULL, NULL, 0, '10', 75.00, '2018-05-01 09:28:36', '6v7be19pwman2fird04gqu53', NULL, 1, '', 0, 0, NULL, 0, 0, 'default');
INSERT INTO `pear_project` VALUES (3, 'https://beta.vilson.xyz/static/upload//20190103/9ba2134d72cc3cec58f61024b89eb798.png', 'Vue', 'nkp4gulsb6oxqyi80fhead39', '生命就像一盒巧克力,结果往往出人意料', 'open', NULL, NULL, 0, '10', 63.00, '2018-05-01 09:33:43', '6v7be19pwman2fird04gqu53', '2019-01-03 22:20:10', 1, '', 0, 0, NULL, 0, 0, 'default');
INSERT INTO `pear_project` VALUES (4, 'https://beta.vilson.xyz/static/upload//20190103/6fc14133651ee1c6ee1abaafcea76d01.png', 'Angular', 'sbklfvyouc0qpmwhitn47j5z', '希望是一个好东西,也许是最好的,好东西是不会消亡的', 'private', NULL, NULL, 0, '13', 100.00, '2018-05-01 09:36:05', '6v7be19pwman2fird04gqu53', NULL, 1, '', 0, 0, NULL, 0, 0, 'default');
INSERT INTO `pear_project` VALUES (4, 'https://beta.vilson.xyz/static/upload//20190103/6fc14133651ee1c6ee1abaafcea76d01.png', 'Angular', 'sbklfvyouc0qpmwhitn47j5z', '希望是一个好东西,也许是最好的,好东西是不会消亡的', 'private', NULL, NULL, 0, '13', 100.00, '2018-05-01 09:36:05', '6v7be19pwman2fird04gqu53', NULL, 1, '', 0, 0, NULL, 0, 0, 'simple');
INSERT INTO `pear_project` VALUES (5, 'https://beta.vilson.xyz/static/upload//20190103/5d2a6e2d2cb235bb6888b884331bb516.png', 'EasyUI', 'n5opgqevrz1l03h48uwx67d2', '那时候我只会想自己想要什么,从不想自己拥有什么', 'open', NULL, NULL, 1, '0', 0.00, '2018-12-22 10:52:25', '6v7be19pwman2fird04gqu53', '2019-01-03 22:19:50', 1, '', 0, 0, NULL, 0, 0, 'default');
INSERT INTO `pear_project` VALUES (1302, 'https://beta.vilson.xyz/static/upload//20190103/271ec382566f0d2ca187740330b19a17.png', 'Ant Motion', 'ibag9hw3o1tusd5qlpxrk782', '如果我真的存在,也是因为你需要我', 'open', NULL, 0, 1, '0', 50.00, '2018-12-23 09:53:25', '6v7be19pwman2fird04gqu53', '2019-01-04 21:48:33', 0, '', 0, 0, '2019-01-02 21:01:12', 0, 0, 'default');
INSERT INTO `pear_project` VALUES (1303, 'https://beta.vilson.xyz/static/upload//20190103/30bdd62b610f5a4e3f788ec37e6c4a5b.png', 'Material UI', 'elqa703jyvfhpt1dsxkzi8on', '这个项目你不是项目成员,将不能进行操作(只读)', 'open', NULL, 0, 0, '0', 35.00, '2018-12-23 09:33:46', '6v7be19pwman2fird04gqu53', NULL, 0, '', 0, 0, NULL, 0, 0, 'default');
@ -1262,7 +1262,7 @@ CREATE TABLE `pear_project_log` (
`project_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`icon` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4458 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目日志表' ROW_FORMAT = Compact;
) ENGINE = InnoDB AUTO_INCREMENT = 4464 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目日志表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_project_log
@ -1848,6 +1848,12 @@ INSERT INTO `pear_project_log` VALUES (4454, 'mkwvfasuptgld0ex895c2ijo', '6v7be1
INSERT INTO `pear_project_log` VALUES (4455, 'ce9dru1wom3kv0hfabg5ly47', '6v7be19pwman2fird04gqu53', 'Ant Design', '编辑了项目 ', 'edit', '2019-06-17 17:53:36', 'mo4uqwfb06dxv8ez2spkl3rg', 'project', '', 0, 'mo4uqwfb06dxv8ez2spkl3rg', 'edit');
INSERT INTO `pear_project_log` VALUES (4456, 'evsmnqbkz64a7cdp9yj2o0g8', '6v7be19pwman2fird04gqu53', 'Ant Design', '编辑了项目 ', 'edit', '2019-06-17 17:53:42', 'mo4uqwfb06dxv8ez2spkl3rg', 'project', '', 0, 'mo4uqwfb06dxv8ez2spkl3rg', 'edit');
INSERT INTO `pear_project_log` VALUES (4457, 'fkaq3o1wnc7se4thmypir980', '6v7be19pwman2fird04gqu53', 'Ant Design', '编辑了项目 ', 'edit', '2019-06-17 17:53:53', 'mo4uqwfb06dxv8ez2spkl3rg', 'project', '', 0, 'mo4uqwfb06dxv8ez2spkl3rg', 'edit');
INSERT INTO `pear_project_log` VALUES (4458, 'nsti9goruhakc34xw2md0b7p', '6v7be19pwman2fird04gqu53', 'Angular', '编辑了项目 ', 'edit', '2019-06-26 14:13:53', 'sbklfvyouc0qpmwhitn47j5z', 'project', '', 0, 'sbklfvyouc0qpmwhitn47j5z', 'edit');
INSERT INTO `pear_project_log` VALUES (4459, 'ugf52ld8ojkqxa4rzcp7hm13', '6v7be19pwman2fird04gqu53', 'Alians', '邀请 Alians 加入项目', 'inviteMember', '2019-06-26 14:15:01', 'sbklfvyouc0qpmwhitn47j5z', 'project', 'kqdcn2w40p58r31zyo6efjib', 0, 'sbklfvyouc0qpmwhitn47j5z', 'user-add');
INSERT INTO `pear_project_log` VALUES (4460, 'dymctxshnvq604frukwi8oae', '6v7be19pwman2fird04gqu53', 'Chihiro', '邀请 Chihiro 加入项目', 'inviteMember', '2019-06-26 14:15:29', 'sbklfvyouc0qpmwhitn47j5z', 'project', 'y680trgedcavbhnz24u7i5m3', 0, 'sbklfvyouc0qpmwhitn47j5z', 'user-add');
INSERT INTO `pear_project_log` VALUES (4461, 'fhtyx80api1jnc6k724dw3v5', '6v7be19pwman2fird04gqu53', 'Json', '邀请 Json 加入项目', 'inviteMember', '2019-06-26 14:15:35', 'sbklfvyouc0qpmwhitn47j5z', 'project', 'vys8gd32cfui6brtwzj4pqho', 0, 'sbklfvyouc0qpmwhitn47j5z', 'user-add');
INSERT INTO `pear_project_log` VALUES (4462, 'sgi79r02adzc5exhoby4qmtn', '6v7be19pwman2fird04gqu53', '应聘者 孙立平', '创建了任务 ', 'create', '2019-06-26 14:41:01', 'pvt5nm7u49hi3ckr0a1zqgbe', 'task', '', 0, 'sbklfvyouc0qpmwhitn47j5z', 'plus');
INSERT INTO `pear_project_log` VALUES (4463, 'nfq2txjrzlogde3khv01m8wu', '6v7be19pwman2fird04gqu53', '', '认领了任务 ', 'claim', '2019-06-26 14:41:01', 'pvt5nm7u49hi3ckr0a1zqgbe', 'task', '', 0, 'sbklfvyouc0qpmwhitn47j5z', 'user');
-- ----------------------------
-- Table structure for pear_project_member
@ -1861,7 +1867,7 @@ CREATE TABLE `pear_project_member` (
`is_owner` int(11) NULL DEFAULT 0 COMMENT '拥有者',
`authorize` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '角色',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 34 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目-成员表' ROW_FORMAT = Compact;
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '项目-成员表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_project_member
@ -1888,6 +1894,9 @@ INSERT INTO `pear_project_member` VALUES (30, 'elqa703jyvfhpt1dsxkzi8on', 'y680t
INSERT INTO `pear_project_member` VALUES (31, 'ibag9hw3o1tusd5qlpxrk782', '6v7be19pwman2fird04gqu53', '2019-01-04 21:45:41', 0, NULL);
INSERT INTO `pear_project_member` VALUES (32, 'gbim9jpevkh7qr6ufa1t3wl4', 'vys8gd32cfui6brtwzj4pqho', '2019-01-05 21:57:31', 1, NULL);
INSERT INTO `pear_project_member` VALUES (33, 'gbim9jpevkh7qr6ufa1t3wl4', 'kqdcn2w40p58r31zyo6efjib', '2019-01-05 21:57:36', 0, NULL);
INSERT INTO `pear_project_member` VALUES (34, 'sbklfvyouc0qpmwhitn47j5z', 'kqdcn2w40p58r31zyo6efjib', '2019-06-26 14:15:01', 0, NULL);
INSERT INTO `pear_project_member` VALUES (35, 'sbklfvyouc0qpmwhitn47j5z', 'y680trgedcavbhnz24u7i5m3', '2019-06-26 14:15:29', 0, NULL);
INSERT INTO `pear_project_member` VALUES (36, 'sbklfvyouc0qpmwhitn47j5z', 'vys8gd32cfui6brtwzj4pqho', '2019-06-26 14:15:35', 0, NULL);
-- ----------------------------
-- Table structure for pear_project_menu
@ -2327,7 +2336,7 @@ CREATE TABLE `pear_task` (
`features_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '版本库id',
PRIMARY KEY (`id`, `project_code`) USING BTREE,
INDEX `task`(`code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12361 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务表' ROW_FORMAT = Compact;
) ENGINE = InnoDB AUTO_INCREMENT = 12362 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task
@ -2413,6 +2422,7 @@ INSERT INTO `pear_task` VALUES (12357, 'vnjthy40w5gim1xflcp3z8rs', 'mo4uqwfb06dx
INSERT INTO `pear_task` VALUES (12358, 'jq3xc7uklh1tv9g6swmep8yn', 'mo4uqwfb06dxv8ez2spkl3rg', '2级任务', 0, 'wait', NULL, '6v7be19pwman2fird04gqu53', '2019-01-24 15:35:54', '6v7be19pwman2fird04gqu53', 0, 'p56enm7zck4id2rb0tx9lguh', NULL, 0, NULL, NULL, NULL, 'vnjthy40w5gim1xflcp3z8rs', 0, 0, 0, NULL, 0, 38, 'vnjthy40w5gim1xflcp3z8rs', 0, '', '');
INSERT INTO `pear_task` VALUES (12359, '64rmkd08wonsjx39fg71t5li', 'mo4uqwfb06dxv8ez2spkl3rg', '3级任务', 0, 'wait', NULL, '6v7be19pwman2fird04gqu53', '2019-01-24 15:36:16', '6v7be19pwman2fird04gqu53', 0, 'p56enm7zck4id2rb0tx9lguh', NULL, 0, NULL, NULL, NULL, 'jq3xc7uklh1tv9g6swmep8yn', 0, 0, 0, NULL, 0, 39, 'jq3xc7uklh1tv9g6swmep8yn,vnjthy40w5gim1xflcp3z8rs', 0, '', '');
INSERT INTO `pear_task` VALUES (12360, 'xc2p9lign6zmvwte7jhu8byd', 'mo4uqwfb06dxv8ez2spkl3rg', '4级任务', 0, 'wait', NULL, '6v7be19pwman2fird04gqu53', '2019-01-24 15:59:55', '6v7be19pwman2fird04gqu53', 0, 'p56enm7zck4id2rb0tx9lguh', NULL, 0, NULL, NULL, NULL, '64rmkd08wonsjx39fg71t5li', 0, 0, 0, NULL, 0, 40, '64rmkd08wonsjx39fg71t5li,jq3xc7uklh1tv9g6swmep8yn,vnjthy40w5gim1xflcp3z8rs', 0, '', '');
INSERT INTO `pear_task` VALUES (12361, 'pvt5nm7u49hi3ckr0a1zqgbe', 'sbklfvyouc0qpmwhitn47j5z', '应聘者 孙立平', 0, 'wait', NULL, '6v7be19pwman2fird04gqu53', '2019-06-26 14:41:01', '6v7be19pwman2fird04gqu53', 0, '7fea2dnwqvhxpt3mcrl4j1uz', NULL, 0, NULL, NULL, NULL, '', 0, 0, 0, NULL, 0, 1, '', 0, '0', '0');
-- ----------------------------
-- Table structure for pear_task_like
@ -2457,7 +2467,7 @@ CREATE TABLE `pear_task_member` (
`is_owner` tinyint(1) NULL DEFAULT 0 COMMENT '是否创建人',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `id`(`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 271 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务-成员表' ROW_FORMAT = Compact;
) ENGINE = InnoDB AUTO_INCREMENT = 272 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务-成员表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_member
@ -2707,6 +2717,7 @@ INSERT INTO `pear_task_member` VALUES (267, 'vnjthy40w5gim1xflcp3z8rs', 1, '6v7b
INSERT INTO `pear_task_member` VALUES (268, 'jq3xc7uklh1tv9g6swmep8yn', 1, '6v7be19pwman2fird04gqu53', '2019-01-24 15:35:54', 1);
INSERT INTO `pear_task_member` VALUES (269, '64rmkd08wonsjx39fg71t5li', 1, '6v7be19pwman2fird04gqu53', '2019-01-24 15:36:16', 1);
INSERT INTO `pear_task_member` VALUES (270, 'xc2p9lign6zmvwte7jhu8byd', 1, '6v7be19pwman2fird04gqu53', '2019-01-24 15:59:56', 1);
INSERT INTO `pear_task_member` VALUES (271, 'pvt5nm7u49hi3ckr0a1zqgbe', 1, '6v7be19pwman2fird04gqu53', '2019-06-26 14:41:01', 1);
-- ----------------------------
-- Table structure for pear_task_stages
@ -2722,7 +2733,7 @@ CREATE TABLE `pear_task_stages` (
`code` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号',
`deleted` tinyint(1) NULL DEFAULT 0 COMMENT '删除标记',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 72 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务列表表' ROW_FORMAT = Compact;
) ENGINE = InnoDB AUTO_INCREMENT = 77 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务列表表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_stages
@ -2759,6 +2770,11 @@ INSERT INTO `pear_task_stages` VALUES (67, '即将发布', 'gbim9jpevkh7qr6ufa1t
INSERT INTO `pear_task_stages` VALUES (68, '测试', 'gbim9jpevkh7qr6ufa1t3wl4', 2, NULL, '2019-01-05 21:57:31', '97gxmwyidlae4r2u1hqbcpnz', 0);
INSERT INTO `pear_task_stages` VALUES (69, '准备发布', 'gbim9jpevkh7qr6ufa1t3wl4', 3, NULL, '2019-01-05 21:57:31', '9f4vdsw7gzpo2hm1qbt0xyn6', 0);
INSERT INTO `pear_task_stages` VALUES (70, '发布成功', 'gbim9jpevkh7qr6ufa1t3wl4', 4, NULL, '2019-01-05 21:57:31', 'pm8129iltue7jnyvgb4d30xw', 0);
INSERT INTO `pear_task_stages` VALUES (72, '简历初筛', 'sbklfvyouc0qpmwhitn47j5z', 72, NULL, '2019-06-26 14:14:01', '7fea2dnwqvhxpt3mcrl4j1uz', 0);
INSERT INTO `pear_task_stages` VALUES (73, '用人部门筛选', 'sbklfvyouc0qpmwhitn47j5z', 73, NULL, '2019-06-26 14:14:17', 'xqo8u02h315ytjmlegnsbvip', 0);
INSERT INTO `pear_task_stages` VALUES (74, '面试', 'sbklfvyouc0qpmwhitn47j5z', 74, NULL, '2019-06-26 14:14:24', 'csb8djyktl0f9nop71h64m5r', 0);
INSERT INTO `pear_task_stages` VALUES (75, 'Offer发放', 'sbklfvyouc0qpmwhitn47j5z', 75, NULL, '2019-06-26 14:14:32', '9mo2nrbqygfv6j3tlzd1csex', 0);
INSERT INTO `pear_task_stages` VALUES (76, '入职', 'sbklfvyouc0qpmwhitn47j5z', 76, NULL, '2019-06-26 14:14:39', '5dinzhvtl29rxqey8puoa1b6', 0);
-- ----------------------------
-- Table structure for pear_task_stages_template
@ -2844,6 +2860,63 @@ INSERT INTO `pear_task_to_tag` VALUES (135, '32uog4ewka9cdv5xm6jfybs8', '6hj43ue
INSERT INTO `pear_task_to_tag` VALUES (136, '9k4mq1fwpc8xzebodv0i2jnr', '6hj43ueim2bk187sqzcoy59v', 'kjw19pzil4af5qcnry0gh6od', '2019-02-16 12:15:53');
INSERT INTO `pear_task_to_tag` VALUES (137, 'yfiowudeh7vx25gnaj9l6sz1', '6hj43ueim2bk187sqzcoy59v', 'suply7ri2t3x18kgqwbvh4cn', '2019-02-16 12:15:53');
-- ----------------------------
-- Table structure for pear_task_workflow
-- ----------------------------
DROP TABLE IF EXISTS `pear_task_workflow`;
CREATE TABLE `pear_task_workflow` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规则名称',
`create_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`update_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`organization_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '组织id',
`project_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '项目id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务工作流表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_workflow
-- ----------------------------
INSERT INTO `pear_task_workflow` VALUES (3, 'sbklfvyouc0qpmwhitn47j5z', '面试邀约规则', NULL, NULL, '6v7be19pwman2fird04gqu53', 'sbklfvyouc0qpmwhitn47j5z');
INSERT INTO `pear_task_workflow` VALUES (4, 'sbklfvyouc0qpmwhitn47j51', '面试确认规则', NULL, NULL, '6v7be19pwman2fird04gqu53', 'sbklfvyouc0qpmwhitn47j5z');
INSERT INTO `pear_task_workflow` VALUES (5, 'sbklfvyouc0qpmwhitn47j52', '确认入职规则', NULL, NULL, '6v7be19pwman2fird04gqu53', 'sbklfvyouc0qpmwhitn47j5z');
INSERT INTO `pear_task_workflow` VALUES (6, 'sbklfvyouc0qpmwhitn47j53', 'Offer发放规则', NULL, NULL, '6v7be19pwman2fird04gqu53', 'sbklfvyouc0qpmwhitn47j5z');
-- ----------------------------
-- Table structure for pear_task_workflow_rule
-- ----------------------------
DROP TABLE IF EXISTS `pear_task_workflow_rule`;
CREATE TABLE `pear_task_workflow_rule` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号',
`type` tinyint(1) NULL DEFAULT 0 COMMENT '规则类型0任务分组1人员2条件',
`object_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '对象id',
`action` tinyint(1) NULL DEFAULT 0 COMMENT '场景。0任何条件1被完成2被重做3设置执行人4截止时间5优先级',
`create_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`update_time` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`workflow_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '工作流id',
`sort` int(10) NULL DEFAULT 0 COMMENT '排序',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '任务工作流规则表' ROW_FORMAT = Compact;
-- ----------------------------
-- Records of pear_task_workflow_rule
-- ----------------------------
INSERT INTO `pear_task_workflow_rule` VALUES (3, 'sbklfvyouc0qpmwhitn47j5z', 0, '7fea2dnwqvhxpt3mcrl4j1uz', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j5z', 1);
INSERT INTO `pear_task_workflow_rule` VALUES (4, '3', 1, 'kqdcn2w40p58r31zyo6efjib', 3, NULL, NULL, 'sbklfvyouc0qpmwhitn47j5z', 2);
INSERT INTO `pear_task_workflow_rule` VALUES (5, '4', 0, 'xqo8u02h315ytjmlegnsbvip', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j5z', 3);
INSERT INTO `pear_task_workflow_rule` VALUES (6, '5', 0, 'xqo8u02h315ytjmlegnsbvip', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j51', 1);
INSERT INTO `pear_task_workflow_rule` VALUES (7, '6', 0, 'y680trgedcavbhnz24u7i5m3', 3, NULL, NULL, 'sbklfvyouc0qpmwhitn47j51', 2);
INSERT INTO `pear_task_workflow_rule` VALUES (8, '7', 0, 'csb8djyktl0f9nop71h64m5r', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j51', 3);
INSERT INTO `pear_task_workflow_rule` VALUES (9, '8', 0, '9mo2nrbqygfv6j3tlzd1csex', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j52', 1);
INSERT INTO `pear_task_workflow_rule` VALUES (10, '9', 0, NULL, 1, NULL, NULL, 'sbklfvyouc0qpmwhitn47j52', 2);
INSERT INTO `pear_task_workflow_rule` VALUES (11, '10', 0, '5dinzhvtl29rxqey8puoa1b6', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j52', 3);
INSERT INTO `pear_task_workflow_rule` VALUES (12, '11', 0, '6v7be19pwman2fird04gqu53', 1, NULL, NULL, 'sbklfvyouc0qpmwhitn47j52', 4);
INSERT INTO `pear_task_workflow_rule` VALUES (13, '12', 0, 'csb8djyktl0f9nop71h64m5r', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j53', 1);
INSERT INTO `pear_task_workflow_rule` VALUES (14, '13', 0, 'kqdcn2w40p58r31zyo6efjib', 3, NULL, NULL, 'sbklfvyouc0qpmwhitn47j53', 2);
INSERT INTO `pear_task_workflow_rule` VALUES (15, '14', 0, '9mo2nrbqygfv6j3tlzd1csex', 0, NULL, NULL, 'sbklfvyouc0qpmwhitn47j53', 3);
-- ----------------------------
-- Table structure for pear_user_token
-- ----------------------------