add payment validation set stg model
This commit is contained in:
parent
eb16df007d
commit
1d8fc0d6fa
1 changed files with 22 additions and 0 deletions
22
models/staging/core/stg_core__payment_validation_set.sql
Normal file
22
models/staging/core/stg_core__payment_validation_set.sql
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
with
|
||||
raw_payment_validation_set as (
|
||||
select * from {{ source("core", "PaymentValidationSet") }}
|
||||
),
|
||||
stg_core__payment_validation_set as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_payment_validation_set,
|
||||
{{ adapter.quote("SuperhogUserId") }} as id_guest_host,
|
||||
{{ adapter.quote("Name") }} as payment_validation_set_name,
|
||||
{{ adapter.quote("Version") }} as payment_validation_set_version,
|
||||
{{ adapter.quote("IsActive") }} as is_active,
|
||||
{{ adapter.quote("IsCustom") }} as is_custom,
|
||||
{{ 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_payment_validation_set
|
||||
)
|
||||
select *
|
||||
from stg_core__payment_validation_set
|
||||
Loading…
Add table
Add a link
Reference in a new issue