Skip to content

Commit

Permalink
chore: fix owner_id (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
comerc authored Mar 22, 2024
1 parent ed6ed74 commit 4e523c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/fixture/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type User struct {
type Org struct {
ID int64 `bun:",pk,autoincrement"`
Name string
OwnerID int64
OwnerID int64 `yaml:"owner_id"`
Owner *User `bun:"rel:belongs-to"`
}

Expand Down

0 comments on commit 4e523c4

Please sign in to comment.