aidmt-ms/sql/construction_issue_feedback...

31 lines
1.9 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.

-- ----------------------------
-- 施工问题反馈表
-- 来源1 视频检测经监理复核不合格转存2 监理人工提交现场问题
-- 施工方通过接口查询监理确认的问题列表
-- ----------------------------
DROP TABLE IF EXISTS `cons_issue_fb`;
CREATE TABLE `cons_issue_fb` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`project_id` bigint(20) NOT NULL COMMENT '项目ID工作票/计划关联)',
`source_type` char(1) NOT NULL COMMENT '来源1视频检测复核 2人工提交',
`video_detection_id` bigint(20) DEFAULT NULL COMMENT '视频检测记录ID来源为1时关联cons_video_detection.id',
`detection_name` varchar(128) DEFAULT NULL COMMENT '检测名称',
`description` varchar(512) DEFAULT NULL COMMENT '问题描述',
`problem_photo_url` varchar(512) DEFAULT NULL COMMENT '问题照片或视频URL',
`status` char(1) DEFAULT '0' COMMENT '状态0待处理 1待复核 2复核通过 3复核不通过',
`submit_by` varchar(64) DEFAULT NULL COMMENT '提交人(复核人/人工提交人)',
`submit_time` datetime DEFAULT NULL COMMENT '提交时间',
`remark` varchar(500) DEFAULT NULL COMMENT '备注',
`del_flag` char(1) DEFAULT '0' COMMENT '删除标志0存在 2删除',
`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_project_id` (`project_id`) USING BTREE,
KEY `idx_source_type` (`source_type`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_video_detection_id` (`video_detection_id`) USING BTREE,
KEY `idx_submit_time` (`submit_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='施工问题反馈表 cons_issue_fb';