Organization Store
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Data access layer that persists and retrieves organization records and their associated settings from the organizations and organization_settings tables. Provides transactional updates and ensures referential integrity for tenant-scoped configuration.
organization-store
Sources & reasoning
Listed as the first feature of admin-organization in the canonical taxonomy (§8) and required by §193 to host the time-bounded Norse support-access flag. MVP since admin-organization is in the always-on set for the Admin Web Portal.
-
docs/source/likeperson.md · line 193Orgs can grant a Global Admin time-bounded support access via a flag in Organization Settings (e.g. "Allow Norse support access until {date}")
-
docs/source/likeperson.md · line 378admin-organization | Organization Management | Organization Settings, Custom Terminology, Feature Toggles, Multi-Organization Hierarchy, Member Associations, External Portal Integration
Responsibilities
- Read organization and organization_settings rows by org ID
- Write updates to organizations and organization_settings within a transaction
- Map database rows to typed Organization and OrganizationSettings entities
- Enforce tenant isolation at the query level
- Surface optimistic concurrency conflicts on concurrent edits
Interfaces
findOrganizationById(orgId): Organization
findSettingsByOrgId(orgId): OrganizationSettings
saveOrganization(org): Organization
saveSettings(orgId, settings): OrganizationSettings
Related Data Entities (2)
Data entities managed by this component