Data Layer low complexity mobilebackend
0
Dependencies
3
Dependents
0
Entities
0
Integrations

Description

Local Drift table and corresponding backend PostgreSQL table storing event records. All rows are keyed by organization ID for strict tenant isolation. Supports offline event creation with automatic sync to the backend when connectivity is restored.

Feature: Event Creation

events-table

Responsibilities

  • Persist event records locally in Drift encrypted SQLite for offline-first operation
  • Mirror confirmed events to the backend PostgreSQL table via the mutation sync pipeline
  • Enforce organization-level tenant isolation on all read and write operations
  • Support full CRUD operations required for event lifecycle management

Interfaces

insertEvent(EventsCompanion companion) Future<int>
updateEvent(EventsCompanion companion) Future<bool>
deleteEvent(int localId) Future<int>
getEventById(int localId) Future<Event?>
watchEventsByOrganization(String orgId) Stream<List<Event>>
getEventsByOrganization(String orgId) Future<List<Event>>

Relationships

Dependents (3)

Components that depend on this component