2022-10-28 17:04:57 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type WebSite struct {
|
|
|
|
BaseModel
|
2022-11-21 11:27:56 +08:00
|
|
|
Protocol string `gorm:"type:varchar(64);not null" json:"protocol"`
|
2022-11-19 17:16:02 +08: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"`
|
|
|
|
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"`
|
|
|
|
Domains []WebSiteDomain `json:"domains"`
|
2022-11-25 15:37:24 +08:00
|
|
|
WebSiteSSL WebSiteSSL `json:"webSiteSSL"`
|
2022-11-11 17:41:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (w WebSite) TableName() string {
|
|
|
|
return "websites"
|
2022-10-28 17:04:57 +08:00
|
|
|
}
|