2022-11-11 09:41:39 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
type WebsiteAcmeAccount struct {
|
|
|
|
BaseModel
|
2023-11-16 06:38:07 +00:00
|
|
|
Email string `gorm:"not null" json:"email"`
|
|
|
|
URL string `gorm:"not null" json:"url"`
|
|
|
|
PrivateKey string `gorm:"not null" json:"-"`
|
|
|
|
Type string `gorm:"not null;default:letsencrypt" json:"type"`
|
|
|
|
EabKid string `gorm:"default:null;" json:"eabKid"`
|
|
|
|
EabHmacKey string `gorm:"default:null" json:"eabHmacKey"`
|
|
|
|
KeyType string `gorm:"not null;default:2048" json:"keyType"`
|
2022-11-11 09:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (w WebsiteAcmeAccount) TableName() string {
|
|
|
|
return "website_acme_accounts"
|
|
|
|
}
|