13 lines
407 B
Go
Executable file
13 lines
407 B
Go
Executable file
package models
|
|
|
|
import "time"
|
|
|
|
// PasswordReset represents a password reset token
|
|
type PasswordReset struct {
|
|
ID int `json:"id" db:"id"`
|
|
UserID int `json:"userId" db:"user_id"`
|
|
Token string `json:"token" db:"token"`
|
|
ExpiresAt time.Time `json:"expiresAt" db:"expires_at"`
|
|
Used bool `json:"used" db:"used"`
|
|
CreatedAt time.Time `json:"createdAt" db:"created_at"`
|
|
}
|