Data Layer medium complexity backend
0
Dependencies
0
Dependents
4
Entities
0
Integrations

Description

Data access layer for Bufdir report snapshots and reporting periods. Stores immutable generated report snapshots to ensure auditability even if source activity data changes post-generation. Supports querying by organization and period with proper scoping.

Feature: Bufdir Automated Reporting

report-repository

Responsibilities

  • Persist generated report snapshots with metadata
  • Retrieve report history by organization and period
  • Manage report period definitions per organization
  • Enforce organization-scoped data access

Interfaces

saveReport(report)
getReportById(reportId)
getReportsByOrganization(organizationId)
getReportsByPeriod(organizationId, periodId)
saveReportPeriod(period)
getReportPeriods(organizationId)
deleteReport(reportId)
updateReportStatus(reportId, status)