version: 2
models:
  - name: gov__fact_proposal_votes
    description: "{{ doc('fact_proposal_votes') }}" 
    columns:
      - name: GOVERNANCE_PLATFORM
        description: "{{ doc('governance_platform') }}"
        tests:  
          - dbt_expectations.expect_column_to_exist
      - name: PROGRAM_NAME
        description: "{{ doc('program_name') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - 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: SUCCEEDED
        description: "{{ doc('tx_succeeded') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTER
        description: "{{ doc('voter') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTER_ACCOUNT
        description: "{{ doc('voter_account') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTER_NFT
        description: "{{ doc('voter_nft') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: PROPOSAL
        description: "{{ doc('proposal') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: REALMS_ID
        description: "{{ doc('realms_id') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTE_CHOICE
        description: "{{ doc('vote_choice') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTE_RANK
        description: "{{ doc('vote_rank') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: VOTE_WEIGHT
        description: "{{ doc('vote_weight') }}"
        tests:
          - dbt_expectations.expect_column_to_exist
      - name: FACT_PROPOSAL_VOTES_ID
        description: '{{ doc("pk") }}'   
      - name: INSERTED_TIMESTAMP
        description: '{{ doc("inserted_timestamp") }}'   
      - name: MODIFIED_TIMESTAMP
        description: '{{ doc("modified_timestamp") }}' 