数字督察一体化平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
2.1 KiB

-- negative.supervise_report definition
CREATE TABLE `supervise_report` (
`id` varchar(40) COLLATE utf8mb4_general_ci NOT NULL,
`report_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '督察报告名称',
`crt_time` datetime DEFAULT NULL COMMENT '创建时间',
`crt_depart` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建单位',
`crt_depart_id` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建单位ID',
`crt_user` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人',
`crt_emp_no` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建人警号',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='督察通知';
-- negative.supervise_report_file definition
CREATE TABLE `supervise_report_file` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
`file_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '文件名',
`file_path` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '文件名',
`supervise_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '督察报告ID',
`crt_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`del` tinyint DEFAULT '0' COMMENT '逻辑删除键0-未删1已删',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='督察通知文件';
ALTER TABLE negative ADD COLUMN report_id VARCHAR(255) COMMENT '督察报告id';