updated schema

This commit is contained in:
Joaquin Ossa 2025-02-24 16:39:37 +01:00
parent 68bddf2b7d
commit 335fccd57e

View file

@ -43,15 +43,13 @@ models:
data_type: timestamp
description: "Timestamp when the incident was created."
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- not_null
- name: created_date_utc
data_type: date
description: "Date when the incident was created."
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- not_null
- name: updated_at_utc
data_type: timestamp
@ -88,7 +86,6 @@ models:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
strictly: true
where: "document_version <> 'OldClaimToIncidentModel'"
- name: number_damaged_items
data_type: bigint
@ -195,7 +192,6 @@ models:
- relationships:
to: ref('stg_core__user')
field: id_user
where: "document_version <> 'OldClaimToIncidentModel'"
- name: host_account_name
data_type: text
@ -225,12 +221,9 @@ models:
data_type: text
description: "Superhog code that uniquely identifies a single guest."
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- relationships:
to: ref('stg_core__user')
field: id_user
where: "document_version <> 'OldClaimToIncidentModel'"
- name: guest_email
data_type: text
@ -274,7 +267,7 @@ models:
description: "Currency of the deposit retained."
data_tests:
- not_null:
where: "deposit_retained_amount_in_txn_currency > 0 and document_version <> 'OldClaimToIncidentModel'"
where: "deposit_retained_amount_in_txn_currency > 0"
- name: has_guest_contributed_to_cost
data_type: boolean
@ -298,7 +291,7 @@ models:
description: "Currency of the guest contribution."
data_tests:
- not_null:
where: "guest_contribution_amount_in_txn_currency > 0 and document_version <> 'OldClaimToIncidentModel'"
where: "guest_contribution_amount_in_txn_currency > 0"
- name: is_guest_contacted_about_damage
data_type: boolean
@ -312,7 +305,6 @@ models:
- relationships:
to: ref('stg_core__accommodation')
field: id_accommodation
where: "document_version <> 'OldClaimToIncidentModel'"
- name: accommodation_name
data_type: text
@ -346,12 +338,10 @@ models:
data_type: numeric
description: "Superhog unique booking ID"
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- not_null
- relationships:
to: ref('stg_core__booking')
field: id_booking
where: "document_version <> 'OldClaimToIncidentModel'"
- name: booking_status
data_type: text