面包店
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.

user_level_change_log.go 1.2 KiB

9 月之前
123456789101112131415161718
  1. package model
  2. import (
  3. "time"
  4. )
  5. type UserLevelChangeLog struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Uid int `json:"uid" xorm:"default 0 comment('用户id') INT(11)"`
  8. BeforeLv int `json:"before_lv" xorm:"default 0 comment('更改前的等级') INT(11)"`
  9. AfterLv int `json:"after_lv" xorm:"default 0 comment('更改后的等级') INT(11)"`
  10. Time int `json:"time" xorm:"INT(11)"`
  11. BeforeLevelExpireAt time.Time `json:"before_level_expire_at" xorm:"default 'CURRENT_TIMESTAMP' comment('更新前过期时间') TIMESTAMP"`
  12. AfterLevelExpireAt time.Time `json:"after_level_expire_at" xorm:"default 'CURRENT_TIMESTAMP' comment('更新后过期时间') TIMESTAMP"`
  13. Type string `json:"type" xorm:"default '' comment('类型') VARCHAR(255)"`
  14. BeforeLevelArriveAt time.Time `json:"before_level_arrive_at" xorm:"default 'CURRENT_TIMESTAMP' comment('更新前到达该等级的时间') TIMESTAMP"`
  15. AfterLevelArriveAt time.Time `json:"after_level_arrive_at" xorm:"default 'CURRENT_TIMESTAMP' comment('更新后到达该等级的时间') TIMESTAMP"`
  16. }