add integration type model

This commit is contained in:
Pablo Martin 2024-06-04 15:05:26 +02:00
parent 8ec14a14c1
commit f5ae39e443

View file

@ -0,0 +1,24 @@
with
raw_integration_type as (select * from {{ source("core", "IntegrationType") }}),
stg_core__integration_type as (
select
{{ adapter.quote("Id") }} as id_integration_type,
{{ adapter.quote("AuthenticationTypeId") }} as id_authentication_type,
{{ adapter.quote("Logo") }} as logo,
{{ adapter.quote("Name") }} as integration_type,
{{ adapter.quote("IsHidden") }} as is_hidden,
{{ adapter.quote("DisplayName") }} as display_name,
{{ adapter.quote("Configuration") }} as integration_type_configuration,
{{ adapter.quote("IsWebhookKygEnabled") }} as is_webhook_kyg_enabled,
{{ adapter.quote("CreatedDateCutOffAllowed") }}
as is_created_date_cutoff_allowed,
{{ adapter.quote("IsWebhookSuperhogEnabled") }}
as is_webhook_superhog_enabled,
{{ adapter.quote("CreatedDate") }} as created_at_utc,
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
from raw_integration_type
)
select *
from stg_core__integration_type