@startuml
title Admin Audit Log List (Before)

skinparam backgroundColor #FFFFFF
skinparam defaultFontColor #000000
skinparam ArrowColor #000000
skinparam SequenceLifeLineBorderColor #000000
skinparam SequenceLifeLineBackgroundColor #F7F7F7
skinparam ParticipantBorderColor #000000
skinparam ParticipantBackgroundColor #FFE8C2
skinparam NoteBackgroundColor #FFE9E9
skinparam NoteBorderColor #000000

actor "Admin Client" as Client
participant "AdminPlugin\n/audit-log/list" as Handler
participant "Tenant Runtime\nDatabaseAdapter" as Adapter
database "tenant.admin_audit_logs" as AuditTable

Client -> Handler: GET /admin/audit-log/list?limit=1
Handler -> Adapter: list_admin_audit_logs(limit, offset)
Adapter -> AuditTable: SELECT ... ORDER BY created_at DESC LIMIT 1 OFFSET 0
AuditTable --> Adapter: 1 row
Adapter --> Handler: Vec<AdminAuditLog>(len=1)
Handler -> Handler: total = logs.len()
Handler --> Client: { total: 1, auditLogs: [1 row] }

note right of Handler
No filter parameters.\n`total` is page length,\nnot full match count.
end note

@enduml
