> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TemplateLock

> Reference for the TemplateLock table in the ABBYY FlexiCapture reports database: columns recording which Document Definitions are open for editing and by whom.

## Purpose

Contains information about editable Document Definitions.

[Diagram of relationships between lock tables](/flexi-capture/reports/database/locks)

## List of columns

<table width="100%"><tbody><tr><td><p><strong>Key</strong></p></td><td><p><strong>Name</strong></p></td><td><p><strong>Type</strong></p></td><td><p><strong>Required</strong></p></td><td><p><strong>Description</strong></p></td></tr><tr><td><p>PK</p></td><td><p>Id</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Identifier of a Document Definition lock.</p></td></tr><tr><td rowspan="4"> </td><td><p>CreationDate</p></td><td><p>datetime</p></td><td><p>yes</p></td><td><p>Date and time of the creation of a lock.</p></td></tr><tr><td><p>TemplateId</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Identifier of a Document Definition. Corresponds to an entry identifier in the <a href="/flexi-capture/reports/database/template-reports-database">Template</a> table.</p></td></tr><tr><td><p>UserId</p></td><td><p>int</p></td><td><p>yes</p></td><td><p>Identifier of the user that is editing a Document Definition. Corresponds to an entry identifier in the<a href="/flexi-capture/reports/database/principal">Principal</a> table.</p></td></tr><tr><td><p>Workstation</p></td><td><p>nvarchar</p></td><td><p>yes</p></td><td><p>Name of the workstation from which a lock was created.</p></td></tr></tbody></table>
