mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
fix: 更新导致创建日期归零
This commit is contained in:
parent
c4d114ef91
commit
011fc2340a
@ -1,6 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"gorm.io/gorm"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -10,9 +11,9 @@ const CacheKeyOauth2State = "p:a:state"
|
|||||||
|
|
||||||
type Common struct {
|
type Common struct {
|
||||||
ID uint64 `gorm:"primaryKey"`
|
ID uint64 `gorm:"primaryKey"`
|
||||||
CreatedAt time.Time `sql:"index"`
|
CreatedAt time.Time `gorm:"<-:create"`
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time `gorm:"autoUpdateTime"`
|
||||||
DeletedAt *time.Time `sql:"index"`
|
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Response struct {
|
type Response struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user