diff --git a/models/user.go b/models/user.go index 78f9019..859153c 100644 --- a/models/user.go +++ b/models/user.go @@ -3,7 +3,7 @@ package models import "time" type User struct { - ID int8 `gorm:"id;primary_key"` + ID int64 `gorm:"id;primary_key"` Nickname string `gorm:"nickname"` Username string `gorm:"username"` Password string `gorm:"password"` diff --git a/models/user_token.go b/models/user_token.go index ef32b77..520368e 100644 --- a/models/user_token.go +++ b/models/user_token.go @@ -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"`