From 1b853a95034642830a0a2ce9385493d0a18daece Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Fri, 21 Feb 2025 16:40:53 +0100 Subject: [PATCH] commit wip (id_incident duplicates have to check) --- models/staging/resolutions/schema.yml | 36 ++++++++++++++++++--------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/models/staging/resolutions/schema.yml b/models/staging/resolutions/schema.yml index 95cd508..4ee8728 100644 --- a/models/staging/resolutions/schema.yml +++ b/models/staging/resolutions/schema.yml @@ -60,25 +60,29 @@ models: data_type: timestamp without time zone description: "Timestamp when the incident was created." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: created_date_date data_type: date description: "Date when the incident was created." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: updated_at_date data_type: timestamp without time zone description: "Timestamp when the incident was last updated." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: updated_date_date data_type: date description: "Date when the incident was last updated." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: id_user_host data_type: text @@ -95,7 +99,8 @@ models: data_type: text description: "Name of the host account." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: host_email data_type: text @@ -107,13 +112,15 @@ models: data_type: text description: "Last name of the host." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: host_first_name data_type: text description: "First name of the host." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: host_phone_code data_type: text @@ -131,25 +138,29 @@ models: data_type: text description: "Superhog code that uniquely identifies a single guest." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_email data_type: text description: "Email of the guest." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_last_name data_type: text description: "Last name of the guest." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_first_name data_type: text description: "First name of the guest." data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_phone_code data_type: text @@ -279,7 +290,8 @@ models: data_type: text description: "Superhog unique booking ID" data_tests: - - not_null + - not_null: + where: "document_version <> 'OldClaimToIncidentModel'" - name: booking_status data_type: text