add staging model

This commit is contained in:
Pablo Martin 2024-06-25 11:04:28 +02:00
parent 8fbbb1d10b
commit c23e79b5fe

View file

@ -0,0 +1,21 @@
with
raw_verification_set as (select * from {{ source("core", "VerificationSet") }}),
stg_core__verification_set as (
select
{{ adapter.quote("Id") }} as id_verification_set,
{{ adapter.quote("SuperhogUserId") }} as id_user_host,
{{ adapter.quote("Version") }} as verification_set_version,
{{ adapter.quote("AutoFill") }} as autofill,
{{ adapter.quote("IsActive") }} as is_active,
{{ adapter.quote("AutoNavigate") }} as autonavigate,
{{ adapter.quote("HidePassword") }} as hide_password,
{{ adapter.quote("UserVerificationSetType") }}
as user_verification_set_type,
{{ adapter.quote("CreatedDate") }} as created_at_utc,
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
from raw_verification_set
)
select *
from stg_core__verification_set