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.

Feature: Mentor Program & Career Workshop Notes

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)

Related Data Entities (2)

Data entities managed by this component