Commit Graph

57 Commits

Author SHA1 Message Date
Consultoria AS
a81d8437ce feat(api): add CFDI API endpoints (list, detail, resumen)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 02:21:25 +00:00
Consultoria AS
4d0d23c642 feat(api): add dashboard API endpoints (kpis, ingresos-egresos, resumen-fiscal, alertas) 2026-01-22 02:19:22 +00:00
Consultoria AS
5bd5f9cef9 feat(api): add tenant middleware for multi-tenant schema isolation 2026-01-22 02:17:15 +00:00
Consultoria AS
79b771b650 feat: add database seed with demo data and Docker Compose setup
- Seed creates demo tenant, users (admin, contador, visor)
- Creates tenant schema with cfdis, iva_mensual, alertas tables
- Inserts 50 demo CFDIs and 6 months of IVA records
- Docker Compose with PostgreSQL, API, and Web services
- Demo credentials: admin/contador/visor @demo.com / demo123

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 02:02:30 +00:00
Consultoria AS
e54019ba01 feat: implement JWT authentication system
Add complete authentication infrastructure including:
- Password hashing utilities with bcrypt
- JWT token generation and verification
- Auth service with register, login, refresh, and logout
- Auth controller with Zod validation
- Auth middleware for route protection
- Auth routes mounted at /api/auth

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 01:54:13 +00:00
Consultoria AS
18bdb24478 feat: add Prisma schema with multi-tenant support
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 01:51:48 +00:00
Consultoria AS
af617627a4 feat: add Express API base structure
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 01:50:22 +00:00