near-models/models/silver/atlas/silver__atlas_nft_transactions.yml

77 lines
1.9 KiB
YAML
Raw Normal View History

2023-11-07 15:10:43 +00:00
version: 2
models:
- name: silver__atlas_nft_transactions
description: |-
This incremental dbt model unifies NFT minting and transfer data into a single view, providing a comprehensive look at NFT activities. It captures daily activities by transaction hash, method name, receiver ID, signer ID, owner, and token ID.
2023-11-09 02:53:38 +00:00
tests:
- dbt_utils.recency:
datepart: day
field: _inserted_timestamp
interval: 1
2023-11-07 15:10:43 +00:00
columns:
2023-11-09 17:38:15 +00:00
- name: atlas_nft_transactions_id
2023-11-09 02:53:38 +00:00
description: "{{doc('id')}}"
2023-11-07 15:10:43 +00:00
tests:
- unique
- not_null
- name: day
2023-11-07 17:18:53 +00:00
description: "{{doc('date')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: tx_hash
2023-11-07 17:18:53 +00:00
description: "{{doc('tx_hash')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: method_name
2023-11-09 02:53:38 +00:00
description: "{{doc('method_name')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: receiver_id
2023-11-07 17:18:53 +00:00
description: "{{doc('receiver_id')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: signer_id
2023-11-07 17:18:53 +00:00
description: "{{doc('signer_id')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: owner
2023-11-09 02:53:38 +00:00
description: "{{doc('owner')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
- name: token_id
2023-11-07 17:18:53 +00:00
description: "{{doc('token_id')}}"
2023-11-07 15:10:43 +00:00
tests:
- not_null
2023-11-08 19:36:09 +00:00
- name: inserted_timestamp
description: "{{doc('inserted_timestamp')}}"
tests:
- not_null
- name: modified_timestamp
description: "{{doc('modified_timestamp')}}"
tests:
- not_null
2023-12-11 17:34:32 +00:00
- name: _invocation_id
2023-11-08 19:36:09 +00:00
description: "{{doc('invocation_id')}}"
2024-02-07 19:08:37 +00:00
- name: _partition_by_block_number
description: "{{doc('_partition_by_block_number')}}"
- name: _inserted_timestamp
description: "{{doc('_inserted_timestamp')}}"
tests:
- not_null
- name: _modified_timestamp
description: "{{doc('_modified_timestamp')}}"