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

14 lines
314 B
Go
Raw Normal View History

2024-07-23 14:48:37 +08:00
package model
type WebsiteDomain struct {
BaseModel
2024-08-14 10:43:32 +08:00
WebsiteID uint `gorm:"column:website_id;not null;" json:"websiteId"`
Domain string `gorm:"not null" json:"domain"`
SSL bool `json:"ssl"`
2024-08-14 10:43:32 +08:00
Port int `json:"port"`
2024-07-23 14:48:37 +08:00
}
func (w WebsiteDomain) TableName() string {
return "website_domains"
}