Data Layer medium complexity backend
0
Dependencies
3
Dependents
0
Entities
0
Integrations

Description

Repository managing the report_configs table where saved report specifications are persisted. Stores the declarative specification as JSON alongside ownership, sharing scope, and usage metadata per organization.

Feature: Custom Reports

report-config-store

Responsibilities

  • CRUD operations on report_configs table
  • Query configs by organization and user with sharing scope filtering
  • Track last-run timestamp and run count per config
  • Enforce organization-level tenant isolation on all queries

Interfaces

create(orgId, userId, name, specification)
findById(configId)
findByOrganization(orgId, userId)
findShared(orgId)
update(configId, updates)
delete(configId)
updateLastRun(configId)
countByOrganization(orgId)

Relationships

Dependents (3)

Components that depend on this component