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

Description

Drift table storing caregiver and next-of-kin records as a one-to-many child of the contacts table. Queried reactively alongside the parent contact record. Includes relationship_type as an enum column (parent, spouse, sibling, professional_carer, other) to support future filtering and reporting.

Feature: Caregiver & Next-of-Kin

caregiver-contacts-table

Responsibilities

  • Persist caregiver records locally with contactId foreign key
  • Store name, relationship_type, phone, and notes fields
  • Participate in offline mutation outbox for sync with backend caregiver_contacts table
  • Support reactive queries returning caregiver list per contact

Interfaces

caregiverContactsDao.watchByContactId(contactId: String): Stream<List<CaregiverContact>>
caregiverContactsDao.insert(entry: CaregiverContactsCompanion): Future<void>
caregiverContactsDao.update(entry: CaregiverContactsCompanion): Future<void>
caregiverContactsDao.deleteById(id: String): Future<void>

Relationships

Dependents (1)

Components that depend on this component