diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index a748908..1baf61a 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -10,9 +10,10 @@ select -- descriptions paymentmethod as payment_method, status, - {{ money('amount') }} as amount -- amount is stored in cents, convert it to dollars + {{ money('amount') }} as amount, -- amount is stored in cents, convert it to dollars -- datetimes + created as created_at from {{ ref('snapshot_stg_payments') }} -- pull only the most recent update for each unique record diff --git a/models/staging/stripe/stg_stripe__payments.yml b/models/staging/stripe/stg_stripe__payments.yml new file mode 100644 index 0000000..5769317 --- /dev/null +++ b/models/staging/stripe/stg_stripe__payments.yml @@ -0,0 +1,4 @@ +models: + - name: stg_stripe__payments + access: public + description: description \ No newline at end of file