# Package name
name: 'summary_demographics'
version: '1.2'

config-version: 2

# DB connection profile
profile: 'snowflake'

test-paths: ["tests"]

# Models to run
models:
    summary_demographics:
        # Demographics models
        # Together with their test snapshots
        isrc:
            +enabled: true

        artist:
            +enabled: true

        label:
            +enabled: true

        operations:
            upgrade:
                +enabled: true

        # Grant permissions to all tables
        +post-hook:
          - '{{ utils.grant_permissions() }}'

vars:
    summary_demographics:
        # Production view names
        isrc_feed_distributor_demographics_recent_table: "SUMMARY_DEMOGRAPHICS_BY_ISRC_FEED_DISTRIBUTOR_RECENT"
        isrc_feed_distributor_demographics_history_table: "SUMMARY_DEMOGRAPHICS_BY_ISRC_FEED_DISTRIBUTOR_HISTORY"
        artist_feed_distributor_demographics_recent_table: "SUMMARY_DEMOGRAPHICS_BY_ARTIST_FEED_DISTRIBUTOR_RECENT"
        artist_feed_distributor_demographics_history_table: "SUMMARY_DEMOGRAPHICS_BY_ARTIST_FEED_DISTRIBUTOR_HISTORY"
        label_feed_distributor_demographics_table: "SUMMARY_DEMOGRAPHICS_BY_LABEL_FEED_DISTRIBUTOR"

        # Snapshots
        expected_isrc_feed_distributor_demographics_recent_table: "EXPECTED_SUMMARY_DEMOGRAPHICS_BY_ISRC_FEED_DISTRIBUTOR_RECENT"
        expected_isrc_feed_distributor_demographics_history_table: "EXPECTED_SUMMARY_DEMOGRAPHICS_BY_ISRC_FEED_DISTRIBUTOR_HISTORY"
        expected_artist_feed_distributor_demographics_table: "EXPECTED_SUMMARY_DEMOGRAPHICS_BY_ARTIST_FEED_DISTRIBUTOR"
        expected_label_feed_distributor_demographics_table: "EXPECTED_SUMMARY_DEMOGRAPHICS_BY_LABEL_FEED_DISTRIBUTOR"
