2022-10-28 17:04:57 +08:00
|
|
|
package model
|
|
|
|
|
2022-11-11 17:41:39 +08:00
|
|
|
import "time"
|
|
|
|
|
2022-10-28 17:04:57 +08:00
|
|
|
type WebSiteSSL struct {
|
|
|
|
BaseModel
|
2022-12-05 15:50:53 +08:00
|
|
|
PrimaryDomain string `gorm:"type:varchar(256);not null" json:"primaryDomain"`
|
|
|
|
PrivateKey string `gorm:"type:longtext;not null" json:"privateKey"`
|
|
|
|
Pem string `gorm:"type:longtext;not null" json:"pem"`
|
|
|
|
Domains string `gorm:"type:varchar(256);not null" json:"domains"`
|
|
|
|
CertURL string `gorm:"type:varchar(256);not null" json:"certURL"`
|
|
|
|
Type string `gorm:"type:varchar(64);not null" json:"type"`
|
|
|
|
Provider string `gorm:"type:varchar(64);not null" json:"provider"`
|
|
|
|
Organization string `gorm:"type:varchar(64);not null" json:"organization"`
|
|
|
|
DnsAccountID uint `gorm:"type:integer;not null" json:"dnsAccountId"`
|
|
|
|
AcmeAccountID uint `gorm:"type:integer;not null" json:"acmeAccountId"`
|
|
|
|
AcmeAccount WebsiteAcmeAccount `json:"acmeAccount"`
|
|
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
|
|
StartDate time.Time `json:"startDate"`
|
2022-11-11 17:41:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (w WebSiteSSL) TableName() string {
|
|
|
|
return "website_ssls"
|
2022-10-28 17:04:57 +08:00
|
|
|
}
|