seed, unique test

This commit is contained in:
Eric Laurello 2024-01-31 17:40:51 -05:00
parent 5825943647
commit 305fc59953
3 changed files with 6 additions and 4 deletions

View File

@ -32,4 +32,5 @@ avalanche,6
acala,12
kujira,4002
pythnet,26
evmos,4001
evmos,4001
wormchain,3104
1 chain_name chain_id
32 acala 12
33 kujira 4002
34 pythnet 26
35 evmos 4001
36 wormchain 3104

View File

@ -2,7 +2,9 @@ version: 2
models:
- name: defi__fact_bridge_activity
description: '{{ doc("defi__fact_bridge_activity") }}'
tests:
- dbt_constraints.primary_key:
column_name: fact_bridge_activity_id
columns:
- name: BLOCK_NUMBER
description: '{{ doc("block_number") }}'

View File

@ -43,8 +43,7 @@ models:
- not_null
- name: DESTINATION_CHAIN_NAME
tests:
- not_null:
where: destination_chain_id <> 3104
- not_null
- name: TOKEN_ADDRESS
tests:
- not_null