feat(core): add audit log infrastructure (Phase 6)

- Add audit_logs database migration with indexes
- Add AuditLog struct in erp-core with builder pattern
- Support old/new value tracking, IP address, user agent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-11 12:31:27 +08:00
parent c0523e19b4
commit bddd33ac2f
4 changed files with 138 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
pub mod audit;
pub mod error;
pub mod events;
pub mod module;