1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 00:39:17 +08:00
1Panel/backend/app/model/website_domain.go

13 lines
321 B
Go
Raw Normal View History

2022-10-28 17:04:57 +08:00
package model
type WebSiteDomain struct {
BaseModel
WebSiteID uint `gorm:"type:varchar(64);not null" json:"web_site_id"`
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
func (w WebSiteDomain) TableName() string {
return "website_domains"
}