2022-08-18 10:54:21 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Host struct {
|
2022-09-01 08:48:43 +00:00
|
|
|
BaseModel
|
2022-08-31 15:16:10 +00:00
|
|
|
GroupBelong string `gorm:"type:varchar(64);not null" json:"groupBelong"`
|
2022-12-30 09:36:19 +00:00
|
|
|
Name string `gorm:"type:varchar(64);not null" json:"name"`
|
2022-12-19 13:32:27 +00:00
|
|
|
Addr string `gorm:"type:varchar(16);not null" json:"addr"`
|
2022-08-31 15:16:10 +00:00
|
|
|
Port int `gorm:"type:varchar(5);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"`
|
2022-08-18 10:54:21 +00:00
|
|
|
|
|
|
|
Description string `gorm:"type:varchar(256)" json:"description"`
|
|
|
|
}
|