v0.3.0版本重构. 以 主播 为目标单位.
This commit is contained in:
@@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS `streamer` (
|
||||
|
||||
`is_update_streamer` tinyint(1) DEFAULT 0 COMMENT '是否需要持续更新streamer的信息. 1为需要,0则否',
|
||||
`is_update_url` tinyint(1) DEFAULT 0 COMMENT '是否需要持续更新update_url. 1为需要,0则否',
|
||||
`update_url` json NOT NULL COMMENT '更新数据的url, 如直播url, profile url等',
|
||||
`update_url` json DEFAULT NULL COMMENT '更新数据的url, 如直播url, profile url等',
|
||||
`update_interval` int DEFAULT 30 COMMENT '分钟单位, 默认30分钟, 下次更新的时间间隔',
|
||||
`update_time` Timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`latest_log_uid` bigint COMMENT '最新更新的日志表的uid, 方便关联',
|
||||
@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `streamer` (
|
||||
`operator` int DEFAULT 0 COMMENT '操作标志位, 根据不同解析方法有不同标志',
|
||||
|
||||
PRIMARY KEY (`uid`),
|
||||
UNIQUE KEY `platform_anchor_id_idx` (`platform`, `user_id`),
|
||||
UNIQUE KEY `platform_user_id_idx` (`platform`, `user_id`),
|
||||
KEY `platform_idx` (`platform`),
|
||||
KEY `user_id_idx` (`user_id`),
|
||||
KEY `user_name_idx` (`user_name`),
|
||||
|
||||
@@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `source_openrec` (
|
||||
`url` text NOT NULL COMMENT '获取源数据地址',
|
||||
`source` longtext DEFAULT NULL COMMENT '源数据',
|
||||
`ext` json DEFAULT NULL COMMENT '扩展字段',
|
||||
`pass_gob` blob DEFAULT NULL COMMENT '需要给下个任务传递gob 序列花数据, 非必要不用',
|
||||
`serialize` blob DEFAULT NULL COMMENT '需要给下个任务传递 序列花数据, 非必要不用',
|
||||
`update_time` Timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新数据',
|
||||
`error_msg` text DEFAULT NULL COMMENT '错误信息',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user