全景目录 › 数据库 › yjgw › user_coupons

user_coupons用户· 优惠券

yjgw 库的实体表 · 17 个字段 · 主键 id · 数据行约 6
17字段数
6数据行数
4索引
yjgw所属库

字段结构

字段类型键可空默认注释
idchar(36)PRINO
user_idchar(36)MULYES
template_idchar(36)YEScoupon_templates.id
coupon_codevarchar(64)UNIYES券码
coupon_namevarchar(255)YES
coupon_typevarchar(32)YEScash满减/discount折扣/gift赠品
face_valuedecimal(12,2)YES
min_amountdecimal(12,2)YES使用门槛
statustinyint(4)YES00未使用 1已使用 2已过期 3已作废
granted_atdatetime(3)YES
expire_atdatetime(3)YES
used_atdatetime(3)YES
used_order_idchar(36)MULYES
used_store_idchar(36)YES
is_deletedtinyint(1)YES0
created_atdatetime(3)YES
updated_atdatetime(3)YES

索引

索引名字段类型
idx_uc_orderused_order_id普通
idx_uc_useruser_id,status普通
PRIMARYid唯一
uk_coupon_codecoupon_code普通

样本数据 · 已脱敏 · 前 3 行

iduser_idtemplate_idcoupon_codecoupon_namecoupon_typeface_valuemin_amountstatusgranted_atexpire_atused_at
1c8952b8-fd09-45a1-a412-a563e4ed05738ff30c1d-d0c1-409b-96ab-f5d0f4b16f98NULLNULLNULLNULLNULL50.000NULLNULLNULL
3e388627-2a8c-58e7-8263-3a9b66085d768ff30c1d-d0c1-409b-96ab-f5d0f4b16f98NULLQUAN20261109003会员专享8折discount0.000.0012026-11-09 04:48:31.5530002026-12-09 04:48:31.5530002026-11-09 04:48:31.553000
4285b54c-a16b-587b-868e-1592189789da8ff30c1d-d0c1-409b-96ab-f5d0f4b16f98NULLQUAN20261109001满100减15cash15.00100.0002026-11-09 04:48:31.5530002026-12-09 04:48:31.553000NULL
用户协议隐私政策商家服务协议争议处理规则协议中心意见反馈
中浩贵华(海南)投资有限公司 · 琼ICP备2025057228号-3