commit wip
This commit is contained in:
parent
2f484054df
commit
76a247a55f
1 changed files with 45 additions and 175 deletions
|
|
@ -2,15 +2,25 @@ version: 2
|
|||
|
||||
models:
|
||||
- name: int_resolutions__incidents
|
||||
description: ""
|
||||
description: |
|
||||
"This table contains all incidents recorded by the resolutions team in Cosmos DB.
|
||||
It includes details about the incident, the user who reported it, the associated booking,
|
||||
the accommodation, the host, and the guest. Additionally, it tracks the resolution process,
|
||||
including the compensation amount requested by the host, the proposed settlement calculated
|
||||
by the system, and the final agreed-upon settlement amount."
|
||||
columns:
|
||||
- name: id_incident
|
||||
data_type: text
|
||||
description: "Unique identifier for the incident."
|
||||
tests:
|
||||
- not_null
|
||||
- unique
|
||||
|
||||
- name: id_user
|
||||
data_type: text
|
||||
description: "Id of the user who created the incident."
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: id_verification
|
||||
data_type: text
|
||||
|
|
@ -18,7 +28,9 @@ models:
|
|||
|
||||
- name: current_status_name
|
||||
data_type: text
|
||||
description: "current status of the incident."
|
||||
description: "Current status of the incident."
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: is_submission_complete
|
||||
data_type: boolean
|
||||
|
|
@ -30,227 +42,85 @@ models:
|
|||
|
||||
- name: document_version
|
||||
data_type: text
|
||||
description: "Reported document resCentre, Api, manual form"
|
||||
description: |
|
||||
"Reported document source, such as ResCentre, API, or manual form."
|
||||
|
||||
- name: created_at_date
|
||||
data_type: timestamp without time zone
|
||||
description: "Timestamp when the incident was created."
|
||||
|
||||
- name: created_date_date
|
||||
data_type: date
|
||||
description: "Date when the incident was created."
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: updated_at_date
|
||||
data_type: timestamp without time zone
|
||||
description: "Timestamp when the incident was last updated."
|
||||
|
||||
- name: updated_date_date
|
||||
data_type: date
|
||||
description: "Date when the incident was last updated."
|
||||
|
||||
- name: first_comment_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: ""
|
||||
|
||||
- name: last_comment_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: ""
|
||||
|
||||
- name: comment_count
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: first_status_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: ""
|
||||
|
||||
- name: last_status_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: ""
|
||||
|
||||
- name: resolution_time_in_hours
|
||||
data_type: numeric
|
||||
description: ""
|
||||
description: "Time taken to resolve the incident, in hours."
|
||||
|
||||
- name: number_damaged_items
|
||||
data_type: bigint
|
||||
description: ""
|
||||
description: "Number of items reported as damaged in the incident."
|
||||
|
||||
- name: original_value_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: ""
|
||||
description: |
|
||||
"Original value of the damaged items in the transaction currency."
|
||||
|
||||
- name: asked_repair_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: ""
|
||||
description: |
|
||||
"Amount requested by the host for repair in the transaction currency."
|
||||
|
||||
- name: accepted_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: ""
|
||||
description: |
|
||||
"Final accepted settlement amount in the transaction currency."
|
||||
|
||||
- name: protection_name
|
||||
data_type: text
|
||||
description: "Protection name."
|
||||
description: "Name of the protection plan covering the booking."
|
||||
|
||||
- name: was_overriden
|
||||
data_type: boolean
|
||||
description: "Flag to indicate if the proposed settlement value from the calculator was overriden."
|
||||
description: |
|
||||
"Flag to indicate if the proposed settlement value from the
|
||||
calculator was overridden."
|
||||
|
||||
- name: waiver_or_deposit_name
|
||||
data_type: text
|
||||
description: "Waiver or deposit name."
|
||||
description: "Waiver or deposit type associated with the booking."
|
||||
|
||||
- name: guest_verification_status
|
||||
data_type: text
|
||||
description: "Guest verification status for this booking."
|
||||
|
||||
- name: lower_protection_limit_usd
|
||||
data_type: text
|
||||
description: "Lower protection limit in USD."
|
||||
|
||||
- name: upper_protection_limit_usd
|
||||
data_type: text
|
||||
description: "Upper protection limit in USD."
|
||||
|
||||
- name: calculated_payout_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Calculated payout amount in local currency."
|
||||
|
||||
- name: calculated_payout_currency
|
||||
data_type: text
|
||||
description: "Currency of the calculated payout amount."
|
||||
|
||||
- name: calculated_payout_amount_in_usd
|
||||
data_type: text
|
||||
description: "Calculated payout amount in USD."
|
||||
|
||||
- name: calculated_guest_charge_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in local currency."
|
||||
|
||||
- name: calculated_guest_charge_currency
|
||||
data_type: text
|
||||
description: "Currency of the calculated guest charge amount."
|
||||
|
||||
- name: id_user_host
|
||||
data_type: text
|
||||
description: "Unique Id that identifies the host. Can be from SH or can be external from the client."
|
||||
|
||||
- name: claims_count
|
||||
data_type: bigint
|
||||
description: ""
|
||||
|
||||
- name: host_account_name
|
||||
data_type: text
|
||||
description: "Name of the host account."
|
||||
|
||||
- name: host_email
|
||||
data_type: text
|
||||
description: "Email of the host."
|
||||
|
||||
- name: host_last_name
|
||||
data_type: text
|
||||
description: "Last name of the host."
|
||||
|
||||
- name: host_first_name
|
||||
data_type: text
|
||||
description: "First name of the host."
|
||||
|
||||
- name: host_phone_code
|
||||
data_type: text
|
||||
description: "Phone code of the host."
|
||||
|
||||
- name: host_phone_number
|
||||
data_type: text
|
||||
description: "Phone number of the host."
|
||||
description: |
|
||||
"Unique Id that identifies the host. Can be from SH or can
|
||||
be external from the client."
|
||||
data_tests:
|
||||
- not_null
|
||||
- relationships:
|
||||
to: ref('stg_core__user')
|
||||
field: id_user
|
||||
where: "document_version <> 'OldClaimToIncidentModel'"
|
||||
|
||||
- name: id_user_guest
|
||||
data_type: text
|
||||
description: "Superhog code that uniquely identifies a single guest."
|
||||
|
||||
- name: guest_email
|
||||
data_type: text
|
||||
description: "Email of the guest."
|
||||
|
||||
- name: guest_last_name
|
||||
data_type: text
|
||||
description: "Last name of the guest."
|
||||
|
||||
- name: guest_first_name
|
||||
data_type: text
|
||||
description: "First name of the guest."
|
||||
|
||||
- name: guest_phone_code
|
||||
data_type: text
|
||||
description: "Phone code of the guest."
|
||||
|
||||
- name: guest_phone_number
|
||||
data_type: text
|
||||
description: "Phone number of the guest."
|
||||
|
||||
- name: is_guest_deposit_retained
|
||||
data_type: boolean
|
||||
description: "In case a deposit has been collected from the guest, whether it has been retained or not."
|
||||
|
||||
- name: is_guest_deposit_collected
|
||||
data_type: boolean
|
||||
description: "If the host has collected a deposit from the guest."
|
||||
|
||||
- name: deposit_retained_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Amount of the deposit retained in local currency."
|
||||
|
||||
- name: deposit_retained_currency
|
||||
data_type: text
|
||||
description: "Currency of the deposit retained."
|
||||
|
||||
- name: has_guest_contributed_to_cost
|
||||
data_type: boolean
|
||||
description: "If the guest has agreed to contribute to the cost when talking to the host"
|
||||
|
||||
- name: has_host_taken_preventative_steps
|
||||
data_type: boolean
|
||||
description: "If the host has taken any action to prevent the damage or further damage once identified"
|
||||
|
||||
- name: guest_contribution_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Amount of the guest contribution, in case they did, in local currency."
|
||||
|
||||
- name: guest_contribution_currency
|
||||
data_type: text
|
||||
description: "Currency of the guest contribution."
|
||||
|
||||
- name: guest_contacted_about_damage
|
||||
data_type: boolean
|
||||
description: "If the host has contacted the guest about the damage caused"
|
||||
|
||||
- name: id_accommodation
|
||||
data_type: text
|
||||
description: "Superhog code that uniquely identifies a single accommodation."
|
||||
|
||||
- name: accommodation_name
|
||||
data_type: text
|
||||
description: "Accommodation name."
|
||||
|
||||
- name: check_in_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: "Timestamp of the check-in date in UTC of the booking."
|
||||
|
||||
- name: check_in_date_utc
|
||||
data_type: date
|
||||
description: "Date of the check-in date in UTC of the booking."
|
||||
|
||||
- name: check_out_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: "Timestamp of the check-out date in UTC of the booking."
|
||||
|
||||
- name: check_out_date_utc
|
||||
data_type: date
|
||||
description: "Date of the check-out date in UTC of the booking."
|
||||
|
||||
- name: id_booking
|
||||
data_type: text
|
||||
description: "Superhog unique booking ID"
|
||||
description: "Superhog unique booking ID."
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: booking_status
|
||||
data_type: text
|
||||
|
|
@ -258,8 +128,8 @@ models:
|
|||
|
||||
- name: id_reservation
|
||||
data_type: text
|
||||
description: "External unique ID"
|
||||
description: "External unique ID for the reservation."
|
||||
|
||||
- name: booking_protection
|
||||
data_type: text
|
||||
description: ""
|
||||
description: "Details on the booking protection applied."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue