mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-11 18:05:59 +08:00
21 lines
807 B
Go
21 lines
807 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type WebSiteSSL struct {
|
|
BaseModel
|
|
Alias string `gorm:"type:varchar(64);not null" json:"alias"`
|
|
PrivateKey string `gorm:"type:longtext;not null" json:"privateKey"`
|
|
Pem string `gorm:"type:longtext;not null" json:"pem"`
|
|
Domain string `gorm:"type:varchar(256);not null" json:"domain"`
|
|
CertURL string `gorm:"type:varchar(256);not null" json:"certURL"`
|
|
Type string `gorm:"type:varchar(64);not null" json:"type"`
|
|
IssuerName string `gorm:"type:varchar(64);not null" json:"issuerName"`
|
|
DnsAccountID uint `gorm:"type:integer;not null" json:"dnsAccountId"`
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
StartDate time.Time `json:"startDate"`
|
|
}
|
|
|
|
func (w WebSiteSSL) TableName() string {
|
|
return "website_ssls"
|
|
}
|