Building an ERP Audit Trail and Activity Log: PostgreSQL, NestJS Interceptors, and React Activity Feed

How to implement a comprehensive audit logging system for a custom ERP — covering PostgreSQL schema design, NestJS interceptor-based logging, JSONB snapshots of before/after state, and a React activity feed component.