Data Layer medium complexity mobile
0
Dependencies
1
Dependents
1
Entities
0
Integrations

Description

Data access layer managing event persistence across local SQLite (offline drafts) and the remote PostgreSQL database (via the REST API through Event Service). Handles draft caching, retrieval, and cleanup after successful sync.

Feature: Event Creation

event-repository

Responsibilities

  • Persist event drafts to local SQLite when network is unavailable
  • Retrieve pending drafts on app start for sync and recovery prompts
  • Delete local draft after successful remote submission
  • Provide read access to locally cached events for offline list display
  • Expose sync status per draft for progress reporting

Interfaces

saveDraft(EventDraft draft)
getDraft(String draftId)
getAllPendingDrafts()
deleteDraft(String draftId)
markDraftSynced(String draftId)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component