# Workflow Process Instance Status The `WorkflowProcessInstanceStatus` table is part of the [SQL Server database schema](https://docs.workflowengine.io/database-schema/sql-server/) used by Workflow Engine. The `WorkflowProcessInstanceStatus` table stores process execution status, locks, and runtime ownership. This page lists the table columns in database order together with types, nullability, primary keys, defaults, and indexes. ## Table columns The `WorkflowProcessInstanceStatus` table contains 6 columns in database order. Data types and default expressions use the syntax defined by SQL Server. Table: WorkflowProcessInstanceStatus columns | Position | Column | Database type | Nullable | Primary key | Default | |----------|--------|---------------|----------|-------------|---------| | 1 | `Id` | `uniqueidentifier` | No | Yes | - | | 2 | `Status` | `tinyint` | No | No | - | | 3 | `Lock` | `uniqueidentifier` | No | No | - | | 4 | `RuntimeId` | `nvarchar(450)` | No | No | - | | 5 | `SetTime` | `datetime` | No | No | - | | 6 | `TenantId` | `nvarchar(128)` | Yes | No | - | ## Database indexes The `WorkflowProcessInstanceStatus` table defines 3 database indexes. Definitions retain the column or field order and sort direction used by the database. Table: WorkflowProcessInstanceStatus indexes | Index | Unique | Definition | |-------|--------|------------| | `IX_WorkflowProcessInstanceStatus_Status` | No | `[Status]` | | `IX_WorkflowProcessInstanceStatus_Status_Runtime` | No | `[Status], [RuntimeId]` | | `PK_WorkflowProcessInstanceStatus` | Yes | `[Id]` |