Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(database): list audit_logs actions that are actually written

Yudhi Armyndharis5bd45f8ac5bc
diff --git a/docs/05-database-design.md b/docs/05-database-design.md
index a43ed67f1..3376749e6 100644
--- a/docs/05-database-design.md
+++ b/docs/05-database-design.md
@@ -598,12 +598,12 @@ CREATE UNIQUE INDEX "IDX_api_keys_keyHash" ON api_keys("keyHash");
### 5.3.6 audit_logs
-Consolidated audit trail for API-key, session, message, and webhook events. This is the **only** audit table — there are no separate `session_logs`, `webhook_logs`, or `api_key_logs` tables. Lives on the **main** (always-SQLite) connection.
+Consolidated audit trail for API-key, session, send-pacing, rate-limit, queue-dashboard, integration-instance and infrastructure events. This is the **only** audit table — there are no separate `session_logs`, `webhook_logs`, or `api_key_logs` tables. Lives on the **main** (always-SQLite) connection.
```sql
CREATE TABLE audit_logs (
id VARCHAR PRIMARY KEY,
- action VARCHAR(50) NOT NULL, -- e.g. session_created, message_sent, webhook_failed
+ action VARCHAR(50) NOT NULL, -- e.g. session_created, api_key_auth_failed, infra_config_saved
severity VARCHAR(10) NOT NULL DEFAULT 'info', -- info | warn | error
"apiKeyId" VARCHAR(36),
"apiKeyName" VARCHAR(100),