⬆️ dashboard v0.12.26 update gorm fields tags

This commit is contained in:
naiba
2022-04-26 12:46:44 +08:00
parent 0e35862b23
commit b5f33a6c5b
6 changed files with 27 additions and 14 deletions

View File

@@ -1,13 +1,15 @@
package model
import "time"
import (
"time"
)
const CtxKeyAuthorizedUser = "ckau"
const CacheKeyOauth2State = "p:a:state"
type Common struct {
ID uint64 `gorm:"primary_key"`
ID uint64 `gorm:"primaryKey"`
CreatedAt time.Time `sql:"index"`
UpdatedAt time.Time
DeletedAt *time.Time `sql:"index"`