near-models/models/silver/atlas/silver__atlas_nft_detailed.yml
2023-12-11 10:34:32 -07:00

62 lines
1.4 KiB
YAML

version: 2
models:
- name: silver__atlas_nft_detailed
description: |-
This is an incremental dbt model that gives an overview of NFT transactions in NEAR.
columns:
- name: atlas_nft_detailed_id
description: "{{ doc('id')}}"
tests:
- not_null
- unique
- name: day
description: "{{ doc('date')}}"
tests:
- not_null
- name: receiver_id
description: "The identifier of the receiver in the NFT transaction."
tests:
- not_null
- name: tokens
description: "The count of unique tokens transferred to the receiver on the given day."
tests:
- not_null
- name: all_transfers
description: "The total number of 'nft_transfer' method transactions that occurred."
tests:
- not_null
- name: owners
description: "The count of distinct owners who have interacted with the NFT."
tests:
- not_null
- name: transactions
description: "{{ doc('tx_count')}}"
tests:
- not_null
- name: mints
description: "The count of transactions where the 'method_name' is not 'nft_transfer', indicating minting actions."
tests:
- not_null
- name: inserted_timestamp
description: "{{doc('inserted_timestamp')}}"
tests:
- not_null
- name: modified_timestamp
description: "{{doc('modified_timestamp')}}"
tests:
- not_null
- name: _invocation_id
description: "{{doc('invocation_id')}}"