fix schemas in intermediate
This commit is contained in:
parent
aabb45dbd5
commit
05d5cc6d10
4 changed files with 327 additions and 387 deletions
|
|
@ -177,8 +177,7 @@ models:
|
|||
- unique
|
||||
|
||||
- name: int_core__vr_check_in_cover
|
||||
description:
|
||||
"This tables holds information on verification requests
|
||||
description: "This tables holds information on verification requests
|
||||
with Ckeck-in Hero available for the guests."
|
||||
columns:
|
||||
- name: id_verification_request
|
||||
|
|
@ -224,8 +223,7 @@ models:
|
|||
|
||||
- name: is_verification_request_complete
|
||||
data_type: boolean
|
||||
description:
|
||||
"True if the verification request is considered
|
||||
description: "True if the verification request is considered
|
||||
complete, AKA the guest has finished the full guest journey."
|
||||
|
||||
- name: is_past_check_in
|
||||
|
|
@ -238,13 +236,11 @@ models:
|
|||
|
||||
- name: cover_was_purchased
|
||||
data_type: boolean
|
||||
description:
|
||||
"Boolean to indicate if the cover was purchased by the guest or not."
|
||||
description: "Boolean to indicate if the cover was purchased by the guest or not."
|
||||
|
||||
- name: address_validation_passed
|
||||
data_type: boolean
|
||||
description:
|
||||
"Boolean to indicate if the validation was approved or not.
|
||||
description: "Boolean to indicate if the validation was approved or not.
|
||||
In case there was a problem with the validation it will be Null"
|
||||
|
||||
- name: address_validation_notes
|
||||
|
|
@ -411,8 +407,7 @@ models:
|
|||
|
||||
- name: currency
|
||||
data_type: text
|
||||
description:
|
||||
"The currency in which the transaction actually happened."
|
||||
description: "The currency in which the transaction actually happened."
|
||||
|
||||
- name: amount_in_gbp
|
||||
data_type: numeric
|
||||
|
|
@ -422,8 +417,7 @@ models:
|
|||
|
||||
- name: payment_status
|
||||
data_type: character varying
|
||||
description:
|
||||
"The status of the payment. It can be one of: Paid, Refunded, Refund Failed."
|
||||
description: "The status of the payment. It can be one of: Paid, Refunded, Refund Failed."
|
||||
|
||||
- name: payment_paid_date_utc
|
||||
data_type: date
|
||||
|
|
@ -539,7 +533,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -575,7 +569,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -611,7 +605,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -647,7 +641,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -683,7 +677,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -835,7 +829,7 @@ models:
|
|||
- name: id_verification_to_payment
|
||||
data_type: bigint
|
||||
description: Unique ID for the relation between the payment verification
|
||||
and the payment at hand.
|
||||
and the payment at hand.
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
|
@ -1214,12 +1208,12 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- '0'
|
||||
- '01-05'
|
||||
- '06-20'
|
||||
- '21-60'
|
||||
- '61+'
|
||||
values:
|
||||
- "0"
|
||||
- "01-05"
|
||||
- "06-20"
|
||||
- "21-60"
|
||||
- "61+"
|
||||
|
||||
- name: accommodations_booked_in_12_months
|
||||
data_type: integer
|
||||
|
|
@ -1364,8 +1358,7 @@ models:
|
|||
|
||||
- name: check_in_cover_added_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
Date the user first included check-in cover
|
||||
description: Date the user first included check-in cover
|
||||
|
||||
- name: billing_town
|
||||
data_type: character varying
|
||||
|
|
@ -1399,28 +1392,25 @@ models:
|
|||
|
||||
- name: verification_request_booking_source
|
||||
data_type: text
|
||||
description:
|
||||
Source type of host of the booking, this could be either;
|
||||
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'
|
||||
values:
|
||||
- "PMS"
|
||||
- "OSL"
|
||||
- "API/MANUAL"
|
||||
|
||||
- name: experience_rating
|
||||
data_type: bigint
|
||||
description:
|
||||
Guest rating of their experience with Superhog from 1 to 5
|
||||
description: Guest rating of their experience with Superhog from 1 to 5
|
||||
|
||||
- name: guest_comments
|
||||
data_type: character varying
|
||||
description:
|
||||
Guest comments on their experience with Superhog
|
||||
description: Guest comments on their experience with Superhog
|
||||
|
||||
- name: is_contactable
|
||||
data_type: boolean
|
||||
|
|
@ -1429,13 +1419,11 @@ models:
|
|||
|
||||
- name: created_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
Date and time of response creation
|
||||
description: Date and time of response creation
|
||||
|
||||
- name: updated_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
Date and time of last update of response
|
||||
description: Date and time of last update of response
|
||||
|
||||
- name: selected_payment_option
|
||||
data_type: character varying
|
||||
|
|
@ -1469,10 +1457,8 @@ models:
|
|||
description: |
|
||||
True if guest payed the fee
|
||||
|
||||
|
||||
- name: int_core__verification_request_booking_source
|
||||
description:
|
||||
This model contains information on verification requests
|
||||
description: This model contains information on verification requests
|
||||
and the category type of host that manages the associated
|
||||
booking.
|
||||
For PMS (Property Manager System) we use the id_integration
|
||||
|
|
@ -1488,8 +1474,7 @@ models:
|
|||
columns:
|
||||
- name: id_verification_request
|
||||
data_type: bigint
|
||||
description:
|
||||
Id value for the verification request, there can be more
|
||||
description: Id value for the verification request, there can be more
|
||||
than 1 record for each verification request since they can
|
||||
be associated to more than 1 booking
|
||||
tests:
|
||||
|
|
@ -1498,28 +1483,25 @@ models:
|
|||
|
||||
- name: created_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
Date and time of creation of the verification request
|
||||
description: Date and time of creation of the verification request
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
Date of creation of the verification request
|
||||
description: Date of creation of the verification request
|
||||
|
||||
- name: verification_request_booking_source
|
||||
data_type: text
|
||||
description:
|
||||
Source type of host of the booking, this could be either;
|
||||
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'
|
||||
values:
|
||||
- "PMS"
|
||||
- "OSL"
|
||||
- "API/MANUAL"
|
||||
|
||||
- name: int_core__verification_requests
|
||||
description:
|
||||
|
|
@ -1607,43 +1589,35 @@ models:
|
|||
|
||||
- name: verification_estimated_started_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The estimated date and time at which the guest started the guest journey.
|
||||
description: The estimated date and time at which the guest started the guest journey.
|
||||
|
||||
- name: verification_estimated_started_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The estimated date on which the guest started the guest journey.
|
||||
description: The estimated date on which the guest started the guest journey.
|
||||
|
||||
- name: verification_estimated_completed_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The estimated date and time at which the guest finished the guest journey.
|
||||
description: The estimated date and time at which the guest finished the guest journey.
|
||||
|
||||
- name: verification_estimated_completed_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The estimated date on which the guest finished the guest journey.
|
||||
description: The estimated date on which the guest finished the guest journey.
|
||||
|
||||
- name: link_used_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest used the link for the verification.
|
||||
description: The date and time at which the guest used the link for the verification.
|
||||
|
||||
- name: link_used_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest used the link for the verification.
|
||||
description: The date on which the guest used the link for the verification.
|
||||
|
||||
- name: expire_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the link for the verification expires.
|
||||
description: The date and time at which the link for the verification expires.
|
||||
|
||||
- name: expire_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the link for the verification expires.
|
||||
description: The date on which the link for the verification expires.
|
||||
|
||||
- name: is_deleted
|
||||
data_type: boolean
|
||||
|
|
@ -1661,18 +1635,17 @@ models:
|
|||
|
||||
- name: verification_request_booking_source
|
||||
data_type: text
|
||||
description:
|
||||
Source type of host of the booking, this could be either;
|
||||
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'
|
||||
values:
|
||||
- "PMS"
|
||||
- "OSL"
|
||||
- "API/MANUAL"
|
||||
|
||||
- name: success_message
|
||||
data_type: character varying
|
||||
|
|
@ -1684,8 +1657,7 @@ models:
|
|||
|
||||
- name: rejection_reason
|
||||
data_type: character varying
|
||||
description:
|
||||
Reason as to why the guest was rejected.
|
||||
description: Reason as to why the guest was rejected.
|
||||
|
||||
- name: has_switched_to_mobile
|
||||
data_type: boolean
|
||||
|
|
@ -1707,23 +1679,19 @@ models:
|
|||
|
||||
- name: created_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the verification process was created.
|
||||
description: The date and time at which the verification process was created.
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the verification process was created.
|
||||
description: The date on which the verification process was created.
|
||||
|
||||
- name: updated_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the last update on the entry happened.
|
||||
description: The date and time at which the last update on the entry happened.
|
||||
|
||||
- name: updated_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the last update on the entry happened.
|
||||
description: The date on which the last update on the entry happened.
|
||||
|
||||
- name: dwh_extracted_at_utc
|
||||
data_type: timestamp with time zone
|
||||
|
|
@ -1765,18 +1733,17 @@ models:
|
|||
|
||||
- name: verification_request_booking_source
|
||||
data_type: text
|
||||
description:
|
||||
Source type of host of the booking, this could be either;
|
||||
description: Source type of host of the booking, this could be either;
|
||||
- PMS
|
||||
- OSL
|
||||
- API/MANUAL
|
||||
- null (bookings without verification request)
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'PMS'
|
||||
- 'OSL'
|
||||
- 'API/MANUAL'
|
||||
values:
|
||||
- "PMS"
|
||||
- "OSL"
|
||||
- "API/MANUAL"
|
||||
|
||||
- name: id_staging_host_booking
|
||||
data_type: bigint
|
||||
|
|
@ -1784,8 +1751,7 @@ models:
|
|||
|
||||
- name: is_duplicate_booking
|
||||
data_type: boolean
|
||||
description:
|
||||
A flag that identifies whether the booking is a duplicate.
|
||||
description: A flag that identifies whether the booking is a duplicate.
|
||||
|
||||
A booking is considered a duplicate if there's an older booking with the same user,
|
||||
accomodation and check-in date. If there are two or more bookings with the same user,
|
||||
|
|
@ -1796,8 +1762,7 @@ models:
|
|||
|
||||
- name: is_duplicating_booking_with_id
|
||||
data_type: bigint
|
||||
description:
|
||||
"If is_duplicate_booking is True then gives id_booking"
|
||||
description: "If is_duplicate_booking is True then gives id_booking"
|
||||
|
||||
- name: booking_state
|
||||
data_type: character varying
|
||||
|
|
@ -1892,8 +1857,7 @@ models:
|
|||
description: ""
|
||||
|
||||
- name: int_core__check_in_cover_listings
|
||||
description:
|
||||
This model contains information about hosts and their listings
|
||||
description: This model contains information about hosts and their listings
|
||||
that offer check in cover.
|
||||
It has basic information on the users and listings like country,
|
||||
town, address and if they are active or not.
|
||||
|
|
@ -1941,8 +1905,7 @@ models:
|
|||
|
||||
- name: check_in_cover_added_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
Date the user first included check-in cover
|
||||
description: Date the user first included check-in cover
|
||||
|
||||
- name: billing_town
|
||||
data_type: character varying
|
||||
|
|
@ -1985,13 +1948,11 @@ models:
|
|||
|
||||
- name: check_in_cover_purchased
|
||||
data_type: bigint
|
||||
description:
|
||||
"Count of how many Check-in covers have been
|
||||
description: "Count of how many Check-in covers have been
|
||||
purchased for this accommodation"
|
||||
|
||||
- name: int_core__host_booking_fees
|
||||
description:
|
||||
Bookings that have been processed by the Superhog backend.
|
||||
description: Bookings that have been processed by the Superhog backend.
|
||||
Each record matches one booking and has information on host
|
||||
booking fees, when they were charged and the currency used by
|
||||
the host.
|
||||
|
|
@ -2031,18 +1992,18 @@ models:
|
|||
- IncompleteInformation"
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'Approved'
|
||||
- 'NotApproved'
|
||||
- 'Cancelled'
|
||||
- 'Rejected'
|
||||
- 'NoFlags'
|
||||
- 'Flagged'
|
||||
- 'IncompleteInformation'
|
||||
values:
|
||||
- "Approved"
|
||||
- "NotApproved"
|
||||
- "Cancelled"
|
||||
- "Rejected"
|
||||
- "NoFlags"
|
||||
- "Flagged"
|
||||
- "IncompleteInformation"
|
||||
|
||||
- name: is_duplicate_booking
|
||||
data_type: boolean
|
||||
description: |
|
||||
description: |
|
||||
A flag that identifies whether the booking is a duplicate.
|
||||
A booking is considered a duplicate if there's an older booking with the same user,
|
||||
accomodation and check-in date. If there are two or more bookings with the same user,
|
||||
|
|
@ -2114,7 +2075,7 @@ models:
|
|||
description: The name of the role a user has.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- Host
|
||||
- Platform
|
||||
- EDeposit
|
||||
|
|
@ -2125,24 +2086,24 @@ models:
|
|||
- PropertyVerificationManager
|
||||
|
||||
- name: int_core__user_host
|
||||
description: |
|
||||
This table provides information of the users that act as Hosts.
|
||||
A Host needs to be understood in the broad sense of the term. Here host means any
|
||||
user that acts as a "B2B" client.
|
||||
The categorisation as a Host is based on two possibilities: the role of the user or if
|
||||
the user comes from Know Your Guest (KYG) within the claim table. Any user that has
|
||||
any of the following roles will be considered as a Host in this table:
|
||||
- Host
|
||||
- Platform
|
||||
- EDeposit
|
||||
- KnowYourGuest
|
||||
- ScreeningAPI
|
||||
- PropertyVerificationManager
|
||||
Additionally, any user that has any of these claim types will be considered as a Host:
|
||||
- KygRegistrationSignUpType
|
||||
- KygRegistrationIntegrationTypeName
|
||||
- KygMvp
|
||||
Lastly, in case a user satisfies multiple conditions, it will only appear once in this table.
|
||||
description: |
|
||||
This table provides information of the users that act as Hosts.
|
||||
A Host needs to be understood in the broad sense of the term. Here host means any
|
||||
user that acts as a "B2B" client.
|
||||
The categorisation as a Host is based on two possibilities: the role of the user or if
|
||||
the user comes from Know Your Guest (KYG) within the claim table. Any user that has
|
||||
any of the following roles will be considered as a Host in this table:
|
||||
- Host
|
||||
- Platform
|
||||
- EDeposit
|
||||
- KnowYourGuest
|
||||
- ScreeningAPI
|
||||
- PropertyVerificationManager
|
||||
Additionally, any user that has any of these claim types will be considered as a Host:
|
||||
- KygRegistrationSignUpType
|
||||
- KygRegistrationIntegrationTypeName
|
||||
- KygMvp
|
||||
Lastly, in case a user satisfies multiple conditions, it will only appear once in this table.
|
||||
|
||||
columns:
|
||||
- name: id_user_host
|
||||
|
|
@ -2260,12 +2221,12 @@ models:
|
|||
this date.
|
||||
|
||||
- name: int_core__user_migration
|
||||
description: |
|
||||
This table provides information of the host users that have been migrated.
|
||||
At this stage, the main objective is to account for the user migration within
|
||||
the scope of New Dashboard migration.
|
||||
It uses the migration configuration settled in the macro:
|
||||
- user_migration_configuration -> get_new_dash_migration_phases_config
|
||||
description: |
|
||||
This table provides information of the host users that have been migrated.
|
||||
At this stage, the main objective is to account for the user migration within
|
||||
the scope of New Dashboard migration.
|
||||
It uses the migration configuration settled in the macro:
|
||||
- user_migration_configuration -> get_new_dash_migration_phases_config
|
||||
|
||||
columns:
|
||||
- name: id_user_host
|
||||
|
|
@ -2723,7 +2684,6 @@ models:
|
|||
description: |
|
||||
Timestamp of when this row was ingested from the Backend to the DWH.
|
||||
|
||||
|
||||
- name: int_core__new_dash_user_overview
|
||||
description: |
|
||||
This model allows for minimum tracking of how the new dash initative is
|
||||
|
|
@ -2875,7 +2835,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: id_user_host
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -2884,7 +2843,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: price_plan_charged_by_type
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -2893,7 +2851,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: price_plan_start_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
|
|
@ -2902,7 +2859,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: price_plan_end_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
|
|
@ -2912,7 +2868,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: price_plan_created_at_utc
|
||||
data_type: timestamp
|
||||
description: |
|
||||
|
|
@ -2921,7 +2876,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: active_in_month_start_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
|
|
@ -2933,7 +2887,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: active_in_month_end_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
|
|
@ -2945,7 +2898,6 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
columns:
|
||||
- name: price_plans_active_in_month
|
||||
data_type: integer
|
||||
description: |
|
||||
|
|
@ -2959,20 +2911,20 @@ models:
|
|||
- not_null
|
||||
|
||||
- name: int_core__deal
|
||||
description: |
|
||||
This table provides information about the unique entity that identifies a
|
||||
client, which is a Deal.
|
||||
A Deal is a common way to match information between Core, Xero and Hubspot
|
||||
data sources. It's different from the typical User Host in the sense that
|
||||
a Deal can have multiple User accounts (usually referred to as Platform
|
||||
accounts). This is because in the past, different Host configurations could
|
||||
only be done if multiple users were created.
|
||||
It can happen that a Deal has 1 or multiple hosts, as mentioned above. At
|
||||
the same time, not all users that act as hosts have a deal associated. One
|
||||
example is Know Your Guest (KYG) Lite accounts. However, there's also historical
|
||||
cases that for whatever reason there's no Deal associated.
|
||||
For this model, the billing country and the deal name are estimated based on
|
||||
the information available in int_core__unified_user.
|
||||
description: |
|
||||
This table provides information about the unique entity that identifies a
|
||||
client, which is a Deal.
|
||||
A Deal is a common way to match information between Core, Xero and Hubspot
|
||||
data sources. It's different from the typical User Host in the sense that
|
||||
a Deal can have multiple User accounts (usually referred to as Platform
|
||||
accounts). This is because in the past, different Host configurations could
|
||||
only be done if multiple users were created.
|
||||
It can happen that a Deal has 1 or multiple hosts, as mentioned above. At
|
||||
the same time, not all users that act as hosts have a deal associated. One
|
||||
example is Know Your Guest (KYG) Lite accounts. However, there's also historical
|
||||
cases that for whatever reason there's no Deal associated.
|
||||
For this model, the billing country and the deal name are estimated based on
|
||||
the information available in int_core__unified_user.
|
||||
|
||||
columns:
|
||||
- name: id_deal
|
||||
|
|
@ -164,7 +164,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -386,7 +386,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
@ -420,8 +420,8 @@ models:
|
|||
data_type: text
|
||||
description: allows for grouping and formatting for displaying purposes.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values: ['integer', 'percentage', 'currency_gbp']
|
||||
- accepted_values:
|
||||
values: ["integer", "percentage", "currency_gbp"]
|
||||
|
||||
- name: value
|
||||
data_type: numeric
|
||||
|
|
@ -448,7 +448,6 @@ models:
|
|||
positive impact for Superhog, otherwise is equal to relative_increment.
|
||||
This value is specially created for formatting in PBI
|
||||
|
||||
|
||||
- name: int_monthly_aggregated_metrics_history_by_deal
|
||||
description: |
|
||||
This model aggregates the monthly historic information regarding the different metrics computed
|
||||
|
|
@ -574,7 +573,7 @@ models:
|
|||
description: The dimension or granularity of the metrics.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- global
|
||||
- by_number_of_listings
|
||||
- by_billing_country
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ models:
|
|||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description:
|
||||
"unique Superhog generated id for a booking.
|
||||
description: "unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
it's up to the user to no generate duplicate verifications"
|
||||
|
||||
|
|
@ -38,21 +37,19 @@ models:
|
|||
|
||||
- name: version
|
||||
data_type: text
|
||||
description:
|
||||
"value to identify if it is Guesty (V1) or E-deposit (V2)"
|
||||
description: "value to identify if it is Guesty (V1) or E-deposit (V2)"
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- V1
|
||||
- V2
|
||||
|
||||
- name: verification_source
|
||||
data_type: text
|
||||
description:
|
||||
"source of the verification for the booking"
|
||||
description: "source of the verification for the booking"
|
||||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
values:
|
||||
- Guesty
|
||||
- Edeposit
|
||||
|
||||
|
|
@ -197,8 +194,7 @@ models:
|
|||
|
||||
- name: athena_creation_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
"Athena date referring to when the booking was created.
|
||||
description: "Athena date referring to when the booking was created.
|
||||
It's provided by Guesty, but is not mandatory.
|
||||
In case of doubt use created_at_utc or created_date_utc fields"
|
||||
|
||||
|
|
@ -220,8 +216,7 @@ models:
|
|||
columns:
|
||||
- name: id_verification
|
||||
data_type: text
|
||||
description:
|
||||
"Unique Superhog generated id for this verification.
|
||||
description: "Unique Superhog generated id for this verification.
|
||||
Note that there are some users that have a different id in Cosmos.
|
||||
For those users we created a mapping to relate this ids."
|
||||
tests:
|
||||
|
|
@ -230,8 +225,7 @@ models:
|
|||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description:
|
||||
"unique Superhog generated id for a booking.
|
||||
description: "unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
it's up to the user to no generate duplicate verifications"
|
||||
tests:
|
||||
|
|
@ -310,8 +304,7 @@ models:
|
|||
- not_null
|
||||
|
||||
- name: int_edeposit__guesty_verifications
|
||||
description:
|
||||
"This table shows all verification for Guesty.
|
||||
description: "This table shows all verification for Guesty.
|
||||
The charged fee is 2GBP per booked night if booking is approved
|
||||
(considered 1 night when the checkin and checkout are on the same day),
|
||||
to be charged on checkout."
|
||||
|
|
@ -325,8 +318,7 @@ models:
|
|||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description:
|
||||
"unique Superhog generated id for a booking.
|
||||
description: "unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
it's up to the user to not generate or cancel duplicate verifications"
|
||||
tests:
|
||||
|
|
@ -344,8 +336,7 @@ models:
|
|||
|
||||
- name: ok_status_fee_in_gbp
|
||||
data_type: integer
|
||||
description:
|
||||
"total fee charged on checkout, this is only charged for approved verifications"
|
||||
description: "total fee charged on checkout, this is only charged for approved verifications"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
|
|
@ -355,14 +346,12 @@ models:
|
|||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
"Date of creation of the verification in the system"
|
||||
description: "Date of creation of the verification in the system"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: checkout_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
"Date of checkout for the booking"
|
||||
description: "Date of checkout for the booking"
|
||||
tests:
|
||||
- not_null
|
||||
Loading…
Add table
Add a link
Reference in a new issue