stellar-models/models/silver/core/silver__operations.yml
eric-laurello 3b3b95f7d5
AN-5773 standard prices with some customizations (#6)
* standard prices with some customizations

* .

* check

* tests/desc

* added overview file

---------

Co-authored-by: Mike Stepanovic <mike.stepanovic@flipsidecrypto.com>
2025-02-17 13:08:33 -05:00

53 lines
2.0 KiB
YAML

version: 2
models:
- name: silver__operations
columns:
- name: ID
description: "{{ doc('id') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: SOURCE_ACCOUNT
description: "{{ doc('source_account') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- VARCHAR
- name: TRANSACTION_ID
description: "{{ doc('transaction_id') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: LEDGER_SEQUENCE
description: "{{ doc('ledger_sequence') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: TYPE
description: "{{ doc('type') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
- name: TYPE_STRING
description: "{{ doc('type_string') }}"
tests:
- not_null:
where: modified_timestamp > current_date - {{ var('test_days_threshold', 3) }}
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- VARCHAR