mirror of
https://github.com/FlipsideCrypto/external-models.git
synced 2026-02-06 11:41:50 +00:00
100 lines
2.7 KiB
YAML
100 lines
2.7 KiB
YAML
version: 2
|
|
models:
|
|
- name: silver__defillama_perp_metrics
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- protocol_id
|
|
- timestamp
|
|
|
|
columns:
|
|
- name: timestamp
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- DATE
|
|
- name: protocol_id
|
|
tests:
|
|
- not_null
|
|
- name: category
|
|
tests:
|
|
- not_null
|
|
- name: name
|
|
tests:
|
|
- not_null
|
|
- name: display_name
|
|
tests:
|
|
- not_null
|
|
- name: module
|
|
tests:
|
|
- not_null
|
|
- name: logo
|
|
tests:
|
|
- not_null
|
|
- name: chains
|
|
tests:
|
|
- not_null
|
|
- name: protocol_type
|
|
tests:
|
|
- not_null
|
|
- name: methodology_url
|
|
tests:
|
|
- not_null
|
|
- name: methodology
|
|
tests:
|
|
- not_null
|
|
- name: protocol_slug
|
|
tests:
|
|
- not_null
|
|
- name: total_24h
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: total_48h_to_24h
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: total_7d
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: total_30d
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: total_all_time
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: change_1d
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- name: total_data_chart_breakdown
|
|
tests:
|
|
- not_null
|
|
- name: defillama_perp_metrics_id
|
|
tests:
|
|
- not_null
|
|
- name: _inserted_timestamp
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
- name: inserted_timestamp
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
- name: modified_timestamp
|
|
tests:
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ |