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

54 lines
1.4 KiB
YAML

version: 2
models:
- name: silver__atlas_maa
description: |-
Monthly Active Accounts (wallets) on NEAR, including new and returning wallets, calculated over a rolling 30 day window. An active account, here, is defined as the signing of at least one transaction.
columns:
- name: atlas_maa_id
description: "{{ doc('id') }}"
tests:
- not_null
- unique
- name: day
description: "{{ doc('active_day') }}"
tests:
- not_null
- unique
- name: maa
description: "{{ doc('maa')}}"
tests:
- not_null
- name: new_maas
description: "{{ doc('new_maas') }}"
tests:
- not_null
- name: returning_maas
description: "{{ doc('returning_maas') }}"
tests:
- not_null
- name: _inserted_timestamp
description: "{{ doc('_inserted_timestamp') }}"
tests:
- name: not_null_silver__atlas_near_maa_INSERTED_TIMESTAMP_
test_name: 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') }}"