Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 861 Bytes
include: "users.view"
include: "inventory_items.view"
include: "products.view"
include: "distribution_centers.view"
include: "user_order_sequence.view"
include: "order_items.view"
include: "user_joins.explore"
explore: order_items {
extends: [user_joins]
join: users {relationship:many_to_one sql_on: ${order_items.user_id} = ${users.id} ;;}
join: inventory_items {relationship:many_to_one sql_on: ${order_items.inventory_item_id} = ${inventory_items.id} ;;}
join: products {relationship:many_to_one sql_on: ${inventory_items.product_id} = ${products.id} ;;}
join: distribution_centers {relationship:many_to_one sql_on: ${products.distribution_center_id} = ${distribution_centers.id} ;;}
join: user_order_sequence {view_label:"Order Items" relationship: many_to_one
sql_on: ${user_order_sequence.order_id} = ${order_items.order_id} ;;}
}
You can’t perform that action at this time.