feat: introduce hanko profile element and related api changes (#495)

* feat: introduce hanko profile element and related api changes
This commit is contained in:
bjoern-m
2023-01-25 10:55:23 +01:00
committed by GitHub
parent 93ad9c4056
commit ca62cf421f
254 changed files with 13765 additions and 3955 deletions

View File

@ -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.