1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-18 21:29:26 +08:00
1Panel/backend/app/model/website_ssl.go

22 lines
807 B
Go
Raw Normal View History

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-11-16 10:31:35 +08:00
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"`
2022-11-11 17:41:39 +08:00
}
func (w WebSiteSSL) TableName() string {
return "website_ssls"
2022-10-28 17:04:57 +08:00
}