version: 2
models:
  - name: silver__nft_metadata
    tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - CONTRACT_ADDRESS
            - TOKEN_ID
    columns:
      - name: BLOCKCHAIN
        description: "{{ doc('blockchain') }}"
        tests:
          - not_null
      - name: CONTRACT_ADDRESS
        description: "{{ doc('contract_address') }}"
        tests:
          - not_null
      - name: CONTRACT_NAME
        description: "{{ doc('contract_name') }}"
        tests:
          - not_null
      - name: CREATED_AT_TIMESTAMP
        description: "{{ doc('created_at_timestamp') }}"
        tests:
          - not_null
      - name: MINT
        description: "{{ doc('mint') }}"
        tests:
          - not_null: 
              enabled: False # Data is not yet in  bronze
      - name: CREATOR_ADDRESS
        description: "{{ doc('creator_address') }}"
        tests:  
          - not_null
      - name: CREATOR_NAME
        description: "{{ doc('creator_name') }}"
        tests:
          - not_null
      - name: IMAGE_URL
        description: "{{ doc('image_url') }}"
        tests:
          - not_null
      - name: PROJECT_NAME
        description: "{{ doc('project_name') }}"
        tests:
          - not_null
      - name: TOKEN_ID
        description: "{{ doc('token_id') }}"
        tests:
          - not_null
      - name: TOKEN_METADATA
        description: "{{ doc('token_metadata') }}"
        tests:
          - not_null
      - name: TOKEN_METADATA_URI
        description: "{{ doc('token_metadata_uri') }}"
        tests:
          - not_null
      - name: TOKEN_NAME
        description: "{{ doc('token_name') }}"
        tests:
          - not_null