1.extractor 表字段的实现.

2.存储通用包的实现.
This commit is contained in:
eson
2020-07-10 16:13:08 +08:00
parent 4af5430572
commit d5151f92bf
5 changed files with 503 additions and 37 deletions

View File

@@ -2,15 +2,17 @@ create database if not exists `intimate_extractor`;
use intimate_extractor;
CREATE TABLE IF NOT EXISTS `anchor_info` (
`uid` varchar(36) NOT NULL,
`uid` bigint AUTO_INCREMENT,
`platform` varchar(255) NOT NULL,
`anchor_id` varchar(255) NOT NULL,
`anchor_name` varchar(255) NOT NULL,
`live_url` text,
`channel` varchar(128) DEFAULT NULL,
`show_type` varchar(255) DEFAULT NULL,
`ext` json DEFAULT NULL,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`uid`),
UNIQUE KEY `platform_anchor_id_idx` (`platform`, `anchor_id`),
KEY `platform_idx` (`platform`),
KEY `anchor_id_idx` (`anchor_id`),
KEY `anchor_name_idx` (`anchor_name`),
@@ -19,13 +21,13 @@ CREATE TABLE IF NOT EXISTS `anchor_info` (
KEY `update_time_idx` (`update_time`)
);
CREATE TABLE IF NOT EXISTS `show_log` (
`uid` varchar(36) NOT NULL,
CREATE TABLE IF NOT EXISTS `collect_log` (
`uid` bigint,
`platform` varchar(255) NOT NULL,
`anchor_id` varchar(255) NOT NULL,
`is_showing` tinyint(1) DEFAULT NULL,
`is_error` tinyint(1) DEFAULT NULL,
`is_showing` tinyint(1) DEFAULT 0,
`is_error` tinyint(1) DEFAULT 0,
`followers` int(11) DEFAULT NULL,
`views` int(11) DEFAULT NULL,