mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 16:29:17 +08:00
20 lines
644 B
Go
20 lines
644 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type WebSiteSSL struct {
|
|
BaseModel
|
|
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"`
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
StartDate time.Time `json:"startDate"`
|
|
}
|
|
|
|
func (w WebSiteSSL) TableName() string {
|
|
return "website_ssls"
|
|
}
|