-- ---------------------------- -- B站合集(Series/Season) 同步源配置表 -- 说明:以UP主mid + season_id为主(B站“合集/系列”常见公开接口形态) -- ---------------------------- drop table if exists teaching_video_source; create table teaching_video_source ( source_id bigint(20) not null auto_increment comment '源ID', source_type varchar(32) not null comment '来源类型(BILIBILI)', mid bigint(20) default null comment 'UP主mid', season_id bigint(20) default null comment '合集/系列season_id', category_code varchar(32) default 'BASIC' comment '落库分类(默认BASIC)', enabled char(1) default '0' comment '启用(0启用 1停用)', sort_num int(11) default 0 comment '排序', last_sync_time datetime default null comment '最近同步时间', last_sync_status char(1) default '0' comment '最近同步状态(0正常 1失败)', last_sync_error varchar(500) default null comment '最近同步错误', create_by varchar(64) default '' comment '创建者', create_time datetime comment '创建时间', update_by varchar(64) default '' comment '更新者', update_time datetime comment '更新时间', remark varchar(500) default null comment '备注', primary key (source_id), key idx_video_source_enabled (enabled), key idx_video_source_sort (sort_num) ) engine=innodb auto_increment=1 comment = '教学视频外部源配置表'; -- 示例:请把 mid/season_id 替换为你公司维护的合集 insert into teaching_video_source (source_type, mid, season_id, category_code, enabled, sort_num, create_by, create_time, remark) values ('BILIBILI', 37974444, 240490, 'BASIC', '0', 10, 'admin', sysdate(), '示例:同步B站合集(需替换mid/season_id)');