Switch to edge fields for passwordtoken.
This commit is contained in:
parent
acf8a830d7
commit
1b86097376
19 changed files with 217 additions and 109 deletions
|
|
@ -6,9 +6,10 @@ import "time"
|
|||
type PasswordToken struct {
|
||||
// Fields.
|
||||
Hash string `form:"hash"`
|
||||
UserID int `form:"user_id"`
|
||||
CreatedAt time.Time `form:"created_at"`
|
||||
// Edges.
|
||||
User int `form:"user"`
|
||||
// User int `form:"user"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue