dbt-selly/models/generated/airbyte_tables/unibag/events.sql

23 lines
631 B
SQL

{{ config(
indexes = [{'columns':['_airbyte_emitted_at'],'type':'hash'}],
unique_key = '_airbyte_ab_id',
schema = "unibag",
tags = [ "top-level" ]
) }}
-- Final base SQL model
-- depends_on: {{ ref('events_ab3') }}
select
_id AS id,
{{ adapter.quote('name') }},
{{ adapter.quote('type') }},
createdat::timestamp AS created_at,
updatedat::timestamp AS updated_at,
_airbyte_ab_id,
_airbyte_emitted_at,
{{ current_timestamp() }} as _airbyte_normalized_at,
_airbyte_events_hashid
from {{ ref('events_ab3') }}
-- events from {{ source('unibag', '_airbyte_raw_events') }}
where 1 = 1