Files
SingBox-Gopanel/internal/model/stat_server.go
CN-JS-HuiBai 981ee4f406
All checks were successful
build / build (api, amd64, linux) (push) Successful in -47s
build / build (api, arm64, linux) (push) Successful in -47s
build / build (api.exe, amd64, windows) (push) Successful in -48s
基本功能复刻完成
2026-04-17 12:24:00 +08:00

16 lines
512 B
Go

package model
type StatServer struct {
ID int `gorm:"primaryKey;autoIncrement" json:"id"`
ServerID int `gorm:"not null;index" json:"server_id"`
U int64 `gorm:"not null;default:0" json:"u"`
D int64 `gorm:"not null;default:0" json:"d"`
RecordAt int64 `gorm:"not null;index" json:"record_at"`
CreatedAt int64 `gorm:"autoCreateTime" json:"created_at"`
UpdatedAt int64 `gorm:"autoUpdateTime" json:"updated_at"`
}
func (StatServer) TableName() string {
return "v2_stat_server"
}