Files
platformV2Web/updateSql/2023-06-08.sql
张成 8309808835 1
2025-11-21 16:53:49 +08:00

57 lines
3.3 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 `tok_live_good_dtl` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` varchar(150) NOT NULL DEFAULT '' COMMENT '商品id',
`product_title` varchar(250) NOT NULL DEFAULT '' COMMENT '商品标题',
`explain_time` varchar(150) NOT NULL DEFAULT '' COMMENT '商品讲解时间',
`explain_duration` varchar(150) NOT NULL DEFAULT '' COMMENT '讲解时长',
`live_id` int(11) NOT NULL DEFAULT '0' COMMENT '直播id',
`product_click_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '商品点击次数',
`product_pay_amt` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '商品成交金额',
`watch_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '直播间进入次数推荐feed',
`avg_online_ucnt` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '平均在线人数',
`cproduct_lick_radio` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '商品点击率',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='直播商品数据表';
CREATE TABLE `tok_live_screen` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`brand` varchar(150) NOT NULL DEFAULT '' COMMENT '品牌',
`live_app_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '直播appid',
`room_id` varchar(50) NOT NULL DEFAULT '0' COMMENT '直播间id',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='直播大屏表';
CREATE TABLE `tok_live_screen_dtl` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`cur_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录时间',
`good_name` varchar(150) NOT NULL DEFAULT '' COMMENT '商品名称',
`live_id` int(11) NOT NULL DEFAULT '0' COMMENT '直播id',
`gpm` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '千次观看成交金额',
`pay_ucnt` int(11) NOT NULL DEFAULT '0' COMMENT '成交人数',
`pay_combo_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '成交件数',
`watch_pay_ucnt_ratio` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '观看-成交率(人数)',
`product_click_pay_ucnt_ratio` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '商品点击-成交率(人数)',
`current_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '平均在线人数',
`watch_cnt_show_ratio` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '曝光-观看率(次数)',
`avg_watch_duration` int(11) NOT NULL DEFAULT '0' COMMENT '人均观看时长',
`interact_watch_ucnt_ratio` decimal(14,4) NOT NULL DEFAULT '0.0000' COMMENT '观看-互动率(人数)',
`follow_anchor_ucnt` int(11) NOT NULL DEFAULT '0' COMMENT '新增粉丝数',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`last_modify_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间' ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='直播数据表';
ALTER TABLE `tok_live_screen_dtl` ADD COLUMN `gmv` decimal(14,4) DEFAULT 0 COMMENT '直播间成交金额';