# Release-specific deployment configuration
# This file is packaged with each release in database/deploy-config.ps1
# Jenkins copies this file into the release zip during build

$deployConfig = @{
    # Site
    SiteName            = "FAB"
    AppSubfolder        = "app"

    # Database (connection string comes from shared/appsettings.json)
    TargetDatabaseName  = "swv-fab"

    # Notifications. Jenkinsfile.prod replaces these placeholders while packaging.
    GoogleChatEndpoint  = "https://chat.googleapis.com/v1/spaces/AAQAJttLKQY/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=YdZFZVqeDVP5IB0epfr69KhHYHgouEimiL4kWFT4RHs"
    N8nWebhook          = "https://n8n.2.dev.dexteel.com/webhook/logs"
    N8nSpaceId          = "019b3765-322a-7683-98b3-e809b29e310f"
    N8nParentPageId     = "019bb8bf-38b5-79b2-8d50-ce8d6616be99"

    # DACPACs to deploy (in order, based on schema dependencies)
    # Format: @{Name="dacpac-name"; TargetDB="database"; EnvVars=@("/v:var=value")}
    # fab-sql is a composite dacpac (references mesf-core-sql + del-sql).
    # historian-sql targets its own database and is referenced by fab-sql via the $(historian) SQLCMD variable.
    Dacpacs = @(
        @{Name="historian-sql"; TargetDB="historian"; EnvVars=@()},
        @{Name="mesf-core-sql-sql140"; TargetDB="swv-fab"; EnvVars=@()},
        @{Name="del-sql"; TargetDB="swv-fab"; EnvVars=@()},
        @{Name="fab-sql"; TargetDB="swv-fab"; EnvVars=@("/v:historian=historian")}
    )
}
