diff --git a/models/staging/stripe/_stripe__sources.yml b/models/staging/stripe/_stripe__sources.yml index 5bb236b..52a8eb9 100644 --- a/models/staging/stripe/_stripe__sources.yml +++ b/models/staging/stripe/_stripe__sources.yml @@ -19,4 +19,9 @@ sources: - name: status data_tests: - accepted_values: - values: ['success', 'fail'] \ No newline at end of file + values: ['success', 'fail'] + - name: amount + data_tests: + - dbt_utils.accepted_range: + min_value: 0 + max_value: 10000 \ No newline at end of file diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 61ede9e..28d19f9 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -1,10 +1,14 @@ + -- example showing staging model after snapshot select -- ids id as payment_id, orderid as order_id, - + 3 as three_column, + 4 as four_column, + 5 as five_column, + 6 as six_column, -- descriptions paymentmethod as payment_method, status,