commit wip

This commit is contained in:
Joaquin Ossa 2025-02-23 15:04:59 +01:00
parent f3842c950b
commit d6dcbcc67e
2 changed files with 8 additions and 8 deletions

View file

@ -59,28 +59,28 @@ models:
data_type: text
description: ""
- name: created_at_date
- name: created_at_utc
data_type: timestamp without time zone
description: "Timestamp when the incident was created."
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- name: created_date_date
- name: created_date_utc
data_type: date
description: "Date when the incident was created."
data_tests:
- not_null:
where: "document_version <> 'OldClaimToIncidentModel'"
- name: updated_at_date
- 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_date
- name: updated_date_utc
data_type: date
description: "Date when the incident was last updated."
data_tests:

View file

@ -13,10 +13,10 @@ select
{{ adapter.quote("documents") }} ->> 'StatusHistory' as status_history_logs,
{{ adapter.quote("documents") }} ->> 'documentVersion' as document_version,
{{ adapter.quote("documents") }} ->> 'TaskExecutionLogs' as task_execution_logs,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::timestamp as created_at_date,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::date as created_date_date,
({{ adapter.quote("documents") }} ->> 'UpdatedDate')::timestamp as updated_at_date,
({{ adapter.quote("documents") }} ->> 'UpdatedDate')::date as updated_date_date,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::timestamp as created_at_utc,
({{ adapter.quote("documents") }} ->> 'CreatedDate')::date as created_date_utc,
({{ adapter.quote("documents") }} ->> 'UpdatedDate')::timestamp as updated_at_utc,
({{ adapter.quote("documents") }} ->> 'UpdatedDate')::date as updated_date_utc,
-- Host Details
{{ adapter.quote("documents") }} -> 'Host' ->> 'Id' as id_user_host,