feat: move job providers to DB and suppress job-search link when none enabled #36

Merged
gelu merged 11 commits from feature/job-providers-db-and-link-guard into main 2026-05-29 10:07:16 +00:00
Showing only changes of commit c675954f8a - Show all commits
@@ -12,7 +12,7 @@ namespace CvSearch.Data.Migrations
{
migrationBuilder.CreateTable(
name: "JobProviders",
schema: "cvSearch",
schema: MigrationConstants.SchemaName,
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
@@ -33,7 +33,7 @@ namespace CvSearch.Data.Migrations
// Seed the three default providers — all disabled so the feature is opt-in per environment.
// Enable a provider by setting its Enabled column to 1 via SQL or a future admin UI.
migrationBuilder.InsertData(
schema: "cvSearch",
schema: MigrationConstants.SchemaName,
table: "JobProviders",
columns: ["Name", "Enabled", "SearchUrlTemplate", "JobLinkContains", "InitialKeywordsJson", "MaxResults", "DisplayOrder"],
values: new object[,]
@@ -49,7 +49,7 @@ namespace CvSearch.Data.Migrations
{
migrationBuilder.DropTable(
name: "JobProviders",
schema: "cvSearch");
schema: MigrationConstants.SchemaName);
}
}
}