diff --git a/models/staging/resolutions/schema.yml b/models/staging/resolutions/schema.yml index ed62f40..ef74b6e 100644 --- a/models/staging/resolutions/schema.yml +++ b/models/staging/resolutions/schema.yml @@ -76,16 +76,10 @@ models: - name: updated_at_utc data_type: timestamp without time zone description: "Timestamp when the incident was last updated." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: updated_date_utc data_type: date description: "Date when the incident was last updated." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: id_user_host data_type: text @@ -105,9 +99,6 @@ models: - name: host_account_name data_type: text description: "Name of the host account." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: host_email data_type: text @@ -118,16 +109,10 @@ models: - name: host_last_name data_type: text description: "Last name of the host." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: host_first_name data_type: text description: "First name of the host." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: host_phone_code data_type: text @@ -162,16 +147,10 @@ models: - name: guest_last_name data_type: text description: "Last name of the guest." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_first_name data_type: text description: "First name of the guest." - data_tests: - - not_null: - where: "document_version <> 'OldClaimToIncidentModel'" - name: guest_phone_code data_type: text diff --git a/models/staging/resolutions/stg_resolutions__incidents.sql b/models/staging/resolutions/stg_resolutions__incidents.sql index b5f9346..173468b 100644 --- a/models/staging/resolutions/stg_resolutions__incidents.sql +++ b/models/staging/resolutions/stg_resolutions__incidents.sql @@ -11,7 +11,7 @@ select ({{ adapter.quote("documents") }} ->> 'ReadOnlyForCustomers')::boolean as read_only_for_customers, {{ adapter.quote("documents") }} ->> 'StatusHistory' as status_history_logs, - {{ adapter.quote("documents") }} ->> 'documentVersion' as document_version, + {{ adapter.quote("documents") }} ->> 'DocumentVersion' as document_version, {{ adapter.quote("documents") }} ->> 'TaskExecutionLogs' as task_execution_logs, ({{ adapter.quote("documents") }} ->> 'CreatedDate')::timestamp as created_at_utc, ({{ adapter.quote("documents") }} ->> 'CreatedDate')::date as created_date_utc,