version: 2
models:
  - name: GLOBAL_FANS_BY_ARTIST_SEGMENT_CAMPAIGN_DBT
    description: '{{ doc("GLOBAL_FANS_BY_ARTIST_SEGMENT_CAMPAIGN_DBT") }}'
    data_tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - GLOBAL_PARTICIPANT_ID
            - SEGMENT_NAME
            - CAMPAIGN
    columns:
      - name: GLOBAL_PARTICIPANT_ID
        description: Global participant ID from Orchard
        data_tests:
          - not_null
      - name: SEGMENT_NAME
        description: Segment from the super fan segmentation
        data_tests:
          - not_null
      - name: CAMPAIGN
        description: Name of the campaign
        data_tests:
          - not_null
      - name: TOTAL_PARTICIPATION
        description: Number of fans participated in campaign
        data_tests:
          - not_null
      - name: FANS_SHARE
        description: Percentage of fans participated in campaign
        data_tests:
          - not_null
  - name: GLOBAL_FANS_BY_ARTIST_SEGMENT_CAMPAIGN_COUNTRY_DBT
    description: '{{ doc("GLOBAL_FANS_BY_ARTIST_SEGMENT_CAMPAIGN_COUNTRY_DBT") }}'
    data_tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - GLOBAL_PARTICIPANT_ID
            - SEGMENT_NAME
            - CAMPAIGN
            - COUNTRY_ISO2
    columns:
      - name: GLOBAL_PARTICIPANT_ID
        description: Global participant ID from Orchard
        data_tests:
          - not_null
      - name: SEGMENT_NAME
        description: Segment from the super fan segmentation
        data_tests:
          - not_null
      - name: CAMPAIGN
        description: Name of the campaign
        data_tests:
          - not_null
      - name: COUNTRY_ISO2
        description: ISO2 country code
        data_tests:
          - not_null
      - name: TOTAL_PARTICIPATION
        description: Number of fans participated in campaign
        data_tests:
          - not_null
      - name: FANS_SHARE
        description: Percentage of fans participated in campaign
        data_tests:
          - not_null
  - name: FANS_BY_ARTIST_ACCOUNT_SEGMENT_CAMPAIGN_DBT
    description: '{{ doc("FANS_BY_ARTIST_ACCOUNT_SEGMENT_CAMPAIGN_DBT") }}'
    data_tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - GLOBAL_PARTICIPANT_ID
            - VENDOR_ID
            - SUBACCOUNT_ID
            - SEGMENT_NAME
            - CAMPAIGN
    columns:
      - name: GLOBAL_PARTICIPANT_ID
        description: Global participant ID from Orchard
        data_tests:
          - not_null
      - name: VENDOR_ID
        description: Vendor ID from Orchard
        data_tests:
          - not_null
      - name: SUBACCOUNT_ID
        description: Subaccount ID from Orchard
        data_tests:
          - not_null
      - name: SEGMENT_NAME
        description: Segment from the super fan segmentation
        data_tests:
          - not_null
      - name: CAMPAIGN
        description: Name of the campaign
        data_tests:
          - not_null
      - name: TOTAL_PARTICIPATION
        description: Number of fans participated in campaign
        data_tests:
          - not_null
      - name: FANS_SHARE
        description: Percentage of fans participated in campaign
        data_tests:
          - not_null
  - name: FANS_BY_ARTIST_ACCOUNT_SEGMENT_CAMPAIGN_COUNTRY_DBT
    description: '{{ doc("FANS_BY_ARTIST_ACCOUNT_SEGMENT_CAMPAIGN_COUNTRY_DBT") }}'
    data_tests:
      - dbt_utils.unique_combination_of_columns:
          combination_of_columns:
            - GLOBAL_PARTICIPANT_ID
            - VENDOR_ID
            - SUBACCOUNT_ID
            - SEGMENT_NAME
            - CAMPAIGN
            - COUNTRY_ISO2
    columns:
      - name: GLOBAL_PARTICIPANT_ID
        description: Global participant ID from Orchard
        data_tests:
          - not_null
      - name: VENDOR_ID
        description: Vendor ID from Orchard
        data_tests:
          - not_null
      - name: SUBACCOUNT_ID
        description: Subaccount ID from Orchard
        data_tests:
          - not_null
      - name: SEGMENT_NAME
        description: Segment from the super fan segmentation
        data_tests:
          - not_null
      - name: CAMPAIGN
        description: Name of the campaign
        data_tests:
          - not_null
      - name: COUNTRY_ISO2
        description: ISO2 country code
        data_tests:
          - not_null
      - name: TOTAL_PARTICIPATION
        description: Number of fans participated in campaign
        data_tests:
          - not_null
      - name: FANS_SHARE
        description: Percentage of fans participated in campaign
        data_tests:
          - not_null
