Proxy Activity Repository
Component Detail
Data Layer
medium complexity
backendmobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Data-access layer for activity records that carry dual user references. Provides typed queries for coordinator proxy history, mentor attribution lookups, and offline outbox serialization that preserves the proxy payload through sync and conflict-resolution cycles.
proxy-activity-repository
Responsibilities
- Persist activity rows with both submitted_by_coordinator_id and performed_by_mentor_id indexed columns
- Query proxy activities by coordinator ID or by attributed mentor ID
- Serialize and deserialize proxy mutation payloads for the offline outbox
Interfaces
insertProxyActivity(row: ProxyActivityRow): Future<int>
getByCoordinator(coordinatorId: String): Future<List<Activity>>
getByMentorWithProxyFlag(mentorId: String): Future<List<Activity>>
enqueueOfflineMutation(payload: ProxyMutationPayload): Future<void>