refactor(db): migrate career profile aggregate

Transfer the canonical career profile, revision history, and six relational child collections to provider-aware migration ownership. Preserve legacy JSON, ordered child data, indexes, and cascade semantics.
This commit is contained in:
cesnimda
2026-08-30 21:54:54 +02:00
parent a906916acc
commit 90ca23de33
13 changed files with 404 additions and 355 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ namespace JobTrackerApi.Models;
// - ItemKey carries the stable item id from the StructuredCvProfile blob, so a row keeps its
// identity across imports/edits and future CV variants can reference "this experience".
// - SortOrder makes ordering explicit (the blob relied on array position).
// - List fields persist as JSON string columns (plain TEXT — reconciler-friendly on both SQLite
// and MySQL) exposed via [NotMapped] accessors. Children are replaced wholesale on save, so
// - List fields persist as JSON string columns exposed via [NotMapped] accessors. Children are
// replaced wholesale on save, so
// fine-grained change tracking of the lists is not needed.
/// <summary>Base fields every CareerProfile child shares.</summary>