mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
start with xorm
This commit is contained in:
parent
3166b05107
commit
1715e88910
6 changed files with 497 additions and 8 deletions
|
@ -13,3 +13,11 @@ type CertDB interface {
|
|||
Compact() (string, error)
|
||||
Items() *pogreb.ItemIterator
|
||||
}
|
||||
|
||||
type Cert struct {
|
||||
Domain string `xorm:"pk NOT NULL"`
|
||||
Created int64 `xorm:"created NOT NULL DEFAULT 0"`
|
||||
Updated int64 `xorm:"updated NOT NULL DEFAULT 0"`
|
||||
ValidTill int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
Raw []byte `xorm:"NOT NULL"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue