reporting schema
This commit is contained in:
parent
05d5cc6d10
commit
df16cdb00c
4 changed files with 109 additions and 144 deletions
|
|
@ -1,9 +1,8 @@
|
|||
version: 2
|
||||
|
||||
models:
|
||||
|
||||
- name: edeposit__verification_fees
|
||||
description:
|
||||
description:
|
||||
"This table shows all fee charges per verification for E-deposit.
|
||||
Cancellation fee is charged when the monthly rate of cancelled bookings over
|
||||
total booking of the partner surpasses the threshold (currently set at 5%).
|
||||
|
|
@ -19,9 +18,8 @@ models:
|
|||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description:
|
||||
"unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
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:
|
||||
- not_null
|
||||
|
|
@ -70,7 +68,7 @@ models:
|
|||
|
||||
- name: cancelled_fee_in_txn_currency
|
||||
data_type: numeric
|
||||
description: "fee charged in used currency for cancelled verifications"
|
||||
description: "fee charged in used currency for cancelled verifications"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
|
|
@ -79,7 +77,7 @@ models:
|
|||
|
||||
- name: cancelled_fee_in_gbp
|
||||
data_type: numeric
|
||||
description: "fee charged in gbp for cancelled verifications"
|
||||
description: "fee charged in gbp for cancelled verifications"
|
||||
tests:
|
||||
- not_null
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
|
|
@ -88,21 +86,20 @@ models:
|
|||
|
||||
- name: checkout_date_utc
|
||||
data_type: date
|
||||
description: "Date of checkout for the booking"
|
||||
description: "Date of checkout for the booking"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- 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: 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),
|
||||
(considered 1 night when the checkin and checkout are on the same day),
|
||||
to be charged on checkout."
|
||||
columns:
|
||||
- name: id_verification
|
||||
|
|
@ -114,9 +111,8 @@ models:
|
|||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description:
|
||||
"unique Superhog generated id for a booking.
|
||||
note that this could be duplicated and both will be charged,
|
||||
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:
|
||||
- not_null
|
||||
|
|
@ -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
|
||||
- not_null
|
||||
Loading…
Add table
Add a link
Reference in a new issue