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

27 lines
1.4 KiB
SQL
Raw 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.

CREATE TABLE `live_video_transcoding` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`request_id` varchar(255) DEFAULT NULL COMMENT '请求id',
`task_id` varchar(255) DEFAULT NULL COMMENT '任务id',
`task_status` char(1) DEFAULT NULL COMMENT '任务状态(0:增在处理1处理完成)',
`del_flag` char(1) DEFAULT NULL COMMENT '删除标志',
`operate_id` varchar(255) DEFAULT NULL COMMENT '操作人',
`video_url` varchar(255) DEFAULT NULL COMMENT '转码前的url',
`format_video_url` varchar(255) DEFAULT NULL COMMENT '转码后的url',
`create_date` datetime DEFAULT NULL COMMENT '入库时间',
`update_date` datetime DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `live_video_transcoding_ext` (
`id` int(11) NOT NULL,
`request_params` text DEFAULT NULL COMMENT '后台请求的参数',
`request_ali_params` text DEFAULT NULL COMMENT '请求阿里的参数',
`response_ali_params` text DEFAULT NULL COMMENT '阿里响应的数据',
`operater` char(1) DEFAULT NULL COMMENT '操作方式0添加1删除2查询'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `live_video_transcoding` ADD COLUMN `upload_state` CHAR(1) COMMENT '上传状态,0代表失败,1代表成功';
ALTER TABLE `live_video_transcoding_ext` ADD COLUMN `create_date` DATETIME COMMENT '操作时间';