> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/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/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/reply_template_attachment.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=8e39e2691aec4db59335c92578c18566" 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.


## Related topics

- [reply_template table](/en/database/tables/reply-template.md)
- [reply_template_folder table](/en/database/tables/reply-template-folder.md)
- [reply_template_body table](/en/database/tables/reply-template-body.md)
- [attachment table](/en/database/tables/attachment.md)
- [Get Customer Centre Password Reply Template](/en/api/reference/restful/agent/person_agent/get-customer-centre-password-reply-template.md)
- [ReplyTemplate](/en/automation/crmscript/reference/CRMScript.Native.ReplyTemplate.md)
