Files
tougao/sql/reference_check_result.sql
2026-05-26 18:01:44 +08:00

29 lines
1.8 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.
-- 单条引用检测结果(如 <blue>[70-73]</blue> 展开为 reference_no=70,71,72,73 共 4 行)
-- 分节是否通过见 t_article_main.ref_check_status
CREATE TABLE IF NOT EXISTS `t_reference_check_result` (
`check_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL DEFAULT 0 COMMENT 't_article.article_id',
`am_id` int(11) NOT NULL DEFAULT 0 COMMENT 't_article_main.am_id',
`p_article_id` int(11) NOT NULL DEFAULT 0,
`p_refer_id` int(11) NOT NULL DEFAULT 0 COMMENT 't_production_article_refer.p_refer_id',
`refer_index` int(11) NOT NULL DEFAULT 0 COMMENT 'refer.index正文序号=index+1',
`reference_no` int(11) NOT NULL DEFAULT 0 COMMENT 'blue 括号内序号 n对应 index=n-1',
`reference_raw` varchar(64) NOT NULL DEFAULT '' COMMENT '如 70-73',
`cite_tag_start` int(11) NOT NULL DEFAULT 0 COMMENT 'blue标签起始字节偏移',
`cite_tag_end` int(11) NOT NULL DEFAULT 0 COMMENT 'blue标签结束字节偏移',
`text_start` int(11) NOT NULL DEFAULT 0 COMMENT '引用句起始字节偏移',
`text_end` int(11) NOT NULL DEFAULT 0 COMMENT '引用句结束字节偏移',
`content_a` text COMMENT '引用处上下文(正文)',
`content_b` text COMMENT '参考文献条目文本',
`is_match` tinyint(1) NOT NULL DEFAULT 0,
`confidence` decimal(6,4) NOT NULL DEFAULT 0.0000,
`reason` varchar(512) NOT NULL DEFAULT '',
`status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0待处理 1完成 2失败',
`error_msg` varchar(512) NOT NULL DEFAULT '',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`check_id`),
KEY `idx_article_status` (`article_id`,`status`),
KEY `idx_p_refer` (`p_refer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='引用文献 LLM 校对结果';