1Panel/backend/app/model/website_ssl.go
2022-11-17 21:20:33 +08:00

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"
}