refactor(db): migrate job workspace notes

Move interview preparation and AI workspace output persistence into an additive provider-aware migration. Preserve reviewed results, uniqueness, and application cascade semantics.
This commit is contained in:
cesnimda
2026-08-30 17:22:04 +02:00
parent 9922426aa5
commit 778b365f9e
9 changed files with 186 additions and 93 deletions
@@ -12,6 +12,7 @@ internal static class StartupSchemaOwnership
"AccountDeletionFiles",
"AccountDeletionRequests",
"AiUsageRecords",
"AiWorkspaceNotes",
"Attachments",
"Companies",
"Correspondences",
@@ -22,6 +23,7 @@ internal static class StartupSchemaOwnership
"GmailConnections",
"GmailReviewDecisions",
"ImapConnections",
"InterviewPrepNotes",
"JobApplications",
"JobEvents",
"Jobs",
@@ -40,7 +42,6 @@ internal static class StartupSchemaOwnership
internal static readonly IReadOnlySet<string> ReconcilerOwnedTables = new HashSet<string>(StringComparer.Ordinal)
{
"AiInteractions",
"AiWorkspaceNotes",
"ApplicationChecklistItems",
"AspNetRoleClaims",
"AspNetRoles",
@@ -61,7 +62,6 @@ internal static class StartupSchemaOwnership
"CvVariants",
"CvVariantVersions",
"InterviewPrepItems",
"InterviewPrepNotes",
};
// Historical migrations contain guarded compatibility bootstraps for these tables so direct