update
This commit is contained in:
@ -12,8 +12,6 @@ type RefreshToken struct {
|
||||
TokenHash string `gorm:"column:token_hash;size:64;uniqueIndex:uk_token_hash" json:"-"`
|
||||
ExpiresAt uint32 `gorm:"column:expires_at" json:"-"`
|
||||
Revoked uint8 `gorm:"column:revoked" json:"-"`
|
||||
UserAgent string `gorm:"column:user_agent;size:255" json:"-"`
|
||||
IP string `gorm:"column:ip;size:64" json:"-"`
|
||||
CreatedAt uint32 `gorm:"column:created_at" json:"-"`
|
||||
|
||||
// 与 GORM 自动时间字段区分:CreatedAt 由业务层显式写入 Unix 秒。
|
||||
|
||||
Reference in New Issue
Block a user