Organization Config Store
Component Detail
Data Layer
low complexity
backend
0
Dependencies
2
Dependents
4
Entities
0
Integrations
Description
Data access layer for organization settings persistence in PostgreSQL. Manages the organization_settings table with one-to-one relationship to organizations, handling reads and writes for display name, logo URL, contact details, default language, date formats, and currency preferences.
organization-config-store
Responsibilities
- Persist and retrieve organization configuration from the organization_settings table
- Maintain one-to-one relationship between organizations and their settings
- Support partial updates for individual settings fields
- Provide default values for newly onboarded organizations
Interfaces
findByOrganizationId(orgId: string): OrganizationSettings | null
create(orgId: string, defaults: OrganizationSettingsDefaults): OrganizationSettings
update(orgId: string, data: Partial<OrganizationSettings>): OrganizationSettings
getDefaultSettings(): OrganizationSettingsDefaults
updateLogoUrl(orgId: string, url: string): void
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (4)
Data entities managed by this component