From 0faf959c4973b7fd45e67bf0e30635d7ca68f7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 22 Oct 2025 14:03:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=BA=D0=BE=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/model/model.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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"` }