Skip to content

Commit

Permalink
back fk in the example, they were removed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Feb 26, 2018
1 parent 70cac88 commit f95121b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/user-orders.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# ORDER BY created_at DESC
[[Tables.Relationships]]
Table = "orders"
ForeignKey = "user_id"
ReferencedTable = "users"
ReferencedKey = "id"
[Tables.Filter]
Expand All @@ -40,10 +41,12 @@
# ORDER BY created_at DESC
[[Tables.Relationships]]
Table = "order_items"
ForeignKey = "order_id"
ReferencedTable = "orders"
ReferencedKey = "id"
[[Tables.Relationships]]
Table = "orders"
ForeignKey = "user_id"
ReferencedTable = "users"
ReferencedKey = "id"
[Tables.Filter]
Expand Down

0 comments on commit f95121b

Please sign in to comment.