附近小店
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.go 2.2 KiB

3 months ago
123456789101112131415161718192021222324252627
  1. package model
  2. import (
  3. "time"
  4. )
  5. type CommunityTeamCoupon struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Name string `json:"name" xorm:"comment('方案名称') VARCHAR(255)"`
  8. Comment string `json:"comment" xorm:"comment('备注') VARCHAR(2048)"`
  9. PublishTime time.Time `json:"publish_time" xorm:"comment('立即发布时间') DATETIME"`
  10. Kind int `json:"kind" xorm:"not null comment('优惠券类型,1:立减,2:满减,3折扣') TINYINT(1)"`
  11. IsReach int `json:"is_reach" xorm:"comment('是否有门槛,1:有,2:否;优惠券类型为3折扣时') TINYINT(1)"`
  12. Cal string `json:"cal" xorm:"comment('满减及折扣有门槛时算法,{"reach": "20.12", "reduce": "2.2"}, reach:满X元,减/折reduce') VARCHAR(255)"`
  13. State int `json:"state" xorm:"not null default 1 comment('状态,是否使用(1:使用;2:不使用)') TINYINT(1)"`
  14. ActivityTimeStart time.Time `json:"activity_time_start" xorm:"not null comment('活动起止时间,开始时间') DATETIME"`
  15. ActivityTimeEnd time.Time `json:"activity_time_end" xorm:"not null comment('活动起止时间,结束时间') DATETIME"`
  16. ActivityStatement string `json:"activity_statement" xorm:"not null default '0' comment('活动规则说明') VARCHAR(5000)"`
  17. Sort int `json:"sort" xorm:"comment('排序') INT(11)"`
  18. Ext string `json:"ext" xorm:"comment('拓展字段') TEXT"`
  19. IsPublishNow int `json:"is_publish_now" xorm:"not null default 0 comment('是否立即发布,0:否,1:是') TINYINT(1)"`
  20. CreatedTime time.Time `json:"created_time" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') DATETIME"`
  21. UpdatedTime time.Time `json:"updated_time" xorm:"not null default CURRENT_TIMESTAMP comment('更新时间') DATETIME"`
  22. DeletedTime time.Time `json:"deleted_time" xorm:"comment('删除时间') DATETIME"`
  23. StoreId int `json:"store_id" xorm:"default 0 INT(11)"`
  24. StoreType int `json:"store_type" xorm:"default 0 comment('0官方自营店 1加盟店 2连锁店') INT(11)"`
  25. }