mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-10-25 16:30:38 +08:00
feat: frps can have multi endpoint
This commit is contained in:
@@ -15,13 +15,14 @@ type Server struct {
|
||||
}
|
||||
|
||||
type ServerEntity struct {
|
||||
ServerID string `json:"client_id" gorm:"uniqueIndex;not null;primaryKey"`
|
||||
TenantID int `json:"tenant_id" gorm:"not null"`
|
||||
UserID int `json:"user_id" gorm:"not null"`
|
||||
ServerIP string `json:"server_ip"`
|
||||
ConfigContent []byte `json:"config_content"`
|
||||
ConnectSecret string `json:"connect_secret" gorm:"not null"`
|
||||
Comment string `json:"comment"`
|
||||
ServerID string `json:"client_id" gorm:"uniqueIndex;not null;primaryKey"`
|
||||
TenantID int `json:"tenant_id" gorm:"not null"`
|
||||
UserID int `json:"user_id" gorm:"not null"`
|
||||
ServerIP string `json:"server_ip"`
|
||||
ConfigContent []byte `json:"config_content"`
|
||||
ConnectSecret string `json:"connect_secret" gorm:"not null"`
|
||||
Comment string `json:"comment"`
|
||||
FRPsUrls GormArray[string] `json:"frps_urls"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
|
||||
Reference in New Issue
Block a user