version: 2
models:
  - name: gov__ez_staking_lp_actions
    description: "{{ doc('ez_staking_lp_actions') }}" 
    recent_date_filter: &recent_date_filter
      config:
        where: modified_timestamp >= current_date - 7
    columns:
      - name: BLOCK_TIMESTAMP
        description: "{{ doc('block_timestamp') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
          - dbt_expectations.expect_row_values_to_have_recent_data:
              datepart: day
              interval: 2
      - name: BLOCK_ID
        description: "{{ doc('block_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: TX_ID
        description: "{{ doc('tx_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: INDEX
        description: "{{ doc('index') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: INNER_INDEX
        description: "{{ doc('inner_index') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: SUCCEEDED
        description: "{{ doc('tx_succeeded') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: EVENT_TYPE
        description: "{{ doc('event_type') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: SIGNERS
        description: "{{ doc('signers') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: STAKE_AUTHORITY
        description: "{{ doc('stake_authority') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: STAKE_ACCOUNT
        description: "{{ doc('stake_account') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PRE_TX_STAKED_BALANCE
        description: "{{ doc('pre_tx_staked_balance') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: POST_TX_STAKED_BALANCE
        description: "{{ doc('post_tx_staked_balance') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: MOVE_AMOUNT
        description: "{{ doc('move_amount') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: MOVE_DESTINATION
        description: "{{ doc('move_destination') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTE_ACCOUNT
        description: "{{ doc('vote_pubkey') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: NODE_PUBKEY
        description: "{{ doc('node_pubkey') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VALIDATOR_RANK
        description: "{{ doc('validator_rank') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: COMMISSION
        description: "{{ doc('commission') }}" 
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: EZ_STAKING_LP_ACTIONS_ID
        description: '{{ doc("pk") }}'   
      - name: INSERTED_TIMESTAMP
        description: '{{ doc("inserted_timestamp") }}'   
      - name: MODIFIED_TIMESTAMP
        description: '{{ doc("modified_timestamp") }}' 