Files
RuoYi-Vue/sql/project_link_check.sql

20 lines
1.1 KiB
SQL
Raw Permalink 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.

-- 项目清单:百度网盘、夸克网盘链接检测结果
-- 部署本功能前执行一次。
CREATE TABLE IF NOT EXISTS `tt_project_link_check` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`project_id` int NOT NULL COMMENT '项目ID',
`disk_type` varchar(16) NOT NULL COMMENT '网盘类型QUARK/BAIDU',
`link_url` varchar(1000) NOT NULL COMMENT '本次检测的链接快照',
`check_status` varchar(20) NOT NULL COMMENT 'VALID/INVALID/NEED_CODE/CODE_ERROR/FORMAT_ERROR/UNKNOWN',
`provider_code` varchar(32) DEFAULT NULL COMMENT '平台状态码或HTTP状态码',
`check_message` varchar(255) DEFAULT NULL COMMENT '检测结果说明',
`response_time_ms` bigint DEFAULT NULL COMMENT '检测耗时(毫秒)',
`checked_at` datetime NOT NULL COMMENT '检测时间',
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_project_disk_type` (`project_id`, `disk_type`),
KEY `idx_check_status_time` (`check_status`, `checked_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='项目网盘链接检测结果';