audit: refactor targets SD-168
This MR is part of the Story to support user deletion and account merges. It:
- migrates ActivityLogs to use Account instead of User table
- add new Account target, different from author of the audit event
- add new targets: Competition and Event for better monitoring
- refactor audit API for easier calls (
insertByAccount
,insertByCompetition
, etc) - reorganise audit events following domain slugs (in
src/modules/audit/enums/audit-event.enum.ts
) - review all calls and utilisations, cleaning up metadata
There should be no new business logic introduced in this MR
Edited by Fabio Maschi