linstrom/storage-new/models/ServerMetadata.go
mstar 7ac4c628b8
Work on failed outbound requests and move type migrators
- DB type migrators are now in separate file, in preparation for full
  custom sql migration statements
- Start work on handling failed outbound requests stored in the db
2025-07-03 13:57:30 +02:00

28 lines
664 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
// ---- Section Database
LastMigrationVersion uint64
}