1Panel/backend/app/model/host.go

16 lines
660 B
Go
Raw Normal View History

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