30 lines
800 B
Go
30 lines
800 B
Go
package modelmysql
|
|
|
|
import "time"
|
|
|
|
const (
|
|
OutTypRegister = 1 // 注册
|
|
OutTypeLogin = 2 // 登录
|
|
OutTypeGaming = 3 // 游戏中
|
|
OutTypeGameOver = 4 // 游戏结束
|
|
)
|
|
|
|
type UserLogin struct {
|
|
ID uint `gorm:"primaryKey"`
|
|
Snid int `gorm:"uniqueIndex"`
|
|
//OnlineTs int `gorm:"index"`
|
|
OnlineTime time.Time `gorm:"index"`
|
|
//OfflineTs int `gorm:"index"`
|
|
OfflineTime time.Time `gorm:"index"`
|
|
OutType int `gorm:"index"` // 跳出类型
|
|
GameID int `gorm:"index"` // 游戏id
|
|
Age int
|
|
Sex int
|
|
DeviceName string `gorm:"index"`
|
|
AppVersion string `gorm:"index"`
|
|
BuildVersion string `gorm:"index"`
|
|
AppChannel string `gorm:"index"`
|
|
Tel string `gorm:"index"`
|
|
ChannelId string `gorm:"index"` // 推广渠道
|
|
}
|