Files
OmniRoute/docs/diagrams/db-schema-overview.mmd
diegosouzapw 675668c430 docs(diagrams): create 8 canonical Mermaid sources + folder structure
Introduce docs/diagrams/ with the README index and 8 versioned Mermaid
sources that reflect the v3.8.0 platform:

- request-pipeline.mmd     /v1/chat/completions request pipeline
- auto-combo-9factor.mmd   Auto-Combo 9-factor scoring weights
- resilience-3layers.mmd   Provider breaker / cooldown / model lockout
- i18n-flow.mmd            Hash-based incremental doc translation
- mcp-tools-37.mmd         MCP Server tool inventory by category
- cloud-agent-flow.mmd     Codex / Devin / Jules task lifecycle
- authz-pipeline.mmd       3-class authz pipeline (PUBLIC/CLIENT_API/MANAGEMENT)
- db-schema-overview.mmd   Selected core SQLite relations

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 13:53:56 -03:00

17 lines
672 B
Plaintext

%% Database schema overview (selected core tables)
%% Reflects: src/lib/db/* (45+ modules, 55 migrations)
%% v3.8.0
erDiagram
api_keys ||--o{ api_key_usage : tracks
api_keys ||--o{ rate_limits : enforces
providers ||--o{ provider_connections : holds
provider_connections ||--o{ domain_circuit_breakers : protected_by
combos ||--o{ combo_targets : contains
combos ||--o{ combo_executions : logs
spend_buffer ||--o{ usage_aggregations : flushed_to
memory_documents ||--o{ memory_chunks : split_into
skills_runs ||--o{ skills_logs : produced
agent_tasks ||--o{ agent_task_events : streams
audit_log }|--|| api_keys : by
mcp_audit }|--|| api_keys : by