
# Arquitectura Técnica ERP

## Stack recomendado
Backend: NestJS o FastAPI
Base de datos: PostgreSQL
ORM: Prisma
Frontend: Next.js
Infraestructura: Docker + AWS (ECS o EKS)
Storage documentos: S3

---

## Principios
- Nada se borra (soft delete)
- Todo movimiento genera audit_log
- Stock se calcula por movimientos
- Multi-tenant por organization_id

---

## Módulos
1. Cultivo
2. Cosecha
3. Secado
4. Lote final
5. Inventario
6. Socios
7. Cupo mensual
8. Auditoría
