# Package name
name: 'summary_streams'
version: '1.2'

config-version: 2

# DB connection profile
profile: 'snowflake'

test-paths: ["tests"]

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

        # Streams model together with their test snapshots
        source_of_streams:
            +enabled: true

        track_placement:
            +enabled: true

        playlist_metadata:
            +enabled: true

        metrics_by_isrc:
            +enabled: true

        summary_streams_by_playlist:
            +enabled: true

        operations:
            upgrade:
                +enabled: true

vars:
    summary_streams:
        # Source table
        fact_analytics: "FACT_ANALYTICS"

        # Production view names
        source_of_streams_by_feed_distributor_recent_table: "SUMMARY_SOS_BY_FEED_DISTRIBUTOR_RECENT"
        source_of_streams_by_feed_distributor_history_table: "SUMMARY_SOS_BY_FEED_DISTRIBUTOR_HISTORY"
        track_placement_by_feed_distributor_table: "PLACEMENT_BY_FEED_DISTRIBUTOR"
        playlist_metadata_by_feed_distributor_table: "PLAYLIST_METADATA_BY_FEED_DISTRIBUTOR"
        metrics_by_isrc_feed_distributor_recent_table: "SUMMARY_METRICS_BY_ISRC_FEED_DISTRIBUTOR_RECENT"
        metrics_by_isrc_feed_distributor_history_table: "SUMMARY_METRICS_BY_ISRC_FEED_DISTRIBUTOR_HISTORY"
        summary_streams_by_playlist_feed_distributor_table: "SUMMARY_STREAMS_BY_PLAYLIST_FEED_DISTRIBUTOR"
