add verification model
This commit is contained in:
parent
53eb97accc
commit
94c87de4d4
2 changed files with 26 additions and 0 deletions
|
|
@ -171,6 +171,8 @@ sources:
|
|||
identifier: SuperhogUser
|
||||
- name: UserVerificationStatus
|
||||
identifier: UserVerificationStatus
|
||||
- name: Verification
|
||||
identifier: Verification
|
||||
- name: VerificationRequest
|
||||
identifier: VerificationRequest
|
||||
- name: VerificationToPayment
|
||||
|
|
|
|||
24
models/staging/core/stg_core__verification.sql
Normal file
24
models/staging/core/stg_core__verification.sql
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
with
|
||||
raw_verification as (select * from {{ source("core", "Verification") }}),
|
||||
stg_core__verification as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_verification,
|
||||
{{ adapter.quote("SuperhogUserId") }} as id_user_guest,
|
||||
{{ adapter.quote("VerificationStatusId") }} as id_verification_status,
|
||||
{{ adapter.quote("VerificationRequestId") }} as id_verification_request,
|
||||
{{ adapter.quote("Name") }} as verification,
|
||||
{{ adapter.quote("Value") }} as verification_value,
|
||||
{{ adapter.quote("MetaData") }} as metadata,
|
||||
{{ adapter.quote("Provider") }} as verification_provider,
|
||||
{{ 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 update_date_utc,
|
||||
{{ adapter.quote("DeletedDate") }} as deleted_at_utc,
|
||||
cast({{ adapter.quote("DeletedDate") }} as date) as deleted_date_utc,
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||
|
||||
from raw_verification
|
||||
)
|
||||
select *
|
||||
from stg_core__verification
|
||||
Loading…
Add table
Add a link
Reference in a new issue