Added verification_request_booking_source to int_core__guest_satisfaction_responses model
This commit is contained in:
parent
2130226939
commit
4d5af3ba21
2 changed files with 19 additions and 3 deletions
|
|
@ -5,8 +5,8 @@ with
|
|||
stg_core__guest_satisfaction_responses as (
|
||||
select * from {{ ref("stg_core__guest_satisfaction_responses") }}
|
||||
),
|
||||
stg_core__verification_request as (
|
||||
select * from {{ ref("stg_core__verification_request") }}
|
||||
int_core__verification_requests as (
|
||||
select * from {{ ref("int_core__verification_requests") }}
|
||||
),
|
||||
stg_core__verification as (select * from {{ ref("stg_core__verification") }}),
|
||||
stg_core__user as (select * from {{ ref("stg_core__user") }}),
|
||||
|
|
@ -33,6 +33,7 @@ select
|
|||
u.id_user as id_user_guest,
|
||||
-- not show email if the guest is not contactable
|
||||
case when gss.is_contactable is true then u.email else '' end as guest_email,
|
||||
vr.verification_request_booking_source,
|
||||
gss.experience_rating,
|
||||
gss.guest_comments,
|
||||
coalesce(gss.is_contactable, false) as is_contactable,
|
||||
|
|
@ -49,7 +50,7 @@ select
|
|||
coalesce(pt.has_fee_payment, false) as has_fee_payment
|
||||
from staging.stg_core__guest_satisfaction_responses gss
|
||||
left join
|
||||
staging.stg_core__verification_request vr
|
||||
staging.int_core__verification_requests vr
|
||||
on vr.id_verification_request = gss.id_verification_request
|
||||
left join
|
||||
staging.stg_core__verification v
|
||||
|
|
|
|||
|
|
@ -887,6 +887,21 @@ models:
|
|||
data_type: character varying
|
||||
description: Guest email
|
||||
|
||||
- name: verification_request_booking_source
|
||||
data_type: text
|
||||
description:
|
||||
Source type of host of the booking, this could be either;
|
||||
- PMS
|
||||
- OSL
|
||||
- API/MANUAL
|
||||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'PMS'
|
||||
- 'OSL'
|
||||
- 'API/MANUAL'
|
||||
|
||||
- name: experience_rating
|
||||
data_type: bigint
|
||||
description:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue