|
|
@ -340,6 +340,33 @@ CREATE TABLE `t_pro_task_detail` ( |
|
|
|
PRIMARY KEY (`id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务详情表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_status_record |
|
|
|
-- ---------------------------- |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for t_pro_task_sub |
|
|
|
-- ---------------------------- |
|
|
|
DROP TABLE IF EXISTS `t_pro_task_sub`; |
|
|
|
CREATE TABLE `t_pro_task_sub` ( |
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
`plan_start_time` bigint(20) NULL DEFAULT 0 COMMENT '计划开始时间', |
|
|
|
`plan_duration` bigint(20) NULL DEFAULT 0 COMMENT '计划时长', |
|
|
|
`plan_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间', |
|
|
|
`real_start_time` bigint(20) NULL DEFAULT 0 COMMENT '实际开始时间', |
|
|
|
`real_duration` bigint(20) NULL DEFAULT 0 COMMENT '实际时长', |
|
|
|
`real_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间', |
|
|
|
`task_status` tinyint(1) NULL DEFAULT 0 COMMENT '任务完成状态 0未开始 1进行中 2暂停 3完成', |
|
|
|
`task_detail_id` bigint(20) NULL DEFAULT 0 COMMENT '任务详情id', |
|
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp, |
|
|
|
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP, |
|
|
|
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0, |
|
|
|
PRIMARY KEY (`id`) USING BTREE, |
|
|
|
INDEX `task_detail_index`(`task_detail_id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分解表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_detail |
|
|
|
-- ---------------------------- |
|
|
@ -460,29 +487,6 @@ CREATE TABLE `t_pro_task_process` ( |
|
|
|
-- Records of t_pro_task_process |
|
|
|
-- ---------------------------- |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for t_pro_task_share |
|
|
|
-- ---------------------------- |
|
|
|
DROP TABLE IF EXISTS `t_pro_task_share`; |
|
|
|
CREATE TABLE `t_pro_task_share` ( |
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
`original_project_id` bigint(20) NULL DEFAULT 0 COMMENT '原项目id', |
|
|
|
`share_user_id` bigint(20) NULL DEFAULT 0 COMMENT '分享人id', |
|
|
|
`share_type` tinyint(1) NULL DEFAULT 0 COMMENT '分享类型(0-分享,1-体验)', |
|
|
|
`share_project_id` bigint(20) NULL DEFAULT 0 COMMENT '分享项目id', |
|
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp, |
|
|
|
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP, |
|
|
|
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0, |
|
|
|
PRIMARY KEY (`id`) USING BTREE, |
|
|
|
INDEX `original_project_index`(`original_project_id`) USING BTREE, |
|
|
|
INDEX `share_user_index`(`share_user_id`) USING BTREE, |
|
|
|
INDEX `share_project_index`(`share_project_id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分享表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_share |
|
|
|
-- ---------------------------- |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for t_pro_task_status_record |
|
|
|
-- ---------------------------- |
|
|
@ -501,30 +505,6 @@ CREATE TABLE `t_pro_task_status_record` ( |
|
|
|
INDEX `user_index`(`user_id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务状态记录表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_status_record |
|
|
|
-- ---------------------------- |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for t_pro_task_sub |
|
|
|
-- ---------------------------- |
|
|
|
DROP TABLE IF EXISTS `t_pro_task_sub`; |
|
|
|
CREATE TABLE `t_pro_task_sub` ( |
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
`plan_start_time` bigint(20) NULL DEFAULT 0 COMMENT '计划开始时间', |
|
|
|
`plan_duration` bigint(20) NULL DEFAULT 0 COMMENT '计划时长', |
|
|
|
`plan_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间', |
|
|
|
`real_start_time` bigint(20) NULL DEFAULT 0 COMMENT '实际开始时间', |
|
|
|
`real_duration` bigint(20) NULL DEFAULT 0 COMMENT '实际时长', |
|
|
|
`real_end_time` bigint(20) NULL DEFAULT 0 COMMENT '计划结束时间', |
|
|
|
`task_status` tinyint(1) NULL DEFAULT 0 COMMENT '任务完成状态 0未开始 1进行中 2暂停 3完成', |
|
|
|
`task_detail_id` bigint(20) NULL DEFAULT 0 COMMENT '任务详情id', |
|
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp, |
|
|
|
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP, |
|
|
|
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0, |
|
|
|
PRIMARY KEY (`id`) USING BTREE, |
|
|
|
INDEX `task_detail_index`(`task_detail_id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分解表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_sub |
|
|
@ -574,6 +554,29 @@ CREATE TABLE `t_sys_log` ( |
|
|
|
SET FOREIGN_KEY_CHECKS = 1; |
|
|
|
|
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Table structure for t_pro_task_share |
|
|
|
-- ---------------------------- |
|
|
|
DROP TABLE IF EXISTS `t_pro_task_share`; |
|
|
|
CREATE TABLE `t_pro_task_share` ( |
|
|
|
`id` bigint(20) NOT NULL, |
|
|
|
`original_project_id` bigint(20) NULL DEFAULT 0 COMMENT '原项目id', |
|
|
|
`share_user_id` bigint(20) NULL DEFAULT 0 COMMENT '分享人id', |
|
|
|
`share_type` tinyint(1) NULL DEFAULT 0 COMMENT '分享类型(0-分享,1-体验)', |
|
|
|
`share_project_id` bigint(20) NULL DEFAULT 0 COMMENT '分享项目id', |
|
|
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp, |
|
|
|
`updated_at` timestamp NOT NULL DEFAULT current_timestamp ON UPDATE CURRENT_TIMESTAMP, |
|
|
|
`rec_status` tinyint(1) UNSIGNED NULL DEFAULT 0, |
|
|
|
PRIMARY KEY (`id`) USING BTREE, |
|
|
|
INDEX `original_project_index`(`original_project_id`) USING BTREE, |
|
|
|
INDEX `share_user_index`(`share_user_id`) USING BTREE, |
|
|
|
INDEX `share_project_index`(`share_project_id`) USING BTREE |
|
|
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '任务分享表' ROW_FORMAT = Compact; |
|
|
|
|
|
|
|
-- ---------------------------- |
|
|
|
-- Records of t_pro_task_share |
|
|
|
-- ---------------------------- |
|
|
|
|
|
|
|
|
|
|
|
-- ---2021.08.26 生产已同步---------- |
|
|
|
DROP TABLE IF EXISTS `t_pro_project_share`; |
|
|
|