reporting schema
This commit is contained in:
parent
05d5cc6d10
commit
df16cdb00c
4 changed files with 109 additions and 144 deletions
|
|
@ -246,8 +246,7 @@ models:
|
|||
|
||||
- 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
|
||||
|
|
@ -470,43 +469,35 @@ models:
|
|||
|
||||
- name: verification_start_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest started the guest journey.
|
||||
description: The date and time at which the guest started the guest journey.
|
||||
|
||||
- name: verification_start_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest started the guest journey.
|
||||
description: The date on which the guest started the guest journey.
|
||||
|
||||
- name: verification_end_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date and time at which the guest finished the guest journey.
|
||||
description: The date and time at which the guest finished the guest journey.
|
||||
|
||||
- name: verification_end_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date on which the guest finished the guest journey.
|
||||
description: The 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
|
||||
|
|
@ -532,8 +523,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
|
||||
|
|
@ -555,23 +545,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
|
||||
|
|
@ -632,13 +618,11 @@ models:
|
|||
|
||||
- name: joined_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date time when the user created it's account in Superhog.
|
||||
description: The date time when the user created it's account in Superhog.
|
||||
|
||||
- name: joined_date_utc
|
||||
data_type: date
|
||||
description:
|
||||
The date when the user created it's account in Superhog.
|
||||
description: The date when the user created it's account in Superhog.
|
||||
|
||||
- name: user_name
|
||||
data_type: character varying
|
||||
|
|
@ -694,13 +678,11 @@ models:
|
|||
|
||||
- name: created_date_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date time when the user data was created.
|
||||
description: The date time when the user data was created.
|
||||
|
||||
- name: updated_date_utc
|
||||
data_type: timestamp without time zone
|
||||
description:
|
||||
The date when the user data was created.
|
||||
description: The date when the user data was created.
|
||||
|
||||
- name: verified_at_utc
|
||||
data_type: timestamp without time zone
|
||||
|
|
@ -783,8 +765,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
|
||||
|
|
@ -818,8 +799,7 @@ 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
|
||||
|
|
@ -827,19 +807,17 @@ models:
|
|||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'PMS'
|
||||
- 'OSL'
|
||||
- 'API/MANUAL'
|
||||
- "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
|
||||
|
|
@ -848,13 +826,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
|
||||
|
|
@ -889,8 +865,7 @@ models:
|
|||
True if guest payed the fee
|
||||
|
||||
- name: 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.
|
||||
|
|
@ -938,8 +913,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
|
||||
|
|
@ -982,13 +956,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: 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.
|
||||
|
|
@ -1029,13 +1001,13 @@ models:
|
|||
tests:
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'Approved'
|
||||
- 'NotApproved'
|
||||
- 'Cancelled'
|
||||
- 'Rejected'
|
||||
- 'NoFlags'
|
||||
- 'Flagged'
|
||||
- 'IncompleteInformation'
|
||||
- "Approved"
|
||||
- "NotApproved"
|
||||
- "Cancelled"
|
||||
- "Rejected"
|
||||
- "NoFlags"
|
||||
- "Flagged"
|
||||
- "IncompleteInformation"
|
||||
|
||||
- name: is_duplicate_booking
|
||||
data_type: boolean
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
version: 2
|
||||
|
||||
models:
|
||||
|
||||
- name: edeposit__verification_fees
|
||||
description:
|
||||
"This table shows all fee charges per verification for E-deposit.
|
||||
|
|
@ -19,8 +18,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:
|
||||
|
|
@ -99,8 +97,7 @@ models:
|
|||
- not_null
|
||||
|
||||
- name: 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."
|
||||
|
|
@ -114,8 +111,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:
|
||||
|
|
@ -133,8 +129,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:
|
||||
|
|
@ -144,14 +139,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
|
||||
|
|
@ -405,7 +405,7 @@ models:
|
|||
description: Allows for grouping and formatting for displaying purposes.
|
||||
tests:
|
||||
- accepted_values:
|
||||
values: ['integer', 'percentage', 'currency_gbp']
|
||||
values: ["integer", "percentage", "currency_gbp"]
|
||||
|
||||
- name: value
|
||||
data_type: numeric
|
||||
|
|
@ -1172,8 +1172,8 @@ models:
|
|||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- 'invoice'
|
||||
- 'credit note'
|
||||
- "invoice"
|
||||
- "credit note"
|
||||
|
||||
- name: item_code
|
||||
data_type: text
|
||||
Loading…
Add table
Add a link
Reference in a new issue