plat_coupon_customer.md 1.97 KB

plat_coupon_customer

平台优惠券客户表

  • Engine: InnoDB
  • Collation: utf8mb3_general_ci

Columns

# Name Type Null Key Default Extra Comment
1 iIncreaseId int NO PRI auto_increment 主键(自增序列)
2 tCreateTime datetime NO 创建时间
3 tModifyTime datetime NO 修改时间
4 sShopUserId varchar(35) NO MUL 店铺用户编号
5 sCustomerUserId varchar(35) NO MUL 客户用户编号
6 sShopCouponId varchar(35) NO 商铺优惠券编号
7 sCustomerCouponId varchar(35) NO UNI 用户优惠券编号(P_CCP开头)
8 iCouponType tinyint NO 0 优惠券类型(0:店铺优惠券,1:商品优惠券)
9 iCreateType tinyint NO 创建类型(0:前台领取,1:注册,2:下单,3:充值)
10 sCouponName varchar(50) NO 商铺优惠券名称
11 tStartTime datetime NO MUL 生效时间
12 tEndTime datetime NO 失效时间
13 dMoney decimal(18,2) NO 优惠金额
14 dThresholdMoney decimal(18,2) NO 门槛
15 iStatus tinyint NO 0 状态(0:未使用,1:已使用,2:已过期)
16 iIsLock tinyint NO 0 是否上锁(0:上锁,1:不上锁)

Indexes

Name Unique Type Columns
PLAT_COUPON_CUSTOMER_IDX1 BTREE sCustomerUserId
PLAT_COUPON_CUSTOMER_IDX2 BTREE sShopUserId
PLAT_COUPON_CUSTOMER_IDX3 BTREE tStartTime, tEndTime
PLAT_COUPON_CUSTOMER_UNQ1 BTREE sCustomerCouponId
PRIMARY BTREE iIncreaseId

Narrative

No human-written narrative yet — when this table is exercised by a vertical slice, link from there back to this page.