polarDB-dm.md 8.9 KB

dm业务数据

dw_daily_channel_cost 公众号消耗数据表

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
channel varchar 公众号名称
pitcher varchar 投手
stage varchar 期数
platform varchar 书城
book varchar 主投书
view_count int 曝光量
click_count int 点击量
follow_user int 公众号关注量
cost float 消耗
web_view_count int 网页曝光量
platform_view_count int 平台曝光量
web_order_count int 网页下单量
type varchar 类型(MP、GDT、BYTEDANCE)
require_roi float 要求首日回报率(100/公司建立的书籍卡点)
require_mult float 要求首日回报率倍数, 与require_roi为一组值(1/要求首日回报率)

dw_channel 公众号信息表

以公众号为聚合维度,聚合了公众号每天的消耗及对应的订单数据 从 clickhouse.default(dw_daily_platform_cost、order)中聚合

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
channel varchar 公众号
pitcher varchar 投手
stage varchar 期号
platform varchar 书城
book varchar 在投书籍
type varchar 账号类型(MP、GDT、BYTEDANCE)
order_count int 当天下单量
order_user int 当天订单用户数量
order_amount float 当天订单总金额(/元)
first_order_count int 首单数量(首日新用户下单数)
first_order_user int 首单用户数量(首日新用户下单人数)
first_order_amount float 首单金额(首日新用户下单金额)
view_count int 曝光量
click_count int 点击量
follow_user int 公众号关注量
cost float 消耗
reg_order_count int 累计新用户订单数量
reg_order_user int 累计新用户数量
reg_order_amount float 累计新用户花销
web_view_count int 网页曝光量
platform_view_count int 书城落地页曝光量
web_order_count int 网页下单量
reg_order_user_again int 复冲一次人数(下单次数=2的用户数量)
reg_order_user_again3 int 复冲两次人数(下单次数=3的用户数量)
reg_order_user_again4 int 复冲三次人数(下单次数=4的用户数量)
reg_order_user_again5 int 复冲四次人数(下单次数=5的用户数量)
reg_order_user_again6 int 复冲五次人数(下单次数=6的用户数量)

dw_channel_user_daily 公众号注册人数

公众号维度统计的用户注册信息,聚合自clickhouse.default(order)

统计前30天的注册人数

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
channel varchar 公众号
dc1 varchar 从dt时间开始, 前1天的新增注册人数
dc2 varchar 从dt时间开始, 前2天的新增注册人数
dc3 varchar 从dt时间开始, 前3天的新增注册人数
dc4 varchar 从dt时间开始, 前4天的新增注册人数
dc5 varchar 从dt时间开始, 前5天的新增注册人数
... varchar
dc30 varchar 从dt时间开始, 前30天的新增注册人数

dm_pitcher_daily_overview 投手累计数据

以投手维度聚合的消耗、订单数据,聚合自clickhouse.default(order、dw_daily_channel_cost)

字段名 类型 注释
pitcher varchar 投手
channel_count int 公众号账号数
on_channel_count int 在投账号数
off_channel_count int 停投账号数
this_month_cost int 本月消耗
this_month_amount int 本月充值
this_month_roi float 本月回报率(本月充值/本月消耗)
last_month_cost int 上月消耗
last_month_amount int 上月充值
last_month_roi float 上月回报率(上月充值/上月消耗)
last_month_far_amount int 上月至今充值
follow_user int 公众号关注量
last_month_far_roi float 上月至今的回报率

dw_channel_amount_daily 公众号订单金额(天总计)

以公众号维度聚合的订单统计信息,?????

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
channel varchar 公众号
da1 float 公众号当天的充值金额
da2 float 公众号第2天的充值金额
da3 float 公众号第3天的充值金额
... float
da58 float 公众号第58天的充值金额
da59 float 公众号第59天的充值金额
da60 float 公众号第60天的充值金额
dm3 float 公众号第3个月的充值金额
dm4 float 公众号第4个月的充值金额
dm5 float 公众号第5个月的充值金额

dw_channel_amount_daily_reverse 公众号订单信息

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
channel varchar 公众号
ba1 float 公众号当天的充值金额
ba2 float 公众号前1天的充值金额
ba3 float 公众号前2天的充值金额
ba4 float 公众号前3天的充值金额
ba5 float 公众号前4天的充值金额
ba6 float 公众号前5天的充值金额
ba7 float 公众号前6天的充值金额

book_trend 小说付费趋势表

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
book varchar 书籍
type varchar 类型(MP,GDT...)
cost float 消耗
order_count int 下单次数
order_user int 下单用户数
order_amount float 订单金额
first_order_count int 首单数量(首日新用户下单数)
first_order_user int 首单用户数量(首日新用户下单人数)
first_order_amount float 首单金额(首日新用户下单金额)
reg_order_count int 累计新用户订单数量
reg_order_user int 累计新用户数量
reg_order_amount float 累计新用户花销
view_count int 曝光量
click_count int 点击量
follow_user int 公众号关注量
a1 float 公众号当天的充值金额(聚合的dw_channel_amount_daily表中的da1)
a2 float 公众号第2天的充值金额(聚合的dw_channel_amount_daily表中的da2)
a3 float 公众号第3天的充值金额(聚合的dw_channel_amount_daily表中的da3)
... float
a58 float 公众号第58天的充值金额(聚合的dw_channel_amount_daily表中的da58)
a59 float 公众号第59天的充值金额(聚合的dw_channel_amount_daily表中的da59)
a60 float 公众号第60天的充值金额(聚合的dw_channel_amount_daily表中的da60)
m3 float 公众号第3个月的充值金额(聚合的dw_channel_amount_daily表中的dm3)
m4 float 公众号第4个月的充值金额(聚合的dw_channel_amount_daily表中的dm4)
m5 float 公众号第5个月的充值金额(聚合的dw_channel_amount_daily表中的dm5)
ba1 float 公众号当天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba1)
ba2 float 公众号前1天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba2)
ba3 float 公众号前2天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba3)
ba4 float 公众号前3天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba4)
ba5 float 公众号前4天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba5)
ba6 float 公众号前5天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba6)
ba7 float 公众号前6天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba7)

dw_pitcher_trend 投手趋势数据表

字段名 类型 注释
dt varchar 日期(yyyy-MM-dd)
pitcher varchar 投手
cost float 消耗
amount float 用户充值金额
reg_amount float 累计新用户充值金额
first_order_amount float 首单金额(首日新用户下单金额)
inva_cost float 预期盈亏
first_order_user int 首单用户数量(首日新用户下单人数)
reg_order_user int 累计新用户数量
view_count int 曝光量
click_count int 点击量
follow_user int 公众号关注量
d1 float 公众号当天的充值金额(聚合的dw_channel_amount_daily表中的da1)
d2 float 公众号第2天的充值金额(聚合的dw_channel_amount_daily表中的da2)
d3 float 公众号第3天的充值金额(聚合的dw_channel_amount_daily表中的da3)
... float
d28 float 公众号第28天的充值金额(聚合的dw_channel_amount_daily表中的da28)
d29 float 公众号第29天的充值金额(聚合的dw_channel_amount_daily表中的da29)
d30 float 公众号第30天的充值金额(聚合的dw_channel_amount_daily表中的da30)
ba1 float 公众号当天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba1)
ba2 float 公众号前1天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba2)
ba3 float 公众号前2天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba3)
ba4 float 公众号前3天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba4)
ba5 float 公众号前4天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba5)
ba6 float 公众号前5天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba6)
ba7 float 公众号前6天的充值金额(聚合的dw_channel_amount_daily_reverse表中的ba7)
annual_expect_profit float 预期年收益