feat(08-01): add status column to threadCandidates and wire through backend

- Schema: status TEXT NOT NULL DEFAULT 'researching' on thread_candidates
- Zod: candidateStatusSchema enum (researching/ordered/arrived) added to createCandidateSchema
- Service: getThreadWithCandidates selects status, createCandidate sets status, updateCandidate accepts status
- Client hooks: CandidateWithCategory and CandidateResponse types include status field
- Migration generated and applied

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
makiolajandClaude Opus 4.6 committed 2026-03-16 14:09:18 +01:00
1 parent 9342085dd1
commit ca1c2a2e57
8 files changed
+512 -19

No files matched your search

+1
View File
@@ -0,0 +1 @@
ALTER TABLE `thread_candidates` ADD `status` text DEFAULT 'researching' NOT NULL;