2022-08-18 10:54:21 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Host struct {
|
2022-09-01 08:48:43 +00:00
|
|
|
BaseModel
|
2023-04-10 13:50:24 +00:00
|
|
|
|
|
|
|
GroupID uint `gorm:"type:decimal;not null" json:"group_id"`
|
|
|
|
Name string `gorm:"type:varchar(64);not null" json:"name"`
|
|
|
|
Addr string `gorm:"type:varchar(16);not null" json:"addr"`
|
|
|
|
Port int `gorm:"type:decimal;not null" json:"port"`
|
|
|
|
User string `gorm:"type:varchar(64);not null" json:"user"`
|
|
|
|
AuthMode string `gorm:"type:varchar(16);not null" json:"authMode"`
|
|
|
|
Password string `gorm:"type:varchar(64)" json:"password"`
|
|
|
|
PrivateKey string `gorm:"type:varchar(256)" json:"privateKey"`
|
|
|
|
PassPhrase string `gorm:"type:varchar(256)" json:"passPhrase"`
|
|
|
|
RememberPassword bool `json:"rememberPassword"`
|
2022-08-18 10:54:21 +00:00
|
|
|
|
|
|
|
Description string `gorm:"type:varchar(256)" json:"description"`
|
|
|
|
}
|