# Workflow Scheme The `WorkflowScheme` collection is part of the [MongoDB database schema](https://docs.workflowengine.io/database-schema/mongodb/) used by Workflow Engine. The `WorkflowScheme` collection stores editable workflow scheme definitions by code. This page lists the collection indexes and explains the field model used by MongoDB for this persistence object. ## Document fields The `WorkflowScheme` collection does not define a fixed field list at the MongoDB database level. Workflow Engine documents in this collection can therefore evolve without a relational column definition. ## Database indexes The `WorkflowScheme` collection defines 2 database indexes. Definitions retain the column or field order and sort direction used by the database. Table: WorkflowScheme indexes | Index | Unique | Definition | |-------|--------|------------| | `Code_1_TenantId_1` | Yes | `Code 1, TenantId 1` | | `_id_` | Yes | `_id 1` |