# Workflow Process Instance Status The `workflowprocessinstancestatus` table is part of the [MySQL database schema](https://docs.workflowengine.io/database-schema/mysql/) 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 MySQL. Table: workflowprocessinstancestatus columns | Position | Column | Database type | Nullable | Primary key | Default | |----------|--------|---------------|----------|-------------|---------| | 1 | `Id` | `binary(16)` | No | Yes | - | | 2 | `Status` | `tinyint` | No | No | - | | 3 | `Lock` | `binary(16)` | No | No | - | | 4 | `RuntimeId` | `varchar(450)` | No | No | - | | 5 | `SetTime` | `datetime` | No | No | - | | 6 | `TenantId` | `varchar(128)` | Yes | No | - | ## Database indexes The `workflowprocessinstancestatus` table defines 4 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`` | | `PRIMARY` | Yes | ``Id`` | | `Status` | No | ``Status`` |