附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

community_team_coupon_user.go 1.6 KiB

3 months ago
3 months ago
3 months ago
1234567891011121314151617181920212223
  1. package model
  2. import (
  3. "time"
  4. )
  5. type CommunityTeamCouponUser struct {
  6. Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
  7. Uid int `json:"uid" xorm:"comment('用户id') index INT(11)"`
  8. MerchantSchemeId int `json:"merchant_scheme_id" xorm:"comment('优惠券方案的id') INT(11)"`
  9. IsUse int `json:"is_use" xorm:"comment('是否已使用:0否1是2失效') TINYINT(1)"`
  10. Kind int `json:"kind" xorm:"comment('优惠券类型:1立减2满减3折扣') TINYINT(1)"`
  11. Cal string `json:"cal" xorm:"not null default '0.00' comment('折扣算法json:形式:{"reach":"10.00", "reduce":"1.00"},无门槛reach为0') VARCHAR(255)"`
  12. ValidTimeStart time.Time `json:"valid_time_start" xorm:"comment('有效日期开始') DATETIME"`
  13. ValidTimeEnd time.Time `json:"valid_time_end" xorm:"comment('有效日期结束') DATETIME"`
  14. CreateTime time.Time `json:"create_time" xorm:"default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
  15. UpdateTime time.Time `json:"update_time" xorm:"default CURRENT_TIMESTAMP comment('更新时间') DATETIME"`
  16. StoreId int `json:"store_id" xorm:"default 0 comment('0是官方') INT(11)"`
  17. StoreType int `json:"store_type" xorm:"default 0 comment('0官方自营店 1加盟店 2连锁店') INT(11)"`
  18. Name string `json:"name" xorm:"comment('方案名称') VARCHAR(255)"`
  19. Info string `json:"info" xorm:"not null default '0' comment('活动规则说明') VARCHAR(5000)"`
  20. Img string `json:"img" xorm:"VARCHAR(255)"`
  21. }