Skip to content

omeanalysts_ome_orderDiscounts

订单优惠明细表

所属应用: omeanalysts

表结构

ColumnNameCommentTypeNot nullDefaultAutoincrement
discount_iddiscount_idint(10) unsignedYY
order_idorder_idint(10) unsignedYN
order_bn订单号varchar(32)YN
sku商品货号varchar(200)NN
shop_id来源店铺varchar(32)NN
shop_type平台类型varchar(50)NN
original_money原价金额decimal(20,3)Y0N
sale_money销售金额decimal(20,3)Y0N
pay_money支付金额decimal(20,3)Y0N
discount_type优惠类型 pay:支付优惠;promotion:促销优惠;enum('pay','promotion')YpromotionN
discount_name优惠名称longtextNN
discount_money优惠金额decimal(20,3)Y0N
order_createtime下单时间int(10) unsignedNN
paytime付款时间int(10) unsignedNN
pay_status付款状态 0:未支付;1:已支付;2:处理中;3:部分付款;4:部分退款;5:全额退款;6:退款申请中;7:退款中;8:支付中;enum('0','1','2','3','4','5','6','7','8')Y0N
createtime记录创建时间int(10) unsignedNN
last_modified记录最后更新时间int(10) unsignedN0N
org_id运营组织mediumint(8) unsignedNN

索引

Key nameColumn namesUniqueComment
primarydiscount_idY
ind_paytime_order_bn_shoppaytime, order_bn, shop_idN
ind_order_bnorder_bnN
idx_c_order_idorder_idN
idx_c_shop_idshop_idN
idx_c_org_idorg_idN