UPDATE [dbo].[Workspaces]
SET [Name] = @Name, [HasHITL] = @HasHITL, [HITLProvider] = @HITLProvider, [MinimumConfidenceThreshold] = @MinimumConfidenceThreshold, 
[PausePrFeedbackBeforeRouting] = @PausePrFeedbackBeforeRouting, [ReviewSlaMinutes] = @ReviewSlaMinutes, [MaxAutoRetryOnRejection] = @MaxAutoRetryOnRejection, 
[DefaultBranch] = @DefaultBranch, [VersionControlBranchPrefix] = @VersionControlBranchPrefix, [RepositoryUrl] = @RepositoryUrl, 
[VersionControlToken] = @VersionControlToken, [VersionControlSystem] = @VersionControlSystem, [VersionControlAuthType] = @VersionControlAuthType, [VersionControlProvider] = @VersionControlProvider,
[VersionControlUserName] = @VersionControlUserName, [VersionControlUserEmail] = @VersionControlUserEmail, [VersionControlApiBaseUrl] = @VersionControlApiBaseUrl, 
[VersionControlApiVersion] = @VersionControlApiVersion, [CodeReviewSystem] = @CodeReviewSystem, [AzureOpenAiEndpoint] = @AzureOpenAiEndpoint, 
[AzureOpenAiApiKey] = @AzureOpenAiApiKey, [AzureOpenAiDeployment] = @AzureOpenAiDeployment, [InviteTokenTtl] = @InviteTokenTtl, [InviteAcceptBaseUrl] = @InviteAcceptBaseUrl, 
[InviteEmailSubjectTemplate] = @InviteEmailSubjectTemplate, [InviteEmailBodyTemplate] = @InviteEmailBodyTemplate, [PullRequestDescriptionTemplate] = @PullRequestDescriptionTemplate, 
[PullRequestCommentTemplate] = @PullRequestCommentTemplate, [EmailFrom] = @EmailFrom, [EmailTo] = @EmailTo, [EmailSmtpHost] = @EmailSmtpHost, 
[EmailSmtpPort] = @EmailSmtpPort, [EmailSmtpUsername] = @EmailSmtpUsername, [EmailSmtpPassword] = @EmailSmtpPassword, [EmailSmtpUseSsl] = @EmailSmtpUseSsl, 
[SlackWebhookUrl] = @SlackWebhookUrl, [SlackChannel] = @SlackChannel, [SlackBotName] = @SlackBotName, [SlackIconEmoji] = @SlackIconEmoji, 
[SlackMessageTemplate] = @SlackMessageTemplate, [TeamsWebhookUrl] = @TeamsWebhookUrl, [TeamsMessageTemplate] = @TeamsMessageTemplate, [ObservabilitySystem] = @ObservabilitySystem, 
[ObservabilityApiKey] = @ObservabilityApiKey, [CiCdSystem] = @CiCdSystem, [CiCdApiKey] = @CiCdApiKey, [HostingProvider] = @HostingProvider, [TenantId] = @TenantId, 
[VersionControlConnectedAtUtc] = @VersionControlConnectedAtUtc, [VersionControlConnectionState] = @VersionControlConnectionState, [VersionControlLastTestError] = @VersionControlLastTestError, 
[VersionControlLastTestedAtUtc] = @VersionControlLastTestedAtUtc, [UseCoffeeBreakReviewerPool] = @UseCoffeeBreakReviewerPool, [IsEnabled] = @IsEnabled
WHERE [Id] = @Id;
