Skip to content

Commit

Permalink
Add exposures
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotTaylor23 committed Jan 4, 2023
1 parent 866c78c commit 74d472b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
12 changes: 12 additions & 0 deletions jaffle_shop/models/final/finance/_exposures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

exposures:
- name: customer_return_total
description: Inksacio App to show the total sum of customer returns, per customer (for both completed and upcoming)
type: dashboard
url: https://inksacio.eks.octojaffle.engineering/customer_return_totals/
owner:
name: 'Elliot Taylor'
email: [email protected]
depends_on:
- ref('fnl_finance_customerreturnstotal')
12 changes: 12 additions & 0 deletions jaffle_shop/models/final/sales/_exposures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

exposures:
- name: new_customer_history
description: Inksacio App to show monthly new customer history
type: dashboard
url: https://inksacio.eks.octojaffle.engineering/new_customer_history/
owner:
name: 'Elliot Taylor'
email: [email protected]
depends_on:
- ref('fnl_sales_newcustomerhistory')
2 changes: 1 addition & 1 deletion jaffle_shop/models/staging/src_seed/sensitive/_models.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: stg_customers
- name: stg_customers_pii
columns:
- name: customer_id
tests:
Expand Down
6 changes: 3 additions & 3 deletions jaffle_shop/models/warehouse/_models.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2

models:
- name: customers
- name: wh_customers
description: This table has basic information about a customer, as well as some derived facts based on a customer's orders

columns:
Expand Down Expand Up @@ -29,7 +29,7 @@ models:
- name: total_order_amount
description: Total value (AUD) of a customer's orders

- name: orders
- name: wh_orders
description: This table has basic information about orders, as well as some derived facts based on payments

columns:
Expand All @@ -44,7 +44,7 @@ models:
tests:
- not_null
- relationships:
to: ref('customers')
to: ref('wh_customers')
field: customer_id

- name: order_date
Expand Down

0 comments on commit 74d472b

Please sign in to comment.