core/crm-core/docs/architecture.md
2025-12-27 14:32:00 -03:00

10 lines
371 B
Markdown

# crm-core Architecture
`crm-core` follows a layered architecture:
- **API**: HTTP handlers, routing, and middleware.
- **Application**: use cases and orchestration.
- **Domain**: core CRM entities and rules.
- **Infrastructure**: PostgreSQL repositories, JWT validation, logging.
The service is multi-tenant by design and enforces `tenant_id` on all database access.