zbpt/db/20190220_tong.sql
小黄狗横扫士力架 bfc6a73c2f first commit
2022-12-28 09:45:16 +08:00

58 lines
2.6 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.

DROP TABLE IF EXISTS `live_scene_live_info_record`;
CREATE TABLE `live_scene_live_info_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`info_id` int(11) DEFAULT NULL COMMENT '流id',
`info_name` varchar(128) DEFAULT NULL COMMENT '冗余字段,流名',
`domain` varchar(64) DEFAULT NULL COMMENT '域名',
`app_name` varchar(64) DEFAULT NULL,
`stream_name` varchar(255) DEFAULT NULL,
`uri` varchar(128) DEFAULT NULL COMMENT '视频时长',
`duration` double DEFAULT NULL COMMENT '视频时长',
`start_time` int(11) DEFAULT NULL COMMENT '开始unix时间',
`stop_time` int(11) DEFAULT NULL COMMENT '结束unix时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='流录制记录';
DROP TABLE IF EXISTS `live_scene_record`;
CREATE TABLE `live_scene_record` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`scene_id` int(11) DEFAULT NULL COMMENT '现场id',
`record_name` varchar(128) DEFAULT NULL COMMENT '回顾名称',
`uri` varchar(128) DEFAULT NULL COMMENT '视频时长',
`duration` double DEFAULT NULL COMMENT '视频时长',
`start_time` int(11) DEFAULT NULL COMMENT '开始unix时间',
`stop_time` int(11) DEFAULT NULL COMMENT '结束unix时间',
`creator_id` int(11) DEFAULT NULL,
`create_date` datetime DEFAULT NULL,
`last_updator_id` int(11) DEFAULT NULL,
`last_update_date` datetime DEFAULT NULL,
`record_status` int(11) DEFAULT NULL COMMENT '0:未审核1审核显示',
`is_delete` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='现场回顾';
DROP TABLE IF EXISTS `live_stream_black`;
CREATE TABLE `live_stream_black` (
`domain` varchar(64) DEFAULT NULL COMMENT '域名',
`app_name` varchar(64) DEFAULT NULL,
`stream_name` varchar(64) DEFAULT NULL,
`time` int(11) DEFAULT NULL COMMENT 'unix 时间戳'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='黑名单流';
DROP TABLE IF EXISTS `live_stream_status`;
CREATE TABLE `live_stream_status` (
`time` int(11) DEFAULT NULL COMMENT 'unix 时间戳',
`action` varchar(15) DEFAULT NULL COMMENT 'publish 表示推流publish_done 表示断流',
`app` varchar(64) DEFAULT NULL COMMENT '默认为自定义的推流域名,如果未绑定推流域名即为播放域名',
`app_name` varchar(64) DEFAULT NULL COMMENT '应用名称',
`stream_name` varchar(64) DEFAULT NULL COMMENT '流名称',
`node` varchar(64) DEFAULT NULL COMMENT 'CDN 接受流的节点或者机器名',
`IP` varchar(20) DEFAULT NULL COMMENT '推流的客户端 IP',
`usrargs` text COMMENT '用户推流的参数'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='流状态变更';