# Workflow Process Scheme The `WorkflowProcessScheme` table is part of the [PostgreSQL database schema](https://docs.workflowengine.io/database-schema/postgresql/) used by Workflow Engine. The `WorkflowProcessScheme` table stores compiled process schemes used by running process instances. This page lists the table columns in database order together with types, nullability, primary keys, defaults, and indexes. ## Table columns The `WorkflowProcessScheme` table contains 11 columns in database order. Data types and default expressions use the syntax defined by PostgreSQL. Table: WorkflowProcessScheme columns | Position | Column | Database type | Nullable | Primary key | Default | |----------|--------|---------------|----------|-------------|---------| | 1 | `Id` | `uuid` | No | Yes | - | | 2 | `Scheme` | `text` | No | No | - | | 3 | `DefiningParameters` | `text` | Yes | No | - | | 4 | `DefiningParametersHash` | `character varying(24)` | Yes | No | - | | 5 | `SchemeCode` | `character varying(256)` | No | No | - | | 6 | `IsObsolete` | `boolean` | No | No | - | | 7 | `RootSchemeCode` | `character varying(256)` | Yes | No | - | | 8 | `RootSchemeId` | `uuid` | Yes | No | - | | 9 | `AllowedActivities` | `text` | Yes | No | - | | 10 | `StartingTransition` | `text` | Yes | No | - | | 11 | `TenantId` | `character varying(128)` | Yes | No | - | ## Database indexes The `WorkflowProcessScheme` table defines 2 database indexes. Definitions retain the column or field order and sort direction used by the database. Table: WorkflowProcessScheme indexes | Index | Unique | Definition | |-------|--------|------------| | `WorkflowProcessScheme_SchemeCode_TenantId_RootSchemeId_Obs_idx` | No | `CREATE INDEX "WorkflowProcessScheme_SchemeCode_TenantId_RootSchemeId_Obs_idx" ON public."WorkflowProcessScheme" USING btree ("SchemeCode", "TenantId", "RootSchemeId", "IsObsolete")` | | `WorkflowProcessScheme_pkey` | Yes | `CREATE UNIQUE INDEX "WorkflowProcessScheme_pkey" ON public."WorkflowProcessScheme" USING btree ("Id")` |