Skip to content

Commit

Permalink
Update model names and add owner metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadias2212 committed Apr 10, 2024
1 parent 7361227 commit 8ef7391
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions jaffle_shop/models/warehouse/_models.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
version: 2

models:
- name: wh_customers
- name: customers
description: This table has basic information about a customer, as well as some derived facts based on a customer's orders
meta:
owner: "[email protected]"

columns:
- name: customer_id
Expand All @@ -29,9 +31,10 @@ models:
- name: total_order_amount
description: Total value (AUD) of a customer's orders

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

meta:
owner: "[email protected]"
columns:
- name: order_id
tests:
Expand Down
2 changes: 1 addition & 1 deletion jaffle_shop/models/warehouse/wh_customers.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
with customers as (

select * from {{ ref('stg_customers') }}
select * from {{ ref('stg_customers_pii') }}

),

Expand Down
8 changes: 4 additions & 4 deletions jaffle_shop/seeds/_models.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2

models:
- seeds: raw_customers
- seeds: raw_orders
- seeds: raw_payments
seed:
- name: raw_customers
- name: raw_orders
- name: raw_payments

0 comments on commit 8ef7391

Please sign in to comment.