mirror of
https://github.com/FlipsideCrypto/axelar-models.git
synced 2026-02-06 15:36:46 +00:00
34 lines
636 B
SQL
34 lines
636 B
SQL
{{ config(
|
|
materialized = 'table',
|
|
tags = ['daily']
|
|
) }}
|
|
|
|
SELECT
|
|
'axelar' AS blockchain,
|
|
address,
|
|
creator,
|
|
label_type,
|
|
label_subtype,
|
|
label,
|
|
project_name,
|
|
alias,
|
|
DECIMAL,
|
|
raw_metadata,
|
|
concat_ws(
|
|
'-',
|
|
address,
|
|
creator,
|
|
blockchain
|
|
) AS unique_key,
|
|
{{ dbt_utils.generate_surrogate_key(
|
|
['address','creator','blockchain']
|
|
) }} AS osmos_assets_id,
|
|
SYSDATE() AS inserted_timestamp,
|
|
SYSDATE() AS modified_timestamp,
|
|
'{{ invocation_id }}' AS _invocation_id
|
|
FROM
|
|
{{ source(
|
|
'osmo',
|
|
'asset_metadata'
|
|
) }}
|