@startuml
title Schema Debug Mapping (Before Alias Expansion)
skinparam backgroundColor #FFFFFF
skinparam sequence {
  ArrowColor #334155
  ParticipantBorderColor #334155
  ParticipantBackgroundColor #EEF2FF
  ParticipantFontColor #0F172A
}

actor "Demo UI" as UI
participant "GET /api/auth/debug/schema" as Endpoint #DBEAFE
database "Schema Probe" as Probe #E2E8F0

UI -> Endpoint: Request debug payload
Endpoint -> Probe: Probe only primary logical + mapped tables
Probe --> Endpoint: Per-table schema visibility
Endpoint --> UI: table_resolution rows
note right of Endpoint #FEE2E2
Before:
- Primary lookup table only
- No explicit secondary singular/plural table pair
- Status booleans mainly exposed as single found flag
- No global alias config block listing all core tables
end note
@enduml
