staging accommodation to user
This commit is contained in:
parent
cd8fc9893d
commit
85a299da96
1 changed files with 18 additions and 0 deletions
18
models/staging/core/stg_core__accommodation_to_user.sql
Normal file
18
models/staging/core/stg_core__accommodation_to_user.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
with
|
||||
raw_accommodation_to_user as (
|
||||
select * from {{ source("core", "AccommodationToUser") }}
|
||||
),
|
||||
stg_core__accommodation_to_user as (
|
||||
select
|
||||
{{ adapter.quote("SuperhogUserId") }} as id_user_owner,
|
||||
{{ adapter.quote("AccommodationId") }} as id_accommodation,
|
||||
{{ adapter.quote("AccommodationToUserId") }} as id_accommodation_to_user,
|
||||
{{ adapter.quote("AccommodationUserType") }} as accommodation_user_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_accommodation_to_user
|
||||
)
|
||||
select *
|
||||
from stg_core__accommodation_to_user
|
||||
Loading…
Add table
Add a link
Reference in a new issue