flow-models/models/gold/rewards/rewards__fact_points_transfers.yml
2025-07-17 16:57:17 -06:00

73 lines
1.6 KiB
YAML

version: 2
models:
- name: rewards__fact_points_transfers
description: "{{ doc('rewards__fact_points_transfers') }}"
tests:
- dbt_utils.recency:
datepart: day
field: request_date
interval: 1
severity: warn
columns:
- name: BATCH_ID
description: "The batch ID of the transfer"
tests:
- not_null
- name: CREATED_AT
description: "The date of the transfer"
tests:
- not_null
- name: BATCH_INDEX
description: "The index of the batch for the sending account"
tests:
- not_null
- name: TRANSFER_INDEX
description: "The index of the transfer within the batch"
tests:
- not_null
- name: FROM_ADDRESS
description: "The EVM address of the sender"
tests:
- not_null
- name: TO_ADDRESS
description: "The EVM address of the recipient"
tests:
- not_null
- name: BOXES
description: "The number of boxes transferred"
tests:
- not_null
- name: KEYS
description: "The number of keys transferred"
tests:
- not_null
- name: POINTS
description: "The number of points transferred"
- name: FACT_POINTS_TRANSFERS_ID
tests:
- not_null
- unique
- name: REQUEST_DATE
tests:
- not_null
- name: INSERTED_TIMESTAMP
tests:
- not_null
- name: MODIFIED_TIMESTAMP
tests:
- not_null