near-models/models/gold/atlas/atlas__ez_nft_contract_metrics_daily.yml

87 lines
2.3 KiB
YAML
Raw Normal View History

2023-11-08 19:01:11 +00:00
version: 2
models:
2023-11-09 16:45:02 +00:00
- name: atlas__ez_nft_contract_metrics_daily
2023-11-08 19:01:11 +00:00
description: |-
2025-01-06 18:49:49 +00:00
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.
2024-02-08 22:58:52 +00:00
tests:
- dbt_utils.recency:
datepart: days
field: inserted_timestamp
interval: 1
2023-11-08 19:01:11 +00:00
columns:
2023-11-09 16:45:02 +00:00
- name: EZ_NFT_CONTRACT_METRICS_DAILY_ID
2023-11-09 15:45:45 +00:00
description: "{{ doc('id')}}"
2024-02-08 22:58:52 +00:00
tests:
- unique:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2024-02-08 22:58:52 +00:00
- not_null:
2024-02-09 00:36:36 +00:00
where: inserted_timestamp BETWEEN SYSDATE() - INTERVAL '7 days' AND SYSDATE() - INTERVAL '2 hours'
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: DAY
2023-11-08 19:01:11 +00:00
description: "{{ doc('date')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: RECEIVER_ID
2023-11-08 19:01:11 +00:00
description: "{{ doc('tx_receiver')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: TOKENS
2023-11-08 19:01:11 +00:00
description: "{{ doc('tokens_count')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: ALL_TRANSFERS
2023-11-08 19:01:11 +00:00
description: "{{ doc('all_transfers')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: OWNERS
2023-11-08 19:01:11 +00:00
description: "{{ doc('owner_count')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: TRANSACTIONS
2023-11-08 19:01:11 +00:00
description: "{{ doc('tx_count')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-08 19:01:11 +00:00
2023-11-09 16:45:02 +00:00
- name: MINTS
2023-11-08 19:01:11 +00:00
description: "{{ doc('mint_count')}}"
2024-02-08 22:58:52 +00:00
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- INTEGER
2023-11-08 19:36:09 +00:00
2023-11-09 16:45:02 +00:00
- name: INSERTED_TIMESTAMP
2023-11-08 19:36:09 +00:00
description: "{{ doc('inserted_timestamp')}}"
2023-11-09 16:45:02 +00:00
- name: MODIFIED_TIMESTAMP
2023-11-08 19:36:09 +00:00
description: "{{ doc('modified_timestamp')}}"