game_retained_data.go 574 B

12345678910111213141516171819
  1. package task
  2. import "time"
  3. type GameRetainedData struct {
  4. Id uint `json:"id" gorm:"primarykey"`
  5. CreatedAt time.Time
  6. UpdatedAt time.Time
  7. NewDate string `json:"new_date" gorm:"comment:留存日期"`
  8. Duration int `json:"duration" gorm:"comment:几留"`
  9. Total int `json:"total" gorm:"comment:账号个数"`
  10. GameId int `json:"game_id"` //游戏id
  11. RetainedDate time.Time `json:"retained_date" gorm:"type:date;comment:账号个数"`
  12. }
  13. func (GameRetainedData) TableName() string {
  14. return "game_retained_data"
  15. }