Skip to content

Commit

Permalink
fix: remove nested user field
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Sep 28, 2024
1 parent 937372b commit 8ac5b18
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/models/factor.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ func ParseAuthenticationMethod(authMethod string) (AuthenticationMethod, error)

type Factor struct {
ID uuid.UUID `json:"id" db:"id"`
// TODO: Consider removing this nested user field. We don't use it.
User User `json:"-" belongs_to:"user"`
UserID uuid.UUID `json:"-" db:"user_id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
Expand Down

0 comments on commit 8ac5b18

Please sign in to comment.