From c23e79b5fea6835c592830515dcc9f10ac2ca051 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Tue, 25 Jun 2024 11:04:28 +0200 Subject: [PATCH] add staging model --- .../core/stg_core__verification_set.sql | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 models/staging/core/stg_core__verification_set.sql diff --git a/models/staging/core/stg_core__verification_set.sql b/models/staging/core/stg_core__verification_set.sql new file mode 100644 index 0000000..1f792d9 --- /dev/null +++ b/models/staging/core/stg_core__verification_set.sql @@ -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