Event Store
Component Detail
Data Layer
medium complexity
mobile
0
Dependencies
1
Dependents
4
Entities
0
Integrations
Description
Data access layer managing event persistence through the shared PostgreSQL events table via REST API. Handles organization-scoped queries enforcing tenant isolation and provides local caching for created events.
event-store
Responsibilities
- Send event creation requests to backend REST API
- Cache newly created events locally for immediate UI display
- Apply organization scope to all event queries
- Map API responses to local event data models
Interfaces
saveEvent(eventData)
getEventById(eventId)
getEventsByOrganization(orgId)
getCachedEvent(eventId)
clearEventCache()
mapApiResponseToEvent(response)
Relationships
Related Data Entities (4)
Data entities managed by this component