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

Description

Database table storing per-tenant auto-approval rule configuration as structured rows with type, operator, and value columns. Scoped by organization_id for full multi-tenant isolation. Each rule row has an enabled flag so individual dimensions can be toggled without deleting configuration.

Feature: Auto-Approval Rules

auto-approval-rules-table

Responsibilities

  • Persist auto-approval rule rows scoped per organization
  • Support enable/disable toggling per rule without data loss
  • Provide indexed lookup by organization_id for low-latency claim evaluation

Interfaces

findByOrg(orgId): AutoApprovalRule[]
upsertRules(orgId, rules): void
toggleRule(ruleId, enabled): void

Relationships

Dependents (2)

Components that depend on this component