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