Created staging model for verification set to verification type
This commit is contained in:
parent
d7b810df73
commit
53eb97accc
2 changed files with 25 additions and 0 deletions
|
|
@ -177,6 +177,8 @@ sources:
|
|||
identifier: VerificationToPayment
|
||||
- name: VerificationPaymentType
|
||||
identifier: VerificationPaymentType
|
||||
- name: VerificationSetToVerificationType
|
||||
identifier: VerificationSetToVerificationType
|
||||
- name: Payment
|
||||
identifier: Payment
|
||||
- name: PaymentStatus
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
with
|
||||
raw_verificationsettoverificationtype as (
|
||||
select * from {{ source("core", "VerificationSetToVerificationType") }}
|
||||
),
|
||||
stg_core__verification_set_to_verification_type as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_verification_set_to_verification_type,
|
||||
{{ adapter.quote("VerificationSetId") }} as id_verification_set,
|
||||
{{ adapter.quote("VerificationTypeId") }} as id_verification_type,
|
||||
{{ adapter.quote("Rules") }} as rules,
|
||||
{{ adapter.quote("Hidden") }} as is_hidden,
|
||||
{{ adapter.quote("MetaData") }} as metadata,
|
||||
{{ adapter.quote("SortOrder") }} as sort_order,
|
||||
{{ adapter.quote("CreatedDate") }} as created_at_utc,
|
||||
cast({{ adapter.quote("CreatedDate") }} as date) as created_date_utc,
|
||||
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
||||
cast({{ adapter.quote("UpdatedDate") }} as date) as updated_date_utc,
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||
|
||||
from raw_verificationsettoverificationtype
|
||||
)
|
||||
select *
|
||||
from stg_core__verification_set_to_verification_type
|
||||
Loading…
Add table
Add a link
Reference in a new issue