# Package name
name: 'downloads'
version: '1.2'

config-version: 2

# DB connection profile
profile: 'snowflake'

test-paths: ["tests"]

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

        # Downloads model together with their test snapshots
        by_participant_product_country_feed:
            +enabled: true

        by_participant_product_feed:
            +enabled: true

        by_participant_track_country_feed:
            +enabled: true

        by_participant_track_feed:
            +enabled: true

        by_track_country_feed:
            +enabled: true

        by_track_feed:
            +enabled: true

        by_product_track_country_feed:
            +enabled: true

        by_product_track_feed:
            +enabled: true

        operations:
            upgrade:
                +enabled: true

vars:
    downloads:
        # Production view names
        downloads_by_participant_product_country_feed_distributor_daily: "DOWNLOADS_BY_PARTICIPANT_PRODUCT_COUNTRY_FEED_DISTRIBUTOR_DAILY"
        downloads_by_participant_product_feed_distributor_daily: "DOWNLOADS_BY_PARTICIPANT_PRODUCT_FEED_DISTRIBUTOR_DAILY"
        downloads_by_participant_track_country_feed_distributor_daily: "DOWNLOADS_BY_PARTICIPANT_TRACK_COUNTRY_FEED_DISTRIBUTOR_DAILY"
        downloads_by_participant_track_feed_distributor_daily: "DOWNLOADS_BY_PARTICIPANT_TRACK_FEED_DISTRIBUTOR_DAILY"
        downloads_by_product_country_feed_distributor_daily: "DOWNLOADS_BY_PRODUCT_COUNTRY_FEED_DISTRIBUTOR_DAILY"
        downloads_by_product_feed_distributor_daily: "DOWNLOADS_BY_PRODUCT_FEED_DISTRIBUTOR_DAILY"
        downloads_by_product_track_country_feed_distributor_daily: "DOWNLOADS_BY_PRODUCT_TRACK_COUNTRY_FEED_DISTRIBUTOR_DAILY"
        downloads_by_product_track_feed_distributor_daily: "DOWNLOADS_BY_PRODUCT_TRACK_FEED_DISTRIBUTOR_DAILY"
        downloads_by_track_country_feed_distributor_daily: "DOWNLOADS_BY_TRACK_COUNTRY_FEED_DISTRIBUTOR_DAILY"
        downloads_by_track_feed_distributor_daily: "DOWNLOADS_BY_TRACK_FEED_DISTRIBUTOR_DAILY"
