{% snapshot snap_exchange__segment_companies %}

    {{
        config(
          strategy='check',
          unique_key="segment_id||'-'||company_id",
          check_cols=['segment_id'],
        )
    }}

    select 
        *,
        '{{ modules.datetime.datetime.now(modules.pytz.timezone("Asia/Kuala_Lumpur")) }}' AS _dbt_ran_datetime
        
    from {{ source('src_exchange_mysql', 'segment_companies') }}

{% endsnapshot %}