Report Repository
Component Detail
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.
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)
Related Data Entities (4)
Data entities managed by this component