mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-29 07:40:07 +08:00
feat: introduce hanko profile element and related api changes (#495)
* feat: introduce hanko profile element and related api changes
This commit is contained in:
@ -12,11 +12,13 @@ import (
|
||||
type Passcode struct {
|
||||
ID uuid.UUID `db:"id"`
|
||||
UserId uuid.UUID `db:"user_id"`
|
||||
EmailID uuid.UUID `db:"email_id"`
|
||||
Ttl int `db:"ttl"` // in seconds
|
||||
Code string `db:"code"`
|
||||
TryCount int `db:"try_count"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
Email Email `belongs_to:"email"`
|
||||
}
|
||||
|
||||
// Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method.
|
||||
|
||||
Reference in New Issue
Block a user