2022-10-28 09:04:57 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2022-12-13 09:20:13 +00:00
|
|
|
type Website struct {
|
2022-10-28 09:04:57 +00:00
|
|
|
BaseModel
|
2023-04-17 08:54:34 +00:00
|
|
|
Protocol string `gorm:"type:varchar;not null" json:"protocol"`
|
|
|
|
PrimaryDomain string `gorm:"type:varchar;not null" json:"primaryDomain"`
|
|
|
|
Type string `gorm:"type:varchar;not null" json:"type"`
|
|
|
|
Alias string `gorm:"type:varchar;not null" json:"alias"`
|
|
|
|
Remark string `gorm:"type:longtext;" json:"remark"`
|
|
|
|
Status string `gorm:"type:varchar;not null" json:"status"`
|
|
|
|
HttpConfig string `gorm:"type:varchar;not null" json:"httpConfig"`
|
|
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
|
|
|
|
|
|
Proxy string `gorm:"type:varchar;" json:"proxy"`
|
|
|
|
ProxyType string `gorm:"type:varchar;" json:"proxyType"`
|
|
|
|
SiteDir string `gorm:"type:varchar;" json:"siteDir"`
|
|
|
|
ErrorLog bool `json:"errorLog"`
|
|
|
|
AccessLog bool `json:"accessLog"`
|
|
|
|
DefaultServer bool `json:"defaultServer"`
|
2023-05-30 06:22:57 +00:00
|
|
|
IPV6 bool `json:"IPV6"`
|
2023-04-17 08:54:34 +00:00
|
|
|
Rewrite string `gorm:"type:varchar" json:"rewrite"`
|
|
|
|
|
|
|
|
WebsiteGroupID uint `gorm:"type:integer" json:"webSiteGroupId"`
|
|
|
|
WebsiteSSLID uint `gorm:"type:integer" json:"webSiteSSLId"`
|
|
|
|
RuntimeID uint `gorm:"type:integer" json:"runtimeID"`
|
|
|
|
AppInstallID uint `gorm:"type:integer" json:"appInstallId"`
|
2024-05-21 08:42:46 +00:00
|
|
|
FtpID uint `gorm:"type:integer" json:"ftpId"`
|
2023-04-17 08:54:34 +00:00
|
|
|
|
2023-04-18 10:46:58 +00:00
|
|
|
User string `gorm:"type:varchar;" json:"user"`
|
|
|
|
Group string `gorm:"type:varchar;" json:"group"`
|
|
|
|
|
2023-04-17 08:54:34 +00:00
|
|
|
Domains []WebsiteDomain `json:"domains" gorm:"-:migration"`
|
|
|
|
WebsiteSSL WebsiteSSL `json:"webSiteSSL" gorm:"-:migration"`
|
2022-11-11 09:41:39 +00:00
|
|
|
}
|
|
|
|
|
2022-12-13 09:20:13 +00:00
|
|
|
func (w Website) TableName() string {
|
2022-11-11 09:41:39 +00:00
|
|
|
return "websites"
|
2022-10-28 09:04:57 +00:00
|
|
|
}
|