update tables primary key to use serial/integer
This commit is contained in:
parent
86fd4b73b6
commit
f251f52fa9
8 changed files with 14 additions and 14 deletions
|
|
@ -5,8 +5,8 @@ import (
|
|||
)
|
||||
|
||||
type Token struct {
|
||||
ID string `db:"id"`
|
||||
UserID string `db:"user_id"`
|
||||
ID uint64 `db:"id"`
|
||||
UserID uint64 `db:"user_id"`
|
||||
Type string `db:"type"` // "email_verify" or "password_reset"
|
||||
Token string `db:"token"`
|
||||
ExpiresAt time.Time `db:"expires_at"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue