LicenseManger/internal/model/reset_token.go

16 lines
208 B
Go
Raw Normal View History

2024-11-14 14:55:43 +00:00
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
}