Context
Le aziende hanno il modello piu' complesso con relazioni a contatti, categorie, e tabelle lookup (ARR, employee range, connection strength).
Objective
Creare src/db/repositories/company-repository.ts con:
- getAllCompanies(): Company[]
- getCompanyById(id: string): Company | null
- createCompany(data): Company
- updateCompany(id, data): Company | null
- removeCompany(id): boolean
- Gestione delle join tables: company_contacts, company_categories
- Risoluzione FK lookup: connectionStrengthId, estimatedArrId, employeeRangeId
Acceptance Criteria
Dependencies
Depends on: #6
Notes
Phase: Fase 2
Ref: FR-004
Context
Le aziende hanno il modello piu' complesso con relazioni a contatti, categorie, e tabelle lookup (ARR, employee range, connection strength).
Objective
Creare src/db/repositories/company-repository.ts con:
Acceptance Criteria
Dependencies
Depends on: #6
Notes
Phase: Fase 2
Ref: FR-004