---
title: tm.locktype
slug: db/tmlocktype
createdAt: 2023-12-14T14:12:39.932Z
---

A lock type is used for locking tickets so they can not be sold. A lock can either be 'hard', meaning that the lock is normally never released and the ticket is kept out of the inventory, or 'soft', meaning that the lock is temporary and the tickets will still be available for sale later.

## Fields

| FIELD        | TYPE        | DESCRIPTION                                                                                                                                      |
| ------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| id           | `int`       | Unique ID                                                                                                                                        |
| name         | `mlstring`  | Name for the lock type                                                                                                                           |
| ishardlock   | `bool`      | Indicates whether this lock is a hard lock (meaning that it normally never will be released and does not count for the inventory) or a soft lock |
| hideseats    | `bool`      | Hides seats in online sales if this is true                                                                                                      |
| color        | `string`    | The color of the lock type                                                                                                                       |
| createdts    | `timestamp` | Created timestamp                                                                                                                                |
| lastupdatets | `timestamp` | Last updated timestamp                                                                                                                           |
| isarchived   | `bool`      | Whether or not this item is archived                                                                                                             |

