version: 2
models:
  - name: core__fact_blocks
    description: "{{ doc('fact_blocks') }}"
    columns:
      - name: BLOCK_ID
        description: "{{ doc('block_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: BLOCK_TIMESTAMP
        description: "{{ doc('block_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: NETWORK
        description: "{{ doc('network') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: CHAIN_ID
        description: "{{ doc('chain_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: BLOCK_HEIGHT
        description: "{{ doc('block_height') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: BLOCK_HASH
        description: "{{ doc('block_hash') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PREVIOUS_BLOCK_ID
        description: "{{ doc('previous_block_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PREVIOUS_BLOCK_HASH
        description: "{{ doc('previous_block_hash') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: FACT_BLOCKS_ID
        description: "{{ doc('pk') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: INSERTED_TIMESTAMP
        description: "{{ doc('inserted_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: MODIFIED_TIMESTAMP
        description: "{{ doc('modified_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist 
