new booking fields
This commit is contained in:
parent
6fce8c0ec6
commit
a94fb760e5
4 changed files with 28 additions and 0 deletions
|
|
@ -6,6 +6,9 @@ with
|
|||
int_core__unified_user as (select * from {{ ref("int_core__unified_user") }}),
|
||||
int_core__bookings as (select * from {{ ref("int_core__bookings") }}),
|
||||
int_core__accommodation as (select * from {{ ref("int_core__accommodation") }}),
|
||||
int_core__verification_requests as (
|
||||
select * from {{ ref("int_core__verification_requests") }}
|
||||
),
|
||||
int_daily_currency_exchange_rates as (
|
||||
select * from {{ ref("int_daily_currency_exchange_rates") }}
|
||||
)
|
||||
|
|
@ -39,6 +42,8 @@ select
|
|||
vp.currency,
|
||||
der.rate as exchange_rate_to_gbp,
|
||||
b.id_booking,
|
||||
b.booking_state,
|
||||
vr.is_verification_request_complete,
|
||||
uh.id_user_host,
|
||||
uh.id_deal,
|
||||
uh.first_name as host_first_name,
|
||||
|
|
@ -65,6 +70,9 @@ left join int_core__user_host uh on vp.id_user_host = uh.id_user_host
|
|||
left join int_core__bookings b on vp.id_verification_request = b.id_verification_request
|
||||
left join int_core__unified_user uu on uu.id_user = b.id_user_guest
|
||||
left join int_core__accommodation a on b.id_accommodation = a.id_accommodation
|
||||
left join
|
||||
int_core__verification_requests vr
|
||||
on vp.id_verification_request = vr.id_verification_request
|
||||
left join
|
||||
int_daily_currency_exchange_rates der
|
||||
on vp.payment_paid_date_utc = der.rate_date_utc
|
||||
|
|
|
|||
|
|
@ -5585,6 +5585,15 @@ models:
|
|||
description: The unique, Superhog generated id for this booking.
|
||||
Can be null for verification request not related to a booking.
|
||||
|
||||
- name: booking_state
|
||||
data_type: character varying
|
||||
description: "State in which the booking is"
|
||||
|
||||
- name: is_verification_request_complete
|
||||
data_type: boolean
|
||||
description: "True if the verification request is considered
|
||||
complete, AKA the guest has finished the full guest journey."
|
||||
|
||||
- name: id_user_host
|
||||
data_type: character varying
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ select
|
|||
currency as currency,
|
||||
exchange_rate_to_gbp as exchange_rate_to_gbp,
|
||||
id_booking as id_booking,
|
||||
booking_state as booking_state,
|
||||
is_verification_request_complete as is_verification_request_complete,
|
||||
id_user_host as id_user_host,
|
||||
id_deal as id_deal,
|
||||
host_first_name as host_first_name,
|
||||
|
|
|
|||
|
|
@ -1846,6 +1846,15 @@ models:
|
|||
description: The unique, Superhog generated id for this booking.
|
||||
Can be null for verification request not related to a booking.
|
||||
|
||||
- name: booking_state
|
||||
data_type: character varying
|
||||
description: "State in which the booking is"
|
||||
|
||||
- name: is_verification_request_complete
|
||||
data_type: boolean
|
||||
description: "True if the verification request is considered
|
||||
complete, AKA the guest has finished the full guest journey."
|
||||
|
||||
- name: id_user_host
|
||||
data_type: character varying
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue