> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# reply_template_attachment table

> This table is used to connect attachments to reply templates (many-to-many).

## reply\_template\_attachment Table (278)

This table is used to connect attachments to reply templates (many-to-many).

## Fields

| Name           | Description                                               | Type                                       | Nullable |
| -------------- | --------------------------------------------------------- | ------------------------------------------ | :------: |
| id             | The primary key (auto-incremented)                        | PK                                         |    No    |
| entry\_id      | The id of the reply\_template this entry is connected to. | FK [reply\_template](./reply-template.mdx) |    No    |
| attachment\_id | The id of the attachment this entry is connected to.      | FK [attachment](./attachment.mdx)          |    No    |

<img src="https://mintcdn.com/superofficeas-worktree-351-fix-webapi-escaped-anchors/KsvSyGQJCWf4OHdL/media/loc/en/database/tables/reply_template_attachment.png?fit=max&auto=format&n=KsvSyGQJCWf4OHdL&q=85&s=b0bbf9df615327dbda23cf3c3eff3653" alt="reply_template_attachment table relationship diagram" width="829" height="59" data-path="media/loc/en/database/tables/reply_template_attachment.png" />

## Indexes

| Fields         | Types | Description |
| -------------- | ----- | ----------- |
| entry\_id      | FK    | Index       |
| attachment\_id | FK    | Index       |

## Relationships

| Table                               | Description                                                                                                                                                   |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [attachment](./attachment)          | This table contains metadata for attachments. The actual attachments are stored directly on disk, with filenames based on the the primary key for this table. |
| [reply\_template](./reply-template) | Templates for automatic and manual replies to emails/sms organized hierachically                                                                              |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.
