LicenseManger/internal/model/reset_token.go

16 lines
208 B
Go

package model
import (
"time"
"gorm.io/gorm"
)
type PasswordResetToken struct {
gorm.Model
UserID uint `gorm:"index"`
Token string `gorm:"uniqueIndex"`
ExpiresAt time.Time
Used bool
}