@startuml
title Before: Legacy Default Auth Schema = public
skinparam backgroundColor #FAFAFA
skinparam componentStyle rectangle
skinparam defaultFontName Consolas

package "Config" #E8F1FF {
  component "schema_detection.auth_schema\n(optional)" as cfg
}

package "Runtime Defaults" #FFE8E8 {
  component "DEFAULT_AUTH_SCHEMA = public" as def
}

package "DB Access" #FFF4E6 {
  component "build_sqlx_adapter()" as build
  component "SqlxAdapter.table_ref(users)" as query
}

database "PostgreSQL" as db

cfg --> build : override when set

def --> build : fallback
build --> query
query --> db : public.users

note bottom of query
Without explicit override,
runtime uses public.*
legacy wiring.
end note
@enduml
