✨ 新增几大中心功能
This commit is contained in:
16
server/model/app/app_user_activity.go
Normal file
16
server/model/app/app_user_activity.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package app
|
||||
|
||||
import "time"
|
||||
|
||||
// AppUserActivity 玩家登录与活跃信息
|
||||
type AppUserActivity struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
AppUserID uint `json:"appUserId" gorm:"uniqueIndex;not null"`
|
||||
LastLoginAt *time.Time `json:"lastLoginAt" gorm:"index"`
|
||||
LastActiveAt *time.Time `json:"lastActiveAt" gorm:"index"`
|
||||
LastActiveIP string `json:"lastActiveIp" gorm:"size:64"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
func (AppUserActivity) TableName() string { return "app_user_activity" }
|
||||
Reference in New Issue
Block a user