mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-29 05:49:07 +08:00
24 lines
982 B
Go
24 lines
982 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type WebSiteSSL struct {
|
|
BaseModel
|
|
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"`
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
StartDate time.Time `json:"startDate"`
|
|
}
|
|
|
|
func (w WebSiteSSL) TableName() string {
|
|
return "website_ssls"
|
|
}
|