Workshop Repository
Component Detail
Data Layer
medium complexity
mobilebackend
0
Dependencies
4
Dependents
2
Entities
0
Integrations
Description
Data access layer for mentor program sessions and workshop participants. Handles all CRUD operations against the mentor_program_sessions and workshop_participants tables, including JSON to-do list serialization and day-based notes storage. Provides offline-capable local caching aligned with the app's sync infrastructure.
workshop-repository
Responsibilities
- Persist and retrieve mentor_program_sessions records
- Manage workshop_participants join records with attendance data
- Serialize and deserialize JSON to-do checklists within session records
- Support offline read access with sync-on-reconnect pattern
Interfaces
createSession(session)
updateSession(sessionId, fields)
deleteSession(sessionId)
getSession(sessionId)
listSessionsByOrganization(organizationId)
addParticipant(sessionId, contactId)
removeParticipant(participantId)
getParticipants(sessionId)
updateAttendance(participantId, attendanceData)
saveSessionNotes(sessionId, dayNumber, content)
getSessionNotes(sessionId, dayNumber)
saveTodos(sessionId, todos)
getTodos(sessionId)
Relationships
Dependents (4)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component