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 (
|
stg_core__guest_satisfaction_responses as (
|
||||||
select * from {{ ref("stg_core__guest_satisfaction_responses") }}
|
select * from {{ ref("stg_core__guest_satisfaction_responses") }}
|
||||||
),
|
),
|
||||||
stg_core__verification_request as (
|
int_core__verification_requests as (
|
||||||
select * from {{ ref("stg_core__verification_request") }}
|
select * from {{ ref("int_core__verification_requests") }}
|
||||||
),
|
),
|
||||||
stg_core__verification as (select * from {{ ref("stg_core__verification") }}),
|
stg_core__verification as (select * from {{ ref("stg_core__verification") }}),
|
||||||
stg_core__user as (select * from {{ ref("stg_core__user") }}),
|
stg_core__user as (select * from {{ ref("stg_core__user") }}),
|
||||||
|
|
@ -33,6 +33,7 @@ select
|
||||||
u.id_user as id_user_guest,
|
u.id_user as id_user_guest,
|
||||||
-- not show email if the guest is not contactable
|
-- not show email if the guest is not contactable
|
||||||
case when gss.is_contactable is true then u.email else '' end as guest_email,
|
case when gss.is_contactable is true then u.email else '' end as guest_email,
|
||||||
|
vr.verification_request_booking_source,
|
||||||
gss.experience_rating,
|
gss.experience_rating,
|
||||||
gss.guest_comments,
|
gss.guest_comments,
|
||||||
coalesce(gss.is_contactable, false) as is_contactable,
|
coalesce(gss.is_contactable, false) as is_contactable,
|
||||||
|
|
@ -49,7 +50,7 @@ select
|
||||||
coalesce(pt.has_fee_payment, false) as has_fee_payment
|
coalesce(pt.has_fee_payment, false) as has_fee_payment
|
||||||
from staging.stg_core__guest_satisfaction_responses gss
|
from staging.stg_core__guest_satisfaction_responses gss
|
||||||
left join
|
left join
|
||||||
staging.stg_core__verification_request vr
|
staging.int_core__verification_requests vr
|
||||||
on vr.id_verification_request = gss.id_verification_request
|
on vr.id_verification_request = gss.id_verification_request
|
||||||
left join
|
left join
|
||||||
staging.stg_core__verification v
|
staging.stg_core__verification v
|
||||||
|
|
|
||||||
|
|
@ -887,6 +887,21 @@ models:
|
||||||
data_type: character varying
|
data_type: character varying
|
||||||
description: Guest email
|
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
|
- name: experience_rating
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue