staging balance transactions
This commit is contained in:
parent
f7fb95aa4c
commit
d6397b2807
1 changed files with 28 additions and 0 deletions
28
models/staging/stripe/stg_stripe__balance_transactions.sql
Normal file
28
models/staging/stripe/stg_stripe__balance_transactions.sql
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
with
|
||||
raw_balance_transactions as (
|
||||
select * from {{ source("stripe_uk", "balance_transactions") }}
|
||||
),
|
||||
stg_stripe__balance_transactions as (
|
||||
select
|
||||
{{ adapter.quote("id") }},
|
||||
{{ adapter.quote("fee") }},
|
||||
{{ adapter.quote("net") }},
|
||||
{{ adapter.quote("type") }},
|
||||
{{ adapter.quote("amount") }},
|
||||
{{ adapter.quote("object") }},
|
||||
{{ adapter.quote("source") }},
|
||||
{{ adapter.quote("status") }},
|
||||
{{ adapter.quote("created") }},
|
||||
{{ adapter.quote("currency") }},
|
||||
{{ adapter.quote("description") }},
|
||||
{{ adapter.quote("fee_details") }},
|
||||
{{ adapter.quote("available_on") }},
|
||||
{{ adapter.quote("exchange_rate") }},
|
||||
{{ adapter.quote("sourced_transfers") }},
|
||||
{{ adapter.quote("reporting_category") }},
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_loaded_at_date
|
||||
|
||||
from raw_balance_transactions
|
||||
)
|
||||
select *
|
||||
from stg_stripe__balance_transactions
|
||||
Loading…
Add table
Add a link
Reference in a new issue