- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
489 B
489 B
ADR-004: Database Scaling & Engine Preservation
Context
Platform requires high transactional performance without abandoning existing codebase investments.
Decision
Preserve existing MySQL 8.0+ / PyMySQL / SQLAlchemy stack as the Transactional Source of Truth. Scaling achieves via Read Replicas (Stage 2), MySQL Table Partitioning (Stage 3), and future evaluation of Vitess/MySQL sharding (Stage 4). PostgreSQL/Citus rejected to prevent breaking existing MySQL ORM mappings.