From 800c98bceaaf9eba7692708c42816f0b517c2247 Mon Sep 17 00:00:00 2001 From: gabogg Date: Thu, 11 Jun 2026 13:23:44 +0000 Subject: [PATCH] docs: use @explita/prisma-audit-log for auditing --- docs/ARCHITECTURE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 280bed2..ca1997a 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -12,7 +12,7 @@ * **ORM**: Prisma ORM (providing type-safe database queries and automated schema migrations). * **Database**: PostgreSQL (decoupled, configured via environment variables to run on any host/network). * **Workflow Engine**: **n8n** (external service triggered via API Webhooks). Runs the actual calculation steps, anomaly checks, AI-assisted audits, and notifications. This allows live monitoring of tasks and flexible AI model switching (e.g., swapping OpenAI/Anthropic/Ollama models within n8n nodes without rebuilding the Next.js codebase). -* **Auditing**: Custom Prisma Client Extension that automatically intercepts mutations (`create`, `update`, `delete`) and logs the changes into an `AuditLog` table. This approach is database-agnostic, requires no native OS dependencies, and runs purely inside the runtime. +* **Auditing**: Ready-to-use, community-proven **`@explita/prisma-audit-log`** Prisma Client Extension. It automatically intercepts database mutations (create, update, delete), tracks changes (old vs new state), handles sensitive field masking (e.g. passwords), and records logs into the `AuditLog` table. This approach is database-agnostic, requires no native OS dependencies, and runs purely inside the runtime. ---