mirror of
https://github.com/FlipsideCrypto/flow-models.git
synced 2026-02-06 11:26:53 +00:00
* init silver model * cluster by block_timestamp * column fixes * prices from swaps, need to update core to add symbol & contract * token labels seed and updated core view * docs
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: silver__prices_swaps
|
|
description: |-
|
|
This table provides token price data for FLOW tokens.
|
|
|
|
columns:
|
|
- name: tx_id
|
|
description: "{{ doc('tx_id') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- VARCHAR
|
|
- STRING
|
|
|
|
- name: block_timestamp
|
|
description: "{{ doc('block_timestamp') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_row_values_to_have_recent_data:
|
|
datepart: day
|
|
interval: 1
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
|
|
- name: token_contract
|
|
description: "{{ doc('token_contract') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- VARCHAR
|
|
- STRING
|
|
|
|
- name: swap_price
|
|
description: "{{ doc('swap_price') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- FLOAT
|
|
- DOUBLE
|
|
- NUMBER
|
|
|
|
- name: _inserted_timestamp
|
|
description: "{{ doc('_inserted_timestamp') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- TIMESTAMP_NTZ
|
|
|
|
- name: source
|
|
description: "{{ doc('source') }}"
|
|
tests:
|
|
- not_null
|
|
- dbt_expectations.expect_column_values_to_be_in_type_list:
|
|
column_type_list:
|
|
- STRING
|
|
- VARCHAR
|