@startuml
skinparam backgroundColor #FFFFFF
skinparam defaultFontColor #000000
skinparam ArrowColor #000000
skinparam componentBorderColor #000000
skinparam packageBorderColor #000000
skinparam noteBorderColor #000000
skinparam noteBackgroundColor #FFF9E6
skinparam shadowing false
left to right direction

title Admin Email Template Management (Before)

rectangle "Admin API" as AdminApi #EAF2FF {
  component "GET /admin/email/list" as EmailList #D8E8FF
  component "No email template CRUD endpoints" as NoCrud #F4F4F4
}

rectangle "Tenant Runtime" as TenantRuntime #F6F6F6 {
  database "tenant_n.email_templates" as TplTable #FFFFFF
}

actor "Admin Operator" as Admin

Admin --> EmailList : uses audit/support email visibility
Admin --> NoCrud : cannot manage templates
NoCrud ..> TplTable : requires direct SQL/manual migration scripts

note right of TplTable
Templates table exists,
but runtime admin surface
cannot create/read/update/delete
rows for tenant-local copy.
end note
@enduml
