Event Repository
Component Detail
Data Layer
medium complexity
mobile
2
Dependencies
1
Dependents
2
Entities
0
Integrations
Description
Data access layer persisting event records and the event_attendees join table locally via SQLite for offline support. Syncs with the backend REST API through the offline queue. Provides query methods for listing, filtering, and detail retrieval of events and their attendees.
event-repository
Responsibilities
- Persist event records to local SQLite database
- Persist and query event_attendees join table
- Support offline creation with sync queue integration
- Provide filtered event list queries (by date, association, status)
- Map between local SQLite models and REST API payloads
Interfaces
insertEvent(event)
updateEvent(eventId, fields)
deleteEvent(eventId)
getEventById(eventId)
listEvents(filters)
insertAttendee(eventId, userId)
removeAttendee(eventId, userId)
getAttendeesByEvent(eventId)
batchUpsertEvents(events)
getPendingSyncEvents()
Relationships
Dependencies (2)
Components this component depends on
Related Data Entities (2)
Data entities managed by this component