From 45dc52a6578905e749c7d828464779b6f671faee Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Wed, 5 Feb 2025 16:06:29 +0100 Subject: [PATCH] renamed --- .../intermediate/core/int_core__booking_details.sql | 12 ++++++------ models/intermediate/core/schema.yml | 2 +- models/reporting/core/core__booking_details.sql | 2 +- models/reporting/core/schema.yml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/models/intermediate/core/int_core__booking_details.sql b/models/intermediate/core/int_core__booking_details.sql index bae56fe..435b6ef 100644 --- a/models/intermediate/core/int_core__booking_details.sql +++ b/models/intermediate/core/int_core__booking_details.sql @@ -87,14 +87,14 @@ select then vr.verification_estimated_completed_date_utc - vr.verification_estimated_started_date_utc - end as days_complete_verification, + end as days_to_complete_verification, vr.link_used_date_utc, b.verification_request_booking_source, - pv.chose_deposit, - pv.chose_fee, - pv.chose_waiver, - pv.chose_no_cover, - p.chose_checkin_cover + coalesce(pv.chose_deposit, false) as chose_deposit, + coalesce(pv.chose_fee, false) as chose_fee, + coalesce(pv.chose_waiver, false) as chose_waiver, + coalesce(pv.chose_no_cover, false) as chose_no_cover, + coalesce(p.chose_checkin_cover, false) as chose_checkin_cover from int_core__bookings b left join int_core__accommodation a on a.id_accommodation = b.id_accommodation left join diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index c53149c..b8be2dd 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -5125,7 +5125,7 @@ models: data_type: date description: "The estimated date on which the guest finished the guest journey." - - name: days_complete_verification + - name: days_to_complete_verification data_type: numeric description: "Number of days it took to complete the verification." diff --git a/models/reporting/core/core__booking_details.sql b/models/reporting/core/core__booking_details.sql index c1a12a1..60d5f84 100644 --- a/models/reporting/core/core__booking_details.sql +++ b/models/reporting/core/core__booking_details.sql @@ -29,7 +29,7 @@ select verification_estimated_started_date_utc as verification_estimated_started_date_utc, verification_estimated_completed_date_utc as verification_estimated_completed_date_utc, - days_complete_verification as days_complete_verification, + days_to_complete_verification as days_to_complete_verification, link_used_date_utc as link_used_date_utc, verification_request_booking_source as verification_request_booking_source, chose_deposit as chose_deposit, diff --git a/models/reporting/core/schema.yml b/models/reporting/core/schema.yml index 09a1023..1bd106a 100644 --- a/models/reporting/core/schema.yml +++ b/models/reporting/core/schema.yml @@ -1527,7 +1527,7 @@ models: data_type: date description: "The estimated date on which the guest finished the guest journey." - - name: days_complete_verification + - name: days_to_complete_verification data_type: numeric description: "Number of days it took to complete the verification."