diff --git a/models/marts/customers.sql b/models/marts/customers.sql index 129eb8ff..2762345f 100644 --- a/models/marts/customers.sql +++ b/models/marts/customers.sql @@ -1,3 +1,9 @@ +{{ config(meta = { + 'favorite_food': 'pizza' +}) }} + +select 1 as id + with customers as ( diff --git a/models/marts/customers.yml b/models/marts/customers.yml index 98361431..38afd319 100644 --- a/models/marts/customers.yml +++ b/models/marts/customers.yml @@ -1,5 +1,8 @@ models: - name: customers + config: + meta: + favorite_food: "pizza" description: Customer overview data mart, offering key details for each unique customer. One row per customer. data_tests: - dbt_utils.expression_is_true: @@ -75,6 +78,9 @@ metrics: type: simple type_params: measure: lifetime_spend_pretax + config: + meta: + owner: "finance_team" - name: count_lifetime_orders description: Count of lifetime orders label: Count Lifetime Orders @@ -93,6 +99,8 @@ metrics: saved_queries: - name: customer_order_metrics + config: + tags: ['santi'] query_params: metrics: - count_lifetime_orders @@ -104,3 +112,4 @@ saved_queries: - name: customer_order_metrics config: export_as: table + tags: ['santi'] diff --git a/models/marts/orders.yml b/models/marts/orders.yml index a37107c3..73066ee9 100644 --- a/models/marts/orders.yml +++ b/models/marts/orders.yml @@ -1,6 +1,7 @@ models: - name: orders - description: Order overview data mart, offering key details for each order inlcluding if it's a customer's first order and a food vs. drink item breakdown. One row per order. + description: + Order overview data mart, offering key details for each order inlcluding if it's a customer's first order and a food vs. drink item breakdown. One row per order. data_tests: - dbt_utils.expression_is_true: expression: "order_items_subtotal = subtotal" diff --git a/models/marts/supplies.yml b/models/marts/supplies.yml deleted file mode 100644 index 45f7b966..00000000 --- a/models/marts/supplies.yml +++ /dev/null @@ -1,24 +0,0 @@ -semantic_models: - #The name of the semantic model. - - name: supplies - description: | - Supplies dimension table. The grain of the table is one row per supply and product combination. - #The name of the dbt model and schema - model: ref('supplies') - #Entities. These usually corespond to keys in the table. - entities: - - name: supply - type: primary - expr: supply_uuid - #Dimensions. Either categorical or time. These add additonal context to metrics. The typical querying pattern is Metric by Dimension. - dimensions: - - name: supply_id - type: categorical - - name: product_id - type: categorical - - name: supply_name - type: categorical - - name: supply_cost - type: categorical - - name: is_perishable_supply - type: categorical diff --git a/models/staging/stg_supplies.yml b/models/staging/stg_supplies.yml index 3cb4ab0d..6e7f24cd 100644 --- a/models/staging/stg_supplies.yml +++ b/models/staging/stg_supplies.yml @@ -4,9 +4,13 @@ models: List of our supply expenses data with basic cleaning and transformation applied. One row per supply cost, not per supply. As supply costs fluctuate they receive a new row with a new UUID. Thus there can be multiple rows per supply_id. + config: + tags: ['santi'] columns: - name: supply_uuid description: The unique key of our supplies per cost. + tags: ['santi'] data_tests: - not_null - - unique + - unique: + tags: ['santi'] diff --git a/package-lock.yml b/package-lock.yml index 3f03b07b..8730374a 100644 --- a/package-lock.yml +++ b/package-lock.yml @@ -3,6 +3,6 @@ packages: version: 1.1.1 - package: calogica/dbt_date version: 0.10.0 - - package: dbt-labs/audit_helper - version: 0.12.0 -sha1_hash: 974021e878d1894c35a21fb44fb0b6bd04f07078 + - git: https://github.com/dbt-labs/dbt-audit-helper.git + revision: c0be07f84e61dd01517292a15a2c084af9c95f01 +sha1_hash: da0d5b1d5a48f6504805f6b1d5a0b2f9f233f34c