-- IMPORTS
WITH countries AS (
    SELECT * FROM {{ source('src_exchange_mysql', 'countries') }}
),

-- LOGIC
countries_rename AS (

    SELECT
        countries.id,
        countries.name,
        countries.short_code,
        countries.phone_code,
        countries.deleted_at,
        countries.created_at,
        countries.updated_at,
        current_timestamp()                                                                         AS _dbt_ran_at

    FROM countries

),


-- FINAL
final__base_exchange__countries AS (

    SELECT
        id,
        name,
        short_code,
        phone_code,
        deleted_at,
        created_at,
        updated_at,
        _dbt_ran_at

    FROM countries_rename

) 

SELECT * FROM final__base_exchange__countries