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

13 lines
338 B
Go
Raw Normal View History

2022-10-28 17:04:57 +08:00
package model
2022-12-13 17:20:13 +08:00
type WebsiteDomain struct {
2022-10-28 17:04:57 +08:00
BaseModel
2022-12-13 17:20:13 +08:00
WebsiteID uint `gorm:"column:website_id;type:varchar(64);not null;" json:"websiteId"`
2022-10-28 17:04:57 +08:00
Domain string `gorm:"type:varchar(256);not null" json:"domain"`
Port int `gorm:"type:integer" json:"port"`
}
2022-11-11 17:41:39 +08:00
2022-12-13 17:20:13 +08:00
func (w WebsiteDomain) TableName() string {
2022-11-11 17:41:39 +08:00
return "website_domains"
}