diff --git a/database/model/model.go b/database/model/model.go index 91f8c1df..eb8c0921 100644 --- a/database/model/model.go +++ b/database/model/model.go @@ -121,11 +121,11 @@ type Client struct { } type Server struct { - Id int `json:"id" gorm:"primaryKey;autoIncrement" form:"id"` - Name string `json:"name" gorm:"unique;not null" form:"name"` - Address string `json:"address" gorm:"not null" form:"address"` - Port int `json:"port" gorm:"not null" form:"port"` - SecretWebPath string `json:"secretWebPath" gorm:"not null" form:"secretWebPath"` - APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"` - Enable bool `json:"enable" gorm:"default:true" form:"enable"` + Id int `json:"id" gorm:"primaryKey;autoIncrement" form:"id"` + Name string `json:"name" gorm:"unique;not null" form:"name"` + Address string `json:"address" gorm:"not null" form:"address"` + Port int `json:"port" gorm:"not null" form:"port"` + SecretWebPath string `json:"secretWebPath" form:"secretWebPath"` + APIKey string `json:"apiKey" gorm:"not null" form:"apiKey"` + Enable bool `json:"enable" gorm:"default:true" form:"enable"` }