Switch to edge fields for passwordtoken.

This commit is contained in:
mikestefanello 2025-04-10 09:07:53 -04:00
parent acf8a830d7
commit 1b86097376
19 changed files with 217 additions and 109 deletions

View file

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