Skip to content

feat: add MROS reporting module#3606

Merged
TaprootFreak merged 3 commits intodevelopfrom
feat/mros
Apr 23, 2026
Merged

feat: add MROS reporting module#3606
TaprootFreak merged 3 commits intodevelopfrom
feat/mros

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

  • Adds Mros entity under subdomains/supporting/mros/ for compliance dashboard
  • Tracks SAR / Meldestelle für Geldwäscherei filings linked to UserData
  • Fields: status (enum: Draft/Submitted/Confirmed/Closed), submissionDate, authorityReference, caseManager (free text)
  • Admin-only REST: POST /mros, PUT /mros/:id, GET /mros, GET /mros/:id
  • Migration creates mros table with FK on user_data(id)

Notes

  • Migration uses readable constraint names (PK_mros, FK_mros_userData, …) because it was hand-written. If preferred, regenerate via npm run migration:generate to get the hash-based names consistent with the auto-generated repo style.

Test plan

  • Run migration on DEV, verify mros table + FK created
  • POST /mros with valid payload → 201, row persisted
  • POST without required fields (userDataId/status/caseManager) → 400
  • POST with invalid status value → 400
  • PUT /mros/:id updating status → row updated
  • GET /mros → returns list with userData relation
  • GET /mros/:id → returns single entry, 404 if missing
  • All endpoints reject non-ADMIN users

Adds MROS (Meldestelle für Geldwäscherei) module for compliance dashboard.
Tracks suspicious activity reports linked to UserData with status enum
(Draft, Submitted, Confirmed, Closed), submission date, authority reference
and case manager. Exposes admin-only CRUD endpoints.
Switches MrosController guards from ADMIN to COMPLIANCE so compliance
operators can use the reporting dashboard. ADMIN and SUPER_ADMIN keep
access via the additional roles chain.
@TaprootFreak TaprootFreak merged commit aeb3974 into develop Apr 23, 2026
7 checks passed
@TaprootFreak TaprootFreak deleted the feat/mros branch April 23, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant