22 lines
381 B
Go
Raw Normal View History

2024-01-29 00:32:39 +08:00
package models
import "time"
type MagicTokenType = int8
const (
ConfirmMagicToken = MagicTokenType(iota)
RegistrationMagicToken
2024-06-30 17:01:39 +08:00
ResetPasswordMagicToken
2024-09-19 22:18:22 +08:00
DeleteAccountMagicToken
2024-01-29 00:32:39 +08:00
)
type MagicToken struct {
BaseModel
Code string `json:"code"`
Type int8 `json:"type"`
2024-06-26 15:52:58 +08:00
AccountID *uint `json:"account_id"`
2024-01-29 00:32:39 +08:00
ExpiredAt *time.Time `json:"expired_at"`
}