1Panel/agent/app/model/database.go

23 lines
719 B
Go
Raw Normal View History

2024-07-23 14:48:37 +08:00
package model
type Database struct {
BaseModel
2024-08-14 10:43:32 +08:00
AppInstallID uint `json:"appInstallID"`
Name string `json:"name" gorm:"not null;unique"`
Type string `json:"type" gorm:"not null"`
Version string `json:"version" gorm:"not null"`
From string `json:"from" gorm:"not null"`
Address string `json:"address" gorm:"not null"`
Port uint `json:"port" gorm:"not null"`
Username string `json:"username"`
Password string `json:"password"`
2024-07-23 14:48:37 +08:00
SSL bool `json:"ssl"`
2024-08-14 10:43:32 +08:00
RootCert string `json:"rootCert"`
ClientKey string `json:"clientKey"`
ClientCert string `json:"clientCert"`
2024-07-23 14:48:37 +08:00
SkipVerify bool `json:"skipVerify"`
2024-08-14 10:43:32 +08:00
Description string `json:"description"`
2024-07-23 14:48:37 +08:00
}