Merged PR 2106: Add VerificationSet to staging

Brings the VerificationSet from Core into staging.

Related work items: #17068
This commit is contained in:
Pablo Martín 2024-06-25 09:13:11 +00:00
commit cebd6f6485
3 changed files with 30 additions and 0 deletions

View file

@ -211,3 +211,5 @@ sources:
identifier: AccommodationToUser
- name: Country
identifier: Country
- name: VerificationSet
identifier: VerificationSet

View file

@ -120,3 +120,10 @@ models:
tests:
- unique
- not_null
- name: stg_core__verification_set
columns:
- name: id_verification_set
tests:
- unique
- not_null

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