some progress
This commit is contained in:
parent
f911912b45
commit
606eed9754
4 changed files with 35 additions and 7 deletions
|
|
@ -169,3 +169,5 @@ sources:
|
|||
description: "{{ doc('_airbyte_meta_desc') }}"
|
||||
- name: superhog_user
|
||||
identifier: SuperhogUser
|
||||
- name: VerificationToPayment
|
||||
identifier: VerificationToPayment
|
||||
|
|
|
|||
23
models/staging/core/stg_core__verification_to_payment.sql
Normal file
23
models/staging/core/stg_core__verification_to_payment.sql
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
with
|
||||
raw_verificationtopayment as (
|
||||
select * from {{ source("core", "VerificationToPayment") }}
|
||||
),
|
||||
stg_core__verification_to_payment as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_verification_to_payment,
|
||||
{{ adapter.quote("PaymentId") }} as id_payment,
|
||||
{{ adapter.quote("Refundable") }} as is_refundable,
|
||||
{{ adapter.quote("CreatedDate") }} as created_at_utc,
|
||||
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
||||
{{ adapter.quote("RefundDueDate") }} as refund_due_at_utc,
|
||||
{{ adapter.quote("PaymentDueDate") }} as payment_due_at_utc,
|
||||
{{ adapter.quote("SuperhogUserId") }} as id_superhog_user,
|
||||
{{ adapter.quote("VerificationId") }} as id_verification,
|
||||
{{ adapter.quote("VerificationPaymentTypeId") }}
|
||||
as id_verification_payment_type,
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_date_utc
|
||||
|
||||
from raw_verificationtopayment
|
||||
)
|
||||
select *
|
||||
from stg_core__verification_to_payment
|
||||
Loading…
Add table
Add a link
Reference in a new issue