1Panel/backend/app/model/website.go
2022-11-17 21:20:33 +08:00

24 lines
1.1 KiB
Go

package model
import "time"
type WebSite struct {
BaseModel
PrimaryDomain string `gorm:"type:varchar(128);not null" json:"primaryDomain"`
Type string `gorm:"type:varchar(64);not null" json:"type"`
Alias string `gorm:"type:varchar(128);not null" json:"alias"`
Remark string `gorm:"type:longtext;" json:"remark"`
Status string `gorm:"type:varchar(64);not null" json:"status"`
ExpireDate time.Time `json:"expireDate"`
AppInstallID uint `gorm:"type:integer" json:"appInstallId"`
WebSiteGroupID uint `gorm:"type:integer" json:"webSiteGroupId"`
WebSiteSSLID uint `gorm:"type:integer" json:"webSiteSSLId"`
WebsiteDnsAccountID uint `gorm:"type:integer" json:"websiteDnsAccountId"`
WebsiteAcmeAccountID uint `gorm:"type:integer" json:"websiteAcmeAccountId"`
Domains []WebSiteDomain `json:"domains"`
}
func (w WebSite) TableName() string {
return "websites"
}