# Package name
name: 'mappings'
version: '1.1'

config-version: 2

# DB connection profile
profile: 'snowflake'

test-paths: ["tests"]

# Models to run
models:
    mappings:
        # mappings models
        playlist:
            +enabled: true

        participant:
            +enabled: true

        product:
            +enabled: true

        video:
            +enabled: true

        operations:
            upgrade:
                +enabled: true

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

vars:
    mappings:
        # Production view names
        mappings_dim_playlist_to_followers: "MAPPINGS_DIM_PLAYLIST_TO_FOLLOWERS"
        mappings_video_to_assets: "MAPPINGS_VIDEO_TO_ASSETS"
        mappings_video_to_participants: "MAPPINGS_VIDEO_TO_PARTICIPANTS"
        mappings_video_to_channels: "MAPPINGS_VIDEO_TO_CHANNELS"
        mappings_product_to_global_participant: "MAPPINGS_PRODUCT_TO_GLOBAL_PARTICIPANT"
        mappings_product_to_primary_global_participant: "MAPPINGS_PRODUCT_TO_PRIMARY_GLOBAL_PARTICIPANT"
        mappings_financial_label_id_to_product_ids: "MAPPINGS_FINANCIAL_LABEL_ID_TO_PRODUCT_IDS"
        mappings_financial_label_parent_name_to_label_ids: "MAPPINGS_FINANCIAL_LABEL_PARENT_NAME_TO_LABEL_IDS"
        mappings_video_to_participants_by_account: "MAPPINGS_VIDEO_TO_PARTICIPANTS_BY_ACCOUNT"
        mappings_product_family_to_isrcs: "MAPPINGS_PRODUCT_FAMILY_TO_ISRCS_DBT"
        mappings_upper_profit_center_to_product_ids: "MAPPINGS_UPPER_PROFIT_CENTER_TO_PRODUCT_IDS"
        mappings_track_to_videos: "MAPPINGS_TRACK_TO_VIDEOS"
        soundrecording_to_related_videos_primary_audio_product_v2: "SOUNDRECORDING_TO_RELATED_VIDEOS_PRIMARY_AUDIO_PRODUCT_V2"
        mappings_video_to_tracks_v3: "MAPPINGS_VIDEO_TO_TRACKS_V3"
        mapping_isrc_to_global_participant: "MAPPING_ISRC_TO_GLOBAL_PARTICIPANT"
