> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ticket_relation table

> A relation between 2 tickets

## ticket\_relation Table (557)

A relation between 2 tickets

## Fields

| Name                      | Description                                                            | Type                                                  | Nullable |
| ------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------- | :------: |
| ticket\_relation\_id      | Primary key                                                            | PK                                                    |    No    |
| source\_ticket\_id        | Source ticket in this relation                                         | FK [ticket](./ticket.mdx)                             |    No    |
| destination\_ticket\_id   | Destination ticket in this relation                                    | FK [ticket](./ticket.mdx)                             |    No    |
| ticket\_relation\_def\_id | The (optional) relation definition where this relation originated from | FK [ticket\_relation\_def](./ticket-relation-def.mdx) |    No    |
| comment                   | Comment for relation                                                   | String(255)                                           |    Yes   |
| registered                | Registered when                                                        | UtcDateTime                                           |    No    |
| registered\_associate\_id | Registered by whom                                                     | FK [associate](./associate.mdx)                       |    No    |
| updated                   | Last updated when                                                      | UtcDateTime                                           |    No    |
| updated\_associate\_id    | Last updated by whom                                                   | FK [associate](./associate.mdx)                       |    No    |
| updatedCount              | Number of updates made to this record                                  | UShort                                                |    No    |

<img src="https://mintcdn.com/superofficeas-bugfix-ty-screen-designer-paradox/G4reeQVP-LmhQATQ/media/loc/en/database/tables/ticket_relation.png?fit=max&auto=format&n=G4reeQVP-LmhQATQ&q=85&s=44c2244db69ef532aa6987e1650fc2b3" alt="ticket_relation table relationship diagram" width="729" height="686" data-path="media/loc/en/database/tables/ticket_relation.png" />

## Indexes

| Fields                  | Types | Description |
| ----------------------- | ----- | ----------- |
| source\_ticket\_id      | FK    | Index       |
| destination\_ticket\_id | FK    | Index       |

## Relationships

| Table                                          | Description                                                                              |
| ---------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [associate](./associate)                       | Employees, resources and other users - except for External persons                       |
| [ticket](./ticket)                             | This table contains the tickets (requests) of the system. Its purpose should be evident. |
| [ticket\_relation\_def](./ticket-relation-def) | Ticket relation definition                                                               |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.
