992f89e619
Recover the F1 Career Profile foundation + AI-workspace persistence from the unmerged feature/career-workspace branch, so Phase 2 builds on the documented, tested target state instead of re-deriving it. Foundation only — CV Builder commits (variants, ATS badge, rewrite diff) stay deferred per "do not build CV Builder yet". See docs/career-workspace-branch-assessment.md. Squashed from 3 branch commits (235e291,5916f09,00a035e), resolved against main + Phase 0: - CareerProfile + CareerProfileVersion (append-only history), dual-written from every profile save path via CareerProfileService. ApplicationUser. ProfileCvStructureJson stays authoritative; the tables mirror it. Stable item IDs assigned to jobs/education/certifications/projects (the prerequisite for future variant lineage). CvDateNormalizer for free-text -> YYYY-MM. - InterviewPrepNote + AiWorkspaceNote: cache AI interview prep / candidate fit / focus plan keyed by an attachment-context signature, so they stop regenerating (and re-spending the provider) on every open. Conflict resolutions (union, favouring current code + Phase 0): - JobTrackerContext / StartupInitializationExtensions: kept Phase 0's tables and reconciler blocks, added the career/interview/ai-note tables (both SQLite and MySQL dialects). - ProfileCvController: dropped the branch's in-file DTO records (main defines them in ProfileCvDtos.cs) and the LayoutFamily/AtsRating template fields (deferred ATS-badge work), keeping main's 7-arg CvTemplateDescriptor. - JobApplicationsController: kept the branch's cache-check, restored main's AsNoTracking on the read-only user load. Tables ship empty (verified dev); nothing to migrate. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
1.2 KiB
C#
23 lines
1.2 KiB
C#
namespace JobTrackerApi.Models;
|
|
|
|
// Persists interview prep so it survives tab switches and page reloads instead of being an AI
|
|
// call re-run every time the tab opens (career-workspace-implementation-roadmap.md Phase F5 --
|
|
// "persist interview prep / fit outputs" -- flagged in the product teardown as work evaporating
|
|
// on every re-open). One row per job application; regenerated when the selected attachment
|
|
// context changes or the user explicitly requests a refresh.
|
|
public sealed class InterviewPrepNote
|
|
{
|
|
public int Id { get; set; }
|
|
public string OwnerUserId { get; set; } = string.Empty;
|
|
public int JobApplicationId { get; set; }
|
|
public JobApplication? JobApplication { get; set; }
|
|
// Fingerprint of the attachment selection this note was generated from, so a different
|
|
// attachment selection triggers regeneration without needing an explicit refresh.
|
|
public string AttachmentContextSignature { get; set; } = string.Empty;
|
|
public string Summary { get; set; } = string.Empty;
|
|
public string TalkingPointsJson { get; set; } = "[]";
|
|
public string LikelyQuestionsJson { get; set; } = "[]";
|
|
public string WeakSpotsJson { get; set; } = "[]";
|
|
public DateTimeOffset GeneratedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
}
|