ck-default.md 3.1 KB

ClickHouse.default(中间层数据)

order 书城订单表(通过 clickhouse的 mysql引擎实时同步自 mysql.qucheng_text.ods_order)

字段名 类型 注释
date Date 下单日期(yyyy-MM-dd)
stage String 期数(貌似不会用于计算)
platform String 书城
channel String 公众号名称
channel_id String 渠道 id(貌似没啥用)
user_id String 公众号 open_id
order_time DateTime 下单时间
reg_time DateTime 用户在书城的注册时间
convert_again_time DateTime 染色时间(快应用会用到)
amount Float32 下单金额
from_novel String 来源小说名称
order_id String 书城订单 id
status Int32 订单状态(1:未完成、2:已完成)
platform_user_id String 书城用户 id
wechat_app_id String 公众号 app_id
book_tags String 书标签(貌似没用)
order_type Int32 充值类型(1:书币、2:vip)

dw_daily_bytedance_cost 抖音账号消耗数据

聚合自 mysql.qucheng_text.daily_tt、 mysql.qucheng_text.channel_by_account_daily、mysql.qucheng_text.channel_info_daily库,将消耗数据归属到投手、期数、书等

字段名 类型 注释
dt Date 日期(yyyy-MM-dd)
channel String 公众号名字
pitcher String 投手
stage String 期数
platform String 书城
book String 书名
view_count Int32 曝光量
click_count Int32 点击量
follow_user Int32 关注量
cost Float32 消耗(/元)
web_view_count Int32 网页流量量
platform_view_count Int32 书城曝光量
web_order_count Int32 网页下单量
type String 账号类型(固定值:BYTEDANCE)
require_roi Int32
require_mult Int32

dw_daily_channel_cost 公众号消耗数据(结构同上)

聚合自 mysql.qucheng_text(daily_vx、daily_qq、channel_by_account_daily、channel_info_daily)库,将消耗数据归属到投手、期数、书等

字段名 类型 注释
dt Date 日期(yyyy-MM-dd)
channel String 公众号名字
pitcher String 投手
stage String 期数
platform String 书城
book String 书名
view_count Int32 曝光量
click_count Int32 点击量
follow_user Int32 关注量
cost Float32 消耗(/元)
web_view_count Int32 网页流量量
platform_view_count Int32 书城曝光量
web_order_count Int32 网页下单量
type String 账号类型(固定值:MP
require_roi Int32
require_mult Int32

dw_daily_platform_cost 公司消耗数据表

看情况只是将 dw_daily_bytedance_cost、dw_daily_channel_cost进行 UNION ALL

字段名 类型 注释
dt Date 日期(yyyy-MM-dd)
channel String 公众号名字
pitcher String 投手
stage String 期数
platform String 书城
book String 书名
view_count Int32 曝光量
click_count Int32 点击量
follow_user Int32 关注量
cost Float32 消耗(/元)
web_view_count Int32 网页流量量
platform_view_count Int32 书城曝光量
web_order_count Int32 网页下单量
type String 账号类型(固定值:MP
require_roi Int32
require_mult Int32