version: 2
models:
  - name: silver__gov_actions_saber
    tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - TX_ID
    columns:
      - name: BLOCK_TIMESTAMP
        description: "{{ doc('block_timestamp') }}"
        tests:
          - not_null
      - name: BLOCK_ID
        description: "{{ doc('block_id') }}"
        tests:
          - not_null
      - name: TX_ID
        description: "{{ doc('tx_id') }}"
        tests:
          - not_null
      - name: SUCCEEDED
        description: "{{ doc('tx_succeeded') }}"
        tests: 
          - not_null
      - name: SIGNER
        description: "{{ doc('gov_action_signer') }}"
        tests: 
          - not_null
      - name: LOCKER_ACCOUNT
        description: "{{ doc('gov_action_locker_account') }}"
        tests: 
          - not_null
      - name: ESCROW_ACCOUNT
        description: "{{ doc('gov_action_escrow_account') }}"
        tests: 
          - not_null
      - name: MINT
        description: "{{ doc('gov_action_mint') }}"
        tests: 
          - not_null
      - name: ACTION
        description: "{{ doc('gov_action_action') }}"
        tests: 
          - not_null
      - name: AMOUNT
        description: "{{ doc('gov_action_amount') }}"
        tests: 
          - not_null
      - name: _INSERTED_TIMESTAMP
        description: "{{ doc('_inserted_timestamp') }}"
        tests: 
          - not_null