Context
Le note CRM sono collegate a contatti, aziende e deals. L'interfaccia Notes include anche campi come isFavorite (usato inline nei componenti).
Objective
Creare src/db/repositories/note-repository.ts con:
- getAllNotes(): Notes[]
- getNoteById(id: string): Notes | null
- createNote(data): Notes
- updateNote(id, data): Notes | null
- removeNote(id): boolean
- getNotesByContact(contactId): Notes[]
- Gestione join tables: note_contacts, note_companies, note_deals
Acceptance Criteria
Dependencies
Depends on: #6
Notes
Phase: Fase 2
Ref: FR-004
Context
Le note CRM sono collegate a contatti, aziende e deals. L'interfaccia Notes include anche campi come isFavorite (usato inline nei componenti).
Objective
Creare src/db/repositories/note-repository.ts con:
Acceptance Criteria
Dependencies
Depends on: #6
Notes
Phase: Fase 2
Ref: FR-004