diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/LiFiDiamond_v2_evt_LiFiTransferStarted.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/LiFiDiamond_v2_evt_LiFiTransferStarted.sql index a56bb63b80f..8d3758efaca 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/LiFiDiamond_v2_evt_LiFiTransferStarted.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/LiFiDiamond_v2_evt_LiFiTransferStarted.sql @@ -3,7 +3,7 @@ schema = 'lifi', alias = 'transfers', materialized = 'incremental', - unique_key = ['evt_block_time', 'evt_tx_hash', 'evt_index'] + unique_key = ['evt_tx_hash', 'evt_index', 'source_chain'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/arbitrum/lifi_arbitrum_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/arbitrum/lifi_arbitrum_transfers.sql index 661b8ef25b3..01b46d15274 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/arbitrum/lifi_arbitrum_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/arbitrum/lifi_arbitrum_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_arbitrum', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/avalanche/lifi_avalanche_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/avalanche/lifi_avalanche_transfers.sql index 40445b17577..2b5688f66e7 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/avalanche/lifi_avalanche_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/avalanche/lifi_avalanche_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_avalanche', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/bnb/lifi_bnb_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/bnb/lifi_bnb_transfers.sql index af8ca6eb0b8..64ad297407f 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/bnb/lifi_bnb_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/bnb/lifi_bnb_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_bnb', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/ethereum/lifi_ethereum_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/ethereum/lifi_ethereum_transfers.sql index a1c36d2da7d..32d8f561b62 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/ethereum/lifi_ethereum_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/ethereum/lifi_ethereum_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_ethereum', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/fantom/lifi_fantom_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/fantom/lifi_fantom_transfers.sql index 31fe5c038f2..d7db3d95346 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/fantom/lifi_fantom_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/fantom/lifi_fantom_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_fantom', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/gnosis/lifi_gnosis_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/gnosis/lifi_gnosis_transfers.sql index 4b1748fe7bb..6008f22407e 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/gnosis/lifi_gnosis_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/gnosis/lifi_gnosis_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_gnosis', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }} diff --git a/dbt_subprojects/daily_spellbook/models/_projects/lifi/zksync/lifi_zksync_transfers.sql b/dbt_subprojects/daily_spellbook/models/_projects/lifi/zksync/lifi_zksync_transfers.sql index ed2514140ee..875475792db 100644 --- a/dbt_subprojects/daily_spellbook/models/_projects/lifi/zksync/lifi_zksync_transfers.sql +++ b/dbt_subprojects/daily_spellbook/models/_projects/lifi/zksync/lifi_zksync_transfers.sql @@ -1,7 +1,8 @@ {{ config( schema = 'lifi_zksync', alias = 'transfers', - materialized = 'view' + materialized = 'view', + unique_key = ['evt_tx_hash', 'evt_index'] ) }}