aidmt-ms/sql/construction_issue_rectific...

27 lines
1.6 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ----------------------------
-- 施工问题整改表
-- 施工单位对问题提交整改,监理复核;复核不通过可重新提交(新记录)
-- ----------------------------
DROP TABLE IF EXISTS `cons_issue_rf`;
CREATE TABLE `cons_issue_rf` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`feedback_id` bigint(20) NOT NULL COMMENT '问题反馈ID关联cons_issue_fb.id',
`rectification_desc` varchar(1000) DEFAULT NULL COMMENT '整改措施描述',
`rectification_photo_urls` varchar(2000) DEFAULT NULL COMMENT '整改完成照片,多张用逗号分隔',
`rectification_time` datetime DEFAULT NULL COMMENT '整改完成时间',
`status` char(1) DEFAULT '0' COMMENT '状态0草稿 1已提交',
`review_result` char(1) DEFAULT NULL COMMENT '复核结果1到位 2未到位',
`review_comment` varchar(500) DEFAULT NULL COMMENT '复核意见',
`review_photo_urls` varchar(2000) DEFAULT NULL COMMENT '复核照片,多张用逗号分隔',
`review_by` varchar(64) DEFAULT NULL COMMENT '复核人',
`review_time` datetime DEFAULT NULL COMMENT '复核时间',
`create_by` varchar(64) DEFAULT NULL COMMENT '创建者',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) DEFAULT NULL COMMENT '更新者',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_feedback_id` (`feedback_id`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_review_result` (`review_result`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='施工问题整改表 cons_issue_rf';