@startuml
title SQLx Email Schema Isolation Test Coverage (Before)

skinparam backgroundColor #FFFFFF
skinparam defaultFontColor #000000
skinparam ArrowColor #000000
skinparam ParticipantBorderColor #000000
skinparam ParticipantBackgroundColor #FFE8CC
skinparam DatabaseBorderColor #000000
skinparam NoteBackgroundColor #FFF4D6
skinparam NoteBorderColor #000000

actor "Test Harness" as Test
participant "sqlx_adapter_email_entities_are_isolated_per_schema" as Spec
database "tenant_email_a_* schema" as TenantA
database "tenant_email_b_* schema" as TenantB

Test -> Spec: run schema-isolation integration test
Spec -> TenantA: create/read/update/delete\nemails/failures/templates
Spec -> TenantB: assert no visibility into tenant A rows

note right of Spec
Audit-log tables/queries were not part of this\ncross-tenant isolation verification.
end note

@enduml
