智莺生活mysql模型库
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.

happy_orchard_reward.go 1.1 KiB

6 months ago
123456789101112131415
  1. package models
  2. type HappyOrchardReward struct {
  3. Id int `json:"id" xorm:"not null pk autoincr comment('自增id') INT(11)"`
  4. Kind int `json:"kind" xorm:"not null default 1 comment('奖品类型(1:赠送商品 2:虚拟商品)') TINYINT(1)"`
  5. Name string `json:"name" xorm:"not null default '' comment('名称') VARCHAR(255)"`
  6. Nums int `json:"nums" xorm:"not null default 0 comment('奖品总数') INT(11)"`
  7. ImgUrl string `json:"img_url" xorm:"not null default '' comment('图片地址') VARCHAR(255)"`
  8. Value int `json:"value" xorm:"not null default 0 comment('具体值(kind=2时代表虚拟币值)') INT(11)"`
  9. CoinId int `json:"coin_id" xorm:"not null default 0 comment('虚拟币id(kind=2时代表虚拟币id)') INT(11)"`
  10. Memo string `json:"memo" xorm:"not null default '' comment('备注') VARCHAR(255)"`
  11. Sort int `json:"sort" xorm:"not null default 0 INT(11)"`
  12. CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
  13. UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
  14. }