portal/db/models/password_reset.go

21 lines
217 B
Go
Raw Normal View History

package models
import (
"time"
"gorm.io/gorm"
)
func init() {
registerModel(&PasswordReset{})
}
type PasswordReset struct {
gorm.Model
UserID uint
User User
Token string
ExpiresAt time.Time
}