修改数据库模型
This commit is contained in:
@@ -3,8 +3,8 @@ package models
|
||||
import "time"
|
||||
|
||||
type UserToken struct {
|
||||
ID int8 `gorm:"id;primary_key"`
|
||||
UserId int8 `gorm:"UserId"`
|
||||
ID int64 `gorm:"id;primary_key"`
|
||||
UserId int64 `gorm:"UserId"`
|
||||
Token string `gorm:"token"`
|
||||
ExpirationTime time.Time `gorm:"expiration_time"`
|
||||
CreatedAt time.Time `gorm:"created_at;type:timestamptz"`
|
||||
|
||||
Reference in New Issue
Block a user