# ERP Base Platform **ID:** erp-base **Version:** 1.0.0 **Estado:** production **Proyecto base:** erp-core **Ultima actualizacion:** 2026-01-04 --- ## Descripcion Base para sistemas ERP multi-vertical. Incluye arquitectura multi-tenant, modulos core compartidos, y framework para desarrollar verticales especificas. ## Arquitectura ``` erp-base/ ├── erp-core/ # Core compartido │ ├── backend/ │ │ ├── modules/ │ │ │ ├── auth/ # Multi-tenant auth │ │ │ ├── users/ # Usuarios y roles │ │ │ ├── tenants/ # Gestion de tenants │ │ │ ├── invoicing/ # Facturacion │ │ │ ├── inventory/ # Inventarios │ │ │ └── accounting/ # Contabilidad basica │ │ └── shared/ │ └── frontend/ │ ├── admin-dashboard/ │ └── shared-components/ ├── verticals/ # Verticales especificas │ ├── construccion/ │ ├── clinicas/ │ ├── retail/ │ ├── mecanicas-diesel/ │ └── vidrio-templado/ └── database/ └── schemas/ ├── core/ # Esquema compartido └── {vertical}/ # Esquema por vertical ``` ## Modulos Core Incluidos | Modulo | Categoria | Version | |--------|-----------|---------| | auth-jwt-nestjs | authentication | 2.1.0 | | auth-multi-tenant | authentication | 2.0.0 | | users-roles-permissions | user-management | 2.0.0 | | users-multi-tenant | user-management | 2.0.0 | | ui-admin-dashboard | ui-components | 2.0.0 | | ui-data-tables | ui-components | 2.0.0 | | api-filtering-sorting | api-patterns | 1.2.0 | | db-audit-trail | database-patterns | 1.5.0 | | db-multi-tenant-schema | database-patterns | 2.0.0 | | db-versioning | database-patterns | 1.0.0 | | notifications-email-ses | notifications | 1.0.0 | | integration-odoo-connector | integrations | 1.5.0 | ## Patron Multi-Tenant ``` Tenant A ─┐ Tenant B ─┼─> ERP Core ──> Shared Database with RLS Tenant C ─┘ Cada tenant tiene: - Esquema propio (tenant_{id}) - RLS policies automaticas - Datos aislados ``` ## Verticales Disponibles | Vertical | Estado | Completitud | |----------|--------|-------------| | erp-construccion | development | 35% | | erp-clinicas | development | 0% | | erp-retail | development | 0% | | erp-mecanicas-diesel | development | 0% | | erp-vidrio-templado | development | 0% | ## Stack Tecnologico - **Backend:** NestJS + TypeORM + PostgreSQL - **Frontend:** React + TypeScript + TailwindCSS - **Multi-tenant:** Row Level Security (RLS) - **Integracion:** Odoo connector ## Referencia de Implementacion ``` /home/isem/workspace-v1/projects/erp-core/ /home/isem/workspace-v1/projects/erp-suite/ ``` --- **Mantenedor:** @PERFIL_ARCHITECTURE_ANALYST