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.

Feature: Assignment Count & Honorarium Threshold Tracking

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

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component