Files
fad_oa/sql/sys_oa_feedback.sql
2026-05-30 15:32:57 +08:00

29 lines
2.0 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 `sys_oa_feedback`;
CREATE TABLE `sys_oa_feedback` (
`feedback_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '反馈ID',
`title` varchar(120) NOT NULL COMMENT '标题',
`content` text NOT NULL COMMENT '详细内容',
`category` varchar(30) DEFAULT 'feature' COMMENT '类型 bug/feature/other',
`priority` tinyint(1) DEFAULT 2 COMMENT '优先级 1高 2中 3低',
`page_path` varchar(200) DEFAULT NULL COMMENT '问题出现的页面路径',
`attachment` varchar(500) DEFAULT NULL COMMENT '附件 OSS ID逗号分隔',
`submitter_id` bigint(20) NOT NULL COMMENT '提出者ID',
`submitter_name` varchar(64) DEFAULT NULL COMMENT '提出者昵称(冗余)',
`status` tinyint(1) DEFAULT 0 COMMENT '状态 0待处理 1已受理 2已完成 3已关闭',
`handler_id` bigint(20) DEFAULT NULL COMMENT '处理人ID',
`handler_name` varchar(64) DEFAULT NULL COMMENT '处理人昵称',
`accept_remark` varchar(500) DEFAULT NULL COMMENT '处理备注',
`accept_time` datetime DEFAULT NULL COMMENT '受理时间',
`finish_time` datetime DEFAULT NULL COMMENT '完成时间',
`create_by` varchar(64) DEFAULT NULL,
`create_time` datetime DEFAULT CURRENT_TIMESTAMP,
`update_by` varchar(64) DEFAULT NULL,
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`del_flag` tinyint(1) DEFAULT 0,
PRIMARY KEY (`feedback_id`),
KEY `idx_submitter` (`submitter_id`),
KEY `idx_handler` (`handler_id`),
KEY `idx_status` (`status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户反馈/修改意见';