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

27 lines
790 B
MySQL
Raw Normal View History

2022-03-22 04:03:52 +00:00
{{ 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('team_members_ab3') }}
select
_id AS id,
{{ adapter.quote('role') }},
team AS team_id,
{{ adapter.quote('user') }} AS seller_id,
isleft AS is_left,
2022-06-01 10:30:33 +00:00
leftat::timestamp AS left_at,
2022-03-22 04:03:52 +00:00
joinedat::timestamp AS joined_at,
createdat::timestamp AS created_at,
updatedat::timestamp AS updated_at,
_airbyte_ab_id,
_airbyte_emitted_at,
{{ current_timestamp() }} as _airbyte_normalized_at,
_airbyte_team_members_hashid
from {{ ref('team_members_ab3') }}
-- team_members from {{ source('unibag', '_airbyte_raw_team_members') }}
where 1 = 1