1Panel/agent/app/model/website_domain.go
2024-08-09 17:05:13 +08:00

14 lines
369 B
Go

package model
type WebsiteDomain struct {
BaseModel
WebsiteID uint `gorm:"column:website_id;type:varchar(64);not null;" json:"websiteId"`
Domain string `gorm:"type:varchar(256);not null" json:"domain"`
SSL bool `json:"ssl"`
Port int `gorm:"type:integer" json:"port"`
}
func (w WebsiteDomain) TableName() string {
return "website_domains"
}