@startuml
skinparam backgroundColor #FFFFFF
skinparam sequence {
  ArrowColor #4A5568
  LifeLineBorderColor #4A5568
  LifeLineBackgroundColor #F5F7FA
  ParticipantBorderColor #1E3A8A
  ParticipantBackgroundColor #DBEAFE
  ParticipantFontColor #1E293B
}
title After: Email Template Catalog Backed by `email_templates`

actor "Operator / Dev" as Dev #FFF4CC
participant "athena-auth server" as Server #DFF7E6
database "PostgreSQL" as DB #FFE9D6
collections "email_templates table\n(template_key, locale, subject/html/text)" as TplTable #EDE9FE
collections "Schema Debug\n/debug/schema" as Debug #DBEAFE

Dev -> Server : provision / migrate database
Server -> DB : CREATE TABLE email_templates (...)
DB --> Server : table available

Dev -> Debug : GET /debug/schema
Debug -> DB : inspect logical tables
DB --> Debug : includes email_templates status
Debug --> Dev : table resolution includes email_templates

note right of TplTable
Template records can now be managed in DB,
allowing runtime-editable email copy.
end note
@enduml