16 lines
512 B
Go
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"
|
|
}
|