fix: align match live schema foundation

This commit is contained in:
hajimi
2026-06-21 11:21:21 +08:00
parent ee4f2504bd
commit 2496050ee7
3 changed files with 33 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
CREATE TABLE `la_match_live` (
CREATE TABLE IF NOT EXISTS `la_match_live` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键',
`match_id` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '比赛ID',
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '直播标题',
@@ -13,7 +13,7 @@ CREATE TABLE `la_match_live` (
`next_fetch_at` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '下次抓取时间',
`create_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '创建时间',
`update_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '更新时间',
`delete_time` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除时间',
`delete_time` int UNSIGNED DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_match_source_url` (`match_id`, `source_url`) USING BTREE,
KEY `idx_match_id` (`match_id`) USING BTREE,