template-saas/orchestration/_inheritance.yml
Adrian Flores Cortes e5a6f1300a
Some checks are pending
CI / Backend CI (push) Waiting to run
CI / Frontend CI (push) Waiting to run
CI / Security Scan (push) Waiting to run
CI / CI Summary (push) Blocked by required conditions
[SYNC] docs: Update _inheritance.yml with correct version and modules
- Version aligned to 1.2.1 (matching INHERITANCE-MODEL.yml)
- Module list expanded to match erp-core expectations
- Added schema definitions
- Fixed naming: companies→tenants, audit-logs→audit

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 18:23:09 -06:00

135 lines
7.0 KiB
YAML

# ═══════════════════════════════════════════════════════════════════════════════
# _inheritance.yml - Template SaaS
# ═══════════════════════════════════════════════════════════════════════════════
#
# Sistema: SIMCO v4.3.0 + NEXUS v4.0
# Propósito: Define herencia y exportación de patrones
# Fecha: 2026-01-24
#
# ═══════════════════════════════════════════════════════════════════════════════
tipo: PROVIDER
version: "1.2.1"
fecha_creacion: "2026-01-16"
fecha_actualizacion: "2026-01-24"
# ─────────────────────────────────────────────────────────────────────────────
# HERENCIA
# ─────────────────────────────────────────────────────────────────────────────
hereda_de:
- workspace-v2/orchestration/ # Directivas globales SIMCO
# ─────────────────────────────────────────────────────────────────────────────
# EXPORTACIÓN
# ─────────────────────────────────────────────────────────────────────────────
exporta_a:
- erp-core # INTERMEDIATE - Suite ERP
- gamilit # STANDALONE - Proyecto educativo
- michangarrito # STANDALONE - Taller mecánico
- trading-platform # STANDALONE - Plataforma trading
# ─────────────────────────────────────────────────────────────────────────────
# PATRONES EXPORTADOS
# ─────────────────────────────────────────────────────────────────────────────
patrones_exportados:
arquitectura:
- multi-tenancy # Arquitectura multi-tenant
- api-structure # Estructura de API NestJS
- frontend-structure # Estructura de frontend React
- database-schema # Patrones de esquema DDL
seguridad:
- auth-jwt # Autenticación JWT
- rbac # Control de acceso por roles
- rate-limiting # Limitación de tasa
infraestructura:
- docker-compose # Configuración Docker
- migrations # Sistema de migraciones
- seeding # Sistema de seeds
documentacion:
- orchestration-structure # Estructura orchestration/
- docs-structure # Estructura docs/
- inventory-format # Formato de inventarios
# ─────────────────────────────────────────────────────────────────────────────
# REGLAS DE PROPAGACIÓN
# ─────────────────────────────────────────────────────────────────────────────
reglas_propagacion:
security_fixes:
sla: "inmediato"
prioridad: P0
descripcion: "Fixes de seguridad se propagan inmediatamente"
bug_fixes:
sla: "72h"
prioridad: P1
descripcion: "Bug fixes se propagan en 72 horas"
features:
sla: "siguiente_sprint"
prioridad: P2
descripcion: "Features se propagan en siguiente sprint"
documentation:
sla: "inmediato"
prioridad: P1
descripcion: "Cambios de documentación se propagan inmediatamente"
# ─────────────────────────────────────────────────────────────────────────────
# MÓDULOS CORE
# ─────────────────────────────────────────────────────────────────────────────
modulos_core:
backend:
- auth # Autenticación JWT + OAuth + MFA
- tenants # Multi-tenancy con RLS (alias: companies)
- users # Gestión de usuarios y perfiles
- billing # Integración Stripe
- plans # Planes y límites
- webhooks # Sistema de webhooks con BullMQ
- feature-flags # Feature toggles por tenant/plan
- ai-integration # Multi-LLM (Claude, GPT-4, Gemini)
- whatsapp # WhatsApp Business API
- notifications # Sistema multicanal
- audit # Auditoría completa (alias: audit-logs)
- analytics # Dashboard de métricas
- reports # Exportación PDF/Excel/CSV
- storage # S3, R2, MinIO
- email # SendGrid, SES, SMTP
- oauth # OAuth providers
frontend:
- auth # Componentes de autenticación
- layout # Layouts principales
- common # Componentes comunes
- hooks # Hooks personalizados
- dashboard # Dashboard principal
- settings # Configuración
database:
- public # Esquema principal (RLS enabled)
- audit # Tablas de auditoría
- system # Configuración de sistema
schemas:
prefix: "saas"
lista:
- public # Tablas principales con RLS
- audit # Logs y auditoría
# ─────────────────────────────────────────────────────────────────────────────
# NOTAS
# ─────────────────────────────────────────────════════════════════════════════
notas:
- "Template SaaS es el PROVEEDOR principal de patrones arquitectónicos"
- "Todos los proyectos que heredan deben sincronizar según SLA definido"
- "Cambios breaking requieren coordinación con todos los consumidores"
- "Este archivo es OBLIGATORIO según SIMCO-ESTANDAR-ORCHESTRATION.md"