add docker specific columns to server table

This commit is contained in:
2026-03-18 19:15:19 +01:00
parent 747adc77a5
commit 4aa67db3fd
9 changed files with 163 additions and 10 deletions

2
local/model/server.go Normal file → Executable file
View File

@@ -42,6 +42,8 @@ type Server struct {
Port int `gorm:"not null" json:"-"`
Path string `gorm:"not null" json:"path"`
ServiceName string `gorm:"not null" json:"serviceName"`
Platform string `gorm:"not null;default:'windows'" json:"platform"`
ContainerID string `gorm:"default:''" json:"-"`
State *ServerState `gorm:"-" json:"state"`
DateCreated time.Time `json:"dateCreated"`
FromSteamCMD bool `gorm:"not null; default:true" json:"-"`