# ============================================================================== # CONSTANTES DEL PROYECTO: Template-SaaS # ============================================================================== # # Single Source of Truth para constantes especificas de este proyecto. # Extiende las constantes del workspace. # # ============================================================================== version: "1.0.0" project: "template-saas" updated: "2026-01-24" # ------------------------------------------------------------------------------ # IDENTIFICACION # ------------------------------------------------------------------------------ identificacion: nombre: "Template SaaS" slug: "template-saas" tipo: "STANDALONE" estado: "completado" version: "1.0.0" descripcion: "Template base para aplicaciones SaaS multi-tenant" # ------------------------------------------------------------------------------ # BASE DE DATOS # ------------------------------------------------------------------------------ database: nombre: "template_saas_platform" tipo: "postgresql" version: "16" schemas: - "auth" - "tenants" - "users" - "billing" - "plans" - "notifications" - "feature_flags" - "audit" - "ai" - "storage" - "webhooks" - "whatsapp" # ------------------------------------------------------------------------------ # TECNOLOGIAS # ------------------------------------------------------------------------------ stack: backend: framework: "nestjs" version: "10.x" language: "typescript" frontend: framework: "react" version: "18.x" language: "typescript" bundler: "vite" styling: "tailwindcss" database: engine: "postgresql" version: "16" rls: true # ------------------------------------------------------------------------------ # HERENCIA # ------------------------------------------------------------------------------ herencia: tipo: "STANDALONE" hereda_de: - "workspace-v2/orchestration/" - "workspace-v2/shared/catalog/" exporta_a: - "projects/erp-core/" # ------------------------------------------------------------------------------ # MODULOS CORE SAAS # ------------------------------------------------------------------------------ modulos_saas: - nombre: "auth" descripcion: "JWT, OAuth, MFA" propaga_a: "erp-core" - nombre: "tenants" descripcion: "Multi-tenancy con RLS" propaga_a: "erp-core" - nombre: "billing" descripcion: "Stripe integration" propaga_a: "erp-core" - nombre: "plans" descripcion: "Planes y limites" propaga_a: "erp-core" - nombre: "notifications" descripcion: "Email, push, in-app" propaga_a: "erp-core" - nombre: "webhooks" descripcion: "Outbound webhooks" propaga_a: "erp-core" - nombre: "feature-flags" descripcion: "Toggles por plan/tenant" propaga_a: "erp-core" - nombre: "ai-integration" descripcion: "Multi-provider LLM wrapper" propaga_a: "erp-core" - nombre: "whatsapp" descripcion: "WhatsApp Business API" propaga_a: "erp-core" # ------------------------------------------------------------------------------ # VARIABLES DE ENTORNO REQUERIDAS # ------------------------------------------------------------------------------ env_required: - "DATABASE_URL" - "JWT_SECRET" - "JWT_EXPIRATION" - "REDIS_URL" - "STRIPE_SECRET_KEY" - "STRIPE_WEBHOOK_SECRET" # ============================================================================== # FIN DE CONSTANTES # ==============================================================================