mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-03 02:04:31 +10:00
Schema: resume gains application_id (the job a copy was made for), trashed_at and auto_name; cover_letter gains tags, is_locked and trashed_at. A new documents router treats resumes and saved letters as one library: list (live or in Trash, with the linked application), counts, rename, setTags, setLocked, linkApplication, trash, restore, purge (only from Trash) and copyForJob, which duplicates a resume, links the copy to the application and gives the application the copy when it has none. - resume.delete and coverLetters.delete now move to Trash. Documents stay there for 30 days and are purged when their owner next lists documents, so no scheduler is needed. - Documents in Trash are left out of resume and letter lists, and a resume in Trash isn't shared: getBySlug and verifyPassword skip it. - Locked documents can't be moved to Trash; locked letters can't be edited. - A blank resume created with autoName takes its headline as its name until someone renames it.