Honorarium Repository
Component Detail
Data Layer
medium complexity
backend
1
Dependencies
1
Dependents
4
Entities
0
Integrations
Description
Data access layer responsible for reading and writing honorarium threshold configurations from the honorarium_thresholds table and persisting denormalized assignment counter values for performance. Provides query interfaces consumed by the Threshold Tracking Service and reporting pipeline.
honorarium-repository
Responsibilities
- CRUD operations for honorarium_thresholds records per local association
- Read and update denormalized assignment counter columns on peer_mentors
- Query threshold crossing history for reporting and reimbursement exports
- Provide bulk counter reads for coordinator team report views
Interfaces
getThresholdsByAssociation(localAssociationId)
createThresholdConfig(config)
updateThresholdConfig(associationId, config)
getPeerMentorCounter(peerMentorId)
updatePeerMentorCounter(peerMentorId, count)
getCountersForAssociation(localAssociationId)
getThresholdCrossingHistory(peerMentorId)
getPeerMentorsNearThreshold(associationId, proximityCount)
bulkGetCounters(peerMentorIds)
Relationships
Related Data Entities (4)
Data entities managed by this component