version: 2
models:
  - name: core__fact_transactions
    description: "{{ doc('fact_transactions') }}"
    columns:
      - name: BLOCK_TIMESTAMP
        description: "{{ doc('block_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: BLOCK_ID
        description: "{{ doc('block_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: RECENT_BLOCK_HASH
        description: "{{ doc('recent_block_hash') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: TX_ID
        description: "{{ doc('tx_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: FEE
        description: "{{ doc('fee') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: SUCCEEDED
        description: "{{ doc('tx_succeeded') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: SIGNERS
        description: "{{ doc('signers') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: ACCOUNT_KEYS
        description: "{{ doc('account_keys') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PRE_BALANCES
        description: "{{ doc('pre_balances') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: POST_BALANCES
        description: "{{ doc('post_balances') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PRE_TOKEN_BALANCES
        description: "{{ doc('pre_token_balances') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: POST_TOKEN_BALANCES
        description: "{{ doc('post_token_balances') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: INSTRUCTIONS
        description: "{{ doc('instructions') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: INNER_INSTRUCTIONS
        description: "{{ doc('inner_instructions') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: LOG_MESSAGES
        description: "{{ doc('log_messages') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: UNITS_CONSUMED
        description: "{{ doc('units_consumed') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: UNITS_LIMIT
        description: "{{ doc('units_limit') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: TX_SIZE
        description: "{{ doc('tx_size') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: TX_INDEX
        description: "{{ doc('tx_index') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: FACT_TRANSACTIONS_ID
        description: '{{ doc("pk") }}'   
      - 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 