@startuml
skinparam backgroundColor #FFFFFF
skinparam sequence {
  ArrowColor #5B6673
  LifeLineBorderColor #5B6673
  LifeLineBackgroundColor #EEF3F8
  ParticipantBorderColor #2E4057
  ParticipantBackgroundColor #DCEAF7
  ParticipantFontColor #1F2A44
}
title Before: No Dedicated Email Template Catalog Table

actor "Operator / Dev" as Dev #FFF4CC
participant "athena-auth server" as Server #DFF7E6
database "PostgreSQL" as DB #FFE9D6
collections "Built-in code templates\ncrates/core/src/email/templates.rs" as CodeTpl #F3E8FF

Dev -> Server : trigger auth email flow
Server -> CodeTpl : load static subject/body template
Server -> DB : insert audit rows into emails / email_send_failures
DB --> Server : persisted delivery logs
Server --> Dev : email sent using code-defined template

note right of Server
Template content source is code.
Database only stores delivery outcomes.
end note
@enduml