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

29 lines
1.3 KiB
Go
Raw Normal View History

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
2022-11-21 03:27:56 +00:00
Protocol string `gorm:"type:varchar(64);not null" json:"protocol"`
2022-11-19 09:16:02 +00:00
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"`
2022-12-28 08:07:43 +00:00
HttpConfig string `gorm:"type:varchar(64);not null" json:"httpConfig"`
2022-11-19 09:16:02 +00:00
ExpireDate time.Time `json:"expireDate"`
AppInstallID uint `gorm:"type:integer" json:"appInstallId"`
2022-12-13 09:20:13 +00:00
WebsiteGroupID uint `gorm:"type:integer" json:"webSiteGroupId"`
WebsiteSSLID uint `gorm:"type:integer" json:"webSiteSSLId"`
2022-12-12 07:36:45 +00:00
Proxy string `gorm:"type:varchar(128);not null" json:"proxy"`
2022-12-30 09:39:17 +00:00
ErrorLog bool `json:"errorLog"`
AccessLog bool `json:"accessLog"`
2023-01-03 08:56:36 +00:00
DefaultServer bool `json:"defaultServer"`
2022-12-13 09:20:13 +00:00
Domains []WebsiteDomain `json:"domains"`
WebsiteSSL WebsiteSSL `json:"webSiteSSL"`
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
}