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

Description

Data access layer for the report_configs PostgreSQL table. Provides parameterized queries for all CRUD operations with tenant-scoped WHERE clauses to ensure organization isolation. Handles JSON serialization of the report specification blob.

Feature: Custom Reports

report-config-repository

Responsibilities

  • Execute parameterized INSERT, SELECT, UPDATE, DELETE against report_configs
  • Scope all queries by organization_id for tenant isolation
  • Serialize report specification objects to JSON for storage
  • Deserialize stored JSON blobs back to typed specification objects

Interfaces

insert(orgId, userId, name, specJson, shared)
findById(configId, orgId)
findByUser(orgId, userId)
findShared(orgId)
update(configId, patch)
delete(configId)
setShared(configId, shared)

Relationships

Dependents (1)

Components that depend on this component