Changed it to basic model
This commit is contained in:
parent
a4dc798f86
commit
5892fe7cbb
2 changed files with 23 additions and 26 deletions
42
models/intermediate/core/int_edeposit__verifications.sql
Normal file
42
models/intermediate/core/int_edeposit__verifications.sql
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
with
|
||||
stg_edeposit__verifications as (
|
||||
select * from {{ ref("stg_edeposit__verifications") }}
|
||||
)
|
||||
select
|
||||
id as id_verification,
|
||||
id_booking,
|
||||
id_user,
|
||||
id_listing,
|
||||
version, -- V1 for guesty and V2 for e-deposit verifications
|
||||
verification_status,
|
||||
verification_status_reason,
|
||||
nightly_fee_local,
|
||||
cast(checkout_at_utc as date) - cast(checkin_at_utc as date) as number_nights,
|
||||
email_flag,
|
||||
phone_flag,
|
||||
watch_list,
|
||||
channel,
|
||||
checkin_at_utc,
|
||||
checkout_at_utc,
|
||||
is_cancelled,
|
||||
cancelled_at_utc,
|
||||
user_email,
|
||||
guest_email,
|
||||
guest_last_name,
|
||||
guest_first_name,
|
||||
guest_telephone,
|
||||
company_name,
|
||||
property_manager_name,
|
||||
property_manager_email,
|
||||
listing_name,
|
||||
listing_town,
|
||||
listing_country,
|
||||
listing_postcode,
|
||||
pets_allowed,
|
||||
level_of_protection_amount,
|
||||
level_of_protection_currency,
|
||||
status_updated_at_utc,
|
||||
updated_at_utc,
|
||||
creation_at_utc,
|
||||
created_at_utc
|
||||
from stg_edeposit__verifications
|
||||
Loading…
Add table
Add a link
Reference in a new issue