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

Description

Data access layer responsible for reading and writing organization label configurations in Supabase. Manages the org_labels table, providing CRUD operations for label entries and supporting batch updates when an administrator saves a full configuration.

Feature: Organization Labels & Terminology

labels-repository

Responsibilities

  • Fetch all label entries for a given organization from Supabase
  • Persist updated label values with organization scoping
  • Support batch upsert for full configuration saves
  • Provide optimistic update patterns for responsive admin editing

Interfaces

getLabelsByOrganization(organizationId)
upsertLabel(organizationId, key, value)
batchUpsertLabels(organizationId, entries)
deleteLabel(organizationId, key)
resetLabelsToDefaults(organizationId)
getLabelHistory(organizationId, key)
exportLabels(organizationId)
importLabels(organizationId, entries)

Related Data Entities (2)

Data entities managed by this component