near-models/models/gold/atlas/atlas__fact_nft_monthly_txs.yml
2025-01-06 11:49:49 -07:00

42 lines
1.3 KiB
YAML

version: 2
models:
- name: atlas__fact_nft_monthly_txs
description: |-
Deprecating Soon - these tables previously supported NEAR Atlas which is no longer live. These tables will be removed on Febreary 1, 2025.
Please cease using these tables.
tests:
- dbt_utils.recency:
datepart: days
field: inserted_timestamp
interval: 1
columns:
- name: FACT_NFT_MONTHLY_TXS_ID
description: "{{ doc('id')}}"
tests:
- unique:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- not_null:
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
- name: DAY
description: "{{ doc('date')}}"
tests:
- not_null
- name: TXNS
description: "{{ doc('tx_count')}}"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
- name: INSERTED_TIMESTAMP
description: "{{ doc('inserted_timestamp')}}"
- name: MODIFIED_TIMESTAMP
description: "{{ doc('modified_timestamp')}}"