Proxy Activity Repository
Component Detail
Data Layer
medium complexity
mobilebackend
0
Dependencies
4
Dependents
1
Entities
1
Integrations
Description
Data access layer for all proxy and bulk activity records. Provides CRUD operations against Supabase with support for the registered_by / attributed_to field pair and batch insert for bulk registrations.
proxy-activity-repository
Responsibilities
- Insert single proxy activity with full attribution metadata
- Execute batch insert for bulk registrations in a single transaction
- Query activities by attributed_to for mentor reporting
- Query activities by registered_by for coordinator audit views
- Detect duplicate records by composite key (mentor_id, date, activity_type_id)
Interfaces
insertProxyActivity(ProxyActivityRecord record)
insertBulkActivities(List<ProxyActivityRecord> records)
findByAttribution(String mentorId, DateRange range)
findByRegistrant(String coordinatorId, DateRange range)
findDuplicate(String mentorId, DateTime date, String activityTypeId)
findBatchDuplicates(List<DuplicateCheckRequest> requests)
softDelete(String activityId)
getById(String activityId)
Relationships
Dependents (4)
Components that depend on this component
Used Integrations (1)
External integrations and APIs this component relies on