From 45d400b5833a156f10b151acdb7809bc0f0e684b Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Tue, 16 Apr 2024 15:39:08 +0800 Subject: [PATCH] =?UTF-8?q?#ticket=E5=88=9D=E5=A7=8Bsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ticket/src/main/resources/db/2.0.2.sql | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 hzims-service/ticket/src/main/resources/db/2.0.2.sql diff --git a/hzims-service/ticket/src/main/resources/db/2.0.2.sql b/hzims-service/ticket/src/main/resources/db/2.0.2.sql new file mode 100644 index 0000000..f3b3e2f --- /dev/null +++ b/hzims-service/ticket/src/main/resources/db/2.0.2.sql @@ -0,0 +1,37 @@ +CREATE TABLE `HZIMS_WORK_TASK` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键', + `CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务单编号', + `HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '工作负责人', + `HEAD_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作负责人名称', + `HEAD_HANDLE_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作负责人处理时间', + `GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '班组ID', + `GROUP_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组名称', + `MEMBER` VARCHAR(512) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组成员ID : 按 “,”分割', + `MEMBER_NAME` VARCHAR(1024) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组成员名称 : 按 “,”分割', + `PLAN_START_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作计划开始时间', + `PLAN_END_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作计划结束时间', + `WORK_TICKET_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票ID', + `WORK_TASK` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务', + `SECURITY_MEASURES` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '现场安全措施', + `RISK_PRE_CONTROL` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '安全风险及预控措施', + `LICENSOR` BIGINT(20) NULL DEFAULT NULL COMMENT '许可人', + `LICENSOR_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '许可人名称', + `LICENSOR_TIME` DATETIME NULL DEFAULT NULL COMMENT '许可时间', + `TERMINATOR` BIGINT(20) NULL DEFAULT NULL COMMENT '工作结束人', + `TERMINATOR_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作结束人名称', + `WORK_END_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作结束时间', + `MEMO` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '备注', + `PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程实例ID', + `TASK_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程环节名称', + `NEXT_STEP_OPERATOR` VARCHAR(512) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程环节处理人', + `DEPT_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '创建机构名称', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除', + `STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态 ', + `CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI ROW_FORMAT = DYNAMIC;