# Workflow Approval History The `WorkflowApprovalHistory` table is part of the [PostgreSQL database schema](https://docs.workflowengine.io/database-schema/postgresql/) used by Workflow Engine. The `WorkflowApprovalHistory` table stores approval decisions associated with process instances. This page lists the table columns in database order together with types, nullability, primary keys, defaults, and indexes. ## Table columns The `WorkflowApprovalHistory` table contains 11 columns in database order. Data types and default expressions use the syntax defined by PostgreSQL. Table: WorkflowApprovalHistory columns | Position | Column | Database type | Nullable | Primary key | Default | |----------|--------|---------------|----------|-------------|---------| | 1 | `Id` | `uuid` | No | Yes | - | | 2 | `ProcessId` | `uuid` | No | No | - | | 3 | `IdentityId` | `character varying(1024)` | Yes | No | - | | 4 | `AllowedTo` | `text` | Yes | No | - | | 5 | `TransitionTime` | `timestamp without time zone` | Yes | No | - | | 6 | `Sort` | `bigint` | Yes | No | - | | 7 | `InitialState` | `character varying(1024)` | No | No | - | | 8 | `DestinationState` | `character varying(1024)` | No | No | - | | 9 | `TriggerName` | `character varying(1024)` | Yes | No | - | | 10 | `Commentary` | `text` | Yes | No | - | | 11 | `TenantId` | `character varying(128)` | Yes | No | - | ## Database indexes The `WorkflowApprovalHistory` table defines 3 database indexes. Definitions retain the column or field order and sort direction used by the database. Table: WorkflowApprovalHistory indexes | Index | Unique | Definition | |-------|--------|------------| | `WorkflowApprovalHistory_IdentityId_idx` | No | `CREATE INDEX "WorkflowApprovalHistory_IdentityId_idx" ON public."WorkflowApprovalHistory" USING btree ("IdentityId")` | | `WorkflowApprovalHistory_ProcessId_idx` | No | `CREATE INDEX "WorkflowApprovalHistory_ProcessId_idx" ON public."WorkflowApprovalHistory" USING btree ("ProcessId")` | | `WorkflowApprovalHistory_pkey` | Yes | `CREATE UNIQUE INDEX "WorkflowApprovalHistory_pkey" ON public."WorkflowApprovalHistory" USING btree ("Id")` |