2024-02-26 12:47:05 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
2024-02-29 02:20:05 +00:00
|
|
|
func init() {
|
|
|
|
registerModel(&PasswordReset{})
|
|
|
|
}
|
|
|
|
|
2024-02-26 12:47:05 +00:00
|
|
|
type PasswordReset struct {
|
|
|
|
gorm.Model
|
|
|
|
|
|
|
|
UserID uint
|
|
|
|
User User
|
|
|
|
Token string
|
|
|
|
ExpiresAt time.Time
|
|
|
|
}
|