Commit Graph

1 Commits

Author SHA1 Message Date
Adrian Flores Cortes
fa67494ec7 feat(ddl): Add FK indexes for 32 missing foreign keys
Creates 99-additional-fk-indexes.sql with indexes for all FKs
that were identified without dedicated index coverage.

Organized by priority:
- HIGH: billing (3), notifications (1), sales (2), commissions (1)
- MEDIUM: audit (2), storage (1), webhooks (1), whatsapp (1)
- LOW: created_by/approved_by fields across multiple schemas

References: TASK-2026-02-03-REMEDIACION-BD (P1)
Based on: INFORME-INTEGRIDAD-REFERENCIAL.md analysis

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 17:18:51 -06:00