linstrom/storage-new/models/ServerMetadata.go
mstar 68d7a5e8c3
Some checks are pending
/ docker (push) Waiting to run
Start work on own tls termination and http3 support
2025-05-26 17:10:46 +02:00

24 lines
607 B
Go

package models
import (
"database/sql"
"time"
)
type ServerMetadata struct {
// Technically no id needed since expected to only ever store one entry in this table
Id uint64 `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
// ---- Section TLS LetsEncrypt
LEDomain string
LECertUrl string
LECertStableUrl string
LEPrivateKey []byte // Encrypted
LECertificate []byte // Encrypted
LEIssuerCertificate []byte // Encrypted
LECSR []byte // Encrypted
LELastUpdate sql.NullTime
LEUserPrivKey []byte // Encrypted
}