Passport/pkg/internal/models/tokens.go

20 lines
331 B
Go
Raw Normal View History

2024-01-28 16:32:39 +00:00
package models
import "time"
type MagicTokenType = int8
const (
ConfirmMagicToken = MagicTokenType(iota)
RegistrationMagicToken
)
type MagicToken struct {
BaseModel
Code string `json:"code"`
Type int8 `json:"type"`
2024-06-26 07:52:58 +00:00
AccountID *uint `json:"account_id"`
2024-01-28 16:32:39 +00:00
ExpiredAt *time.Time `json:"expired_at"`
}