mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Replace the Supabase application data plane with the Node/PostgreSQL API, migrate mobile, admin, web, and MCP callers, add controlled cutover tooling, and define hardened Dokploy infrastructure.
17 lines
543 B
TypeScript
17 lines
543 B
TypeScript
export interface AuditLogEntry {
|
|
action: 'INSERT' | 'UPDATE' | 'DELETE';
|
|
table_name: string;
|
|
record_id?: string;
|
|
old_values?: Record<string, unknown> | null;
|
|
new_values?: Record<string, unknown> | null;
|
|
admin_user_id?: string;
|
|
}
|
|
|
|
/**
|
|
* Standalone admin API mutations are authorized and audited atomically by the
|
|
* API. This compatibility hook deliberately does not create a duplicate row.
|
|
*/
|
|
export async function logAudit(_entry: AuditLogEntry): Promise<void> {
|
|
// The called admin API mutation owns the audit transaction.
|
|
}
|