009466ac18
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.1 KiB
1.1 KiB
phase, plan, status, completed_at
| phase | plan | status | completed_at |
|---|---|---|---|
| 20-knowledge-base-cliente | 02 | complete | 2026-06-20 |
Plan 20-02 Summary: Data Layer client_transcripts
What Was Built
Drizzle schema, query layer e server actions per i transcript delle call.
Key Files Modified
src/db/schema.ts— tabellaclientTranscripts+ relazioni bidirezionali + TypeScript typessrc/lib/lead-service.ts—getTranscripts(leadId)con orderBy call_date DESCsrc/app/admin/leads/actions.ts—addTranscript+deleteTranscriptcon requireAdmin
Self-Check: PASSED
- ✓
export const clientTranscripts = pgTable("client_transcripts", ...)in schema.ts - ✓
leadsRelationsaggiornato contranscripts: many(clientTranscripts) - ✓
clientsRelationsaggiornato contranscripts: many(clientTranscripts) - ✓
clientTranscriptsRelationscon one(leads) + one(clients) - ✓
export type ClientTranscripteNewClientTranscriptesportati - ✓
getTranscripts(leadId)ordinato percall_date DESC - ✓
addTranscriptcon requireAdmin + Zod + revalidatePath - ✓
deleteTranscriptcon requireAdmin + revalidatePath - ✓
npx tsc --noEmit→ no errors