From b3fd1105df5916eda2c86feb88316fcc946b32dd Mon Sep 17 00:00:00 2001 From: Michael Myaskovsky Date: Thu, 22 Jan 2026 12:14:02 +0000 Subject: [PATCH] Modify column metadata. --- models/schema.yml | 12 ++++++------ models/staging/schema.yml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/models/schema.yml b/models/schema.yml index ff0e323b3..9886a1792 100644 --- a/models/schema.yml +++ b/models/schema.yml @@ -44,28 +44,28 @@ models: description: This is a unique identifier for an order - name: customer_id - description: Foreign key to the customers table + description: A unique identifier for the customer associated with the order. - name: order_date description: Date (UTC) that the order was placed - name: status - description: '{{ doc("orders_status") }}' + description: A status indicator for orders, used to track the current state of each order within the system. - name: amount description: Total amount (AUD) of the order - name: credit_card_amount - description: Amount of the order (AUD) paid for by credit card + description: The amount of money charged to a credit card for an order. It is derived from the amount column in the stg_payments table, where the payment method is a credit card. - name: coupon_amount - description: Amount of the order (AUD) paid for by coupon + description: A monetary value representing the discount applied to an order through a coupon. - name: bank_transfer_amount description: Amount of the order (AUD) paid for by bank transfer - name: gift_card_amount - description: Amount of the order (AUD) paid for by gift card + description: A representation of the monetary value of gift cards used in the payment for an order. - name: returned_orders description: This table contains all of the returned orders @@ -89,7 +89,7 @@ models: description: Total amount (AUD) of the order - name: credit_card_amount - description: Amount of the order (AUD) paid for by credit card + description: The amount of credit card payment for returned orders. - name: coupon_amount description: Amount of the order (AUD) paid for by coupon diff --git a/models/staging/schema.yml b/models/staging/schema.yml index 628a98f6e..b42c8db8a 100644 --- a/models/staging/schema.yml +++ b/models/staging/schema.yml @@ -7,13 +7,24 @@ models: columns: - name: customer_id + description: A unique identifier assigned to each customer in the system. + - name: first_name + description: A unique identifier for a customer's first name, sourced from + the customers_training table. + - name: last_name + description: A unique identifier... - name: stg_orders config: tags: ["staging", "finance"] columns: - name: order_id + description: A unique identifier for orders. - name: status + description: A status indicator for orders, used to track the current state + of each order within the system. + - name: customer_id + description: A unique identifier for the customer associated with the order. - name: stg_payments config: tags: ["staging", "finance"] @@ -21,9 +32,18 @@ models: - name: payment_id - name: payment_method + description: A method used to make a payment. - name: stg_signups config: tags: ["staging", "PII"] columns: - name: signup_id + description: A unique identifier for signups, derived from the 'id' column + in the 'signups_training' table. - name: customer_email + description: A unique identifier for the user who has signed up. + - name: hashed_password + description: A hashed version of the password associated with a user's signup. + - name: customer_id + description: A unique identifier for a customer who has signed up for a service + or program.