At a Glance
Module purpose: Document-flow and accounting-period machinery — approval workflows, accounting periods, dimensions, document numbering, app config, menu · Audience: Sysadmin, Workflow Administrator, Finance (period close) · Key entities/tables:tb_workflow,tb_period,tb_dimension,tb_config_running_code,tb_application_config,tb_menu· Sub-pages: 11

System Configuration is the umbrella for the document-flow and accounting-period machinery that every transactional module depends on. Workflows define multi-stage approval routing with per-stage actions, recipients, and field visibility. Periods define the accounting calendar and gate which dated postings are allowed. Dimensions are the user-extensible custom-field system threaded through every transactional table. Running codes drive document numbering. Application config is the generic key-value escape hatch. The menu registry feeds the app shell.
The six entities here sit between master-data (the static catalogues — units, vendors, currencies) and the runtime access-control layer (users, roles, permissions). Where master data answers what a transaction is referencing, system configuration answers how it should flow, when it should post, and what extra dimensions it should carry. Most rows are owned and edited by Sysadmin; a few — workflow stages and dimension catalogues in particular — see day-to-day adjustment from a designated Workflow Administrator.
All six entities live in the tenant schema. None of them have a platform counterpart — they describe per-property document flow, so each tenant gets its own copy.
Sysadmin. Workflow definition may be delegated to a Workflow Administrator persona (typically the Finance Manager or Procurement Manager) for day-to-day stage / approver maintenance. Finance owns period close.
| Entity | Purpose | Managed by |
|---|---|---|
| workflow | Multi-stage approval workflows with per-stage actions, recipients, field visibility | Sysadmin / Workflow Admin |
| period | Accounting periods (open/closed/locked) and per-period inventory snapshots | Sysadmin / Finance |
| dimension | User-defined custom fields with per-place display matrix | Sysadmin |
| running-code | Document-number patterns per document type | Sysadmin |
| application-config | Tenant-wide key-value settings + per-user preference overrides | Sysadmin |
| menu | Navigation registry rendered by the app shell | Sysadmin |
| query-dataset | SQL Workbench — author tenant views, stored procedures, and functions as reusable data sources | Sysadmin |
| dashboard-dataset | Read-only catalog of code-registered data feeds available to dashboard widgets | Sysadmin |
| config-email | Per-BU SMTP profile for outbound system email — workflow notifications, scheduled reports, password reset | Sysadmin |
| document | Tenant-scoped file-storage registry — upload, list, download, and delete for documents attached to transactional records | Sysadmin |
| doc-version | Optimistic-concurrency doc_version guard — clients echo the version on save or get a 409 |
Engineering |
tb_period_snapshot).../carmen-turborepo-backend-v2/packages/prisma-shared-schema-tenant/prisma/schema.prisma.../carmen/docs/workflow-permissions-system.md (workflow role types and the permission matrix consumed by system-config/workflow).../carmen-turborepo-backend-v2/packages/prisma-shared-schema-tenant/prisma/seed-data-a01/ — tb_workflow.json, tb_config_running_code.json, tb_application_config.json..specs/2026-05-16-master-config-design.md..specs/2026-05-16-master-config-plan.md.