mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
22 lines
644 B
Go
22 lines
644 B
Go
package models
|
|
|
|
import (
|
|
"github.com/goravel/framework/support/carbon"
|
|
|
|
"panel/pkg/acme"
|
|
)
|
|
|
|
type CertDNS struct {
|
|
ID uint `gorm:"primaryKey" json:"id"`
|
|
Type string `gorm:"not null" json:"type"` // DNS 提供商 (dnspod, aliyun, cloudflare)
|
|
Data acme.DNSParam `gorm:"type:json;serializer:json" json:"dns_param"`
|
|
CreatedAt carbon.DateTime `gorm:"autoCreateTime;column:created_at" json:"created_at"`
|
|
UpdatedAt carbon.DateTime `gorm:"autoUpdateTime;column:updated_at" json:"updated_at"`
|
|
|
|
Certs []*Cert `gorm:"foreignKey:DNSID" json:"certs"`
|
|
}
|
|
|
|
func (CertDNS) TableName() string {
|
|
return "cert_dns"
|
|
}
|