> ## 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.

# s_attachment table

> A connector between a message and attachments. One message can contain many attachments.

## s\_attachment Table (349)

A connector between a message and attachments. One message can contain many attachments.

## Fields

| Name           | Description              | Type                              | Nullable |
| -------------- | ------------------------ | --------------------------------- | :------: |
| id             | Primary key              | PK                                |    No    |
| attachment\_id | The id of the attachment | FK [attachment](./attachment.mdx) |    No    |
| message\_id    | The id of the message    | FK [s\_message](./s-message.mdx)  |    No    |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/s_attachment.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=b276abba7c2a9776c8fe64fae3648693" alt="s_attachment table relationship diagram" width="692" height="59" data-path="media/loc/en/database/tables/s_attachment.png" />

## Indexes

| Fields         | Types | Description |
| -------------- | ----- | ----------- |
| attachment\_id | FK    | Index       |
| message\_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. |
| [s\_message](./s-message)  | A message used in a shipment. Can be html and/or plain text                                                                                                   |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [attachment table](/en/database/tables/attachment.md)
- [attachment_location table](/en/database/tables/attachment-location.md)
- [ticket_attachment table](/en/database/tables/ticket-attachment.md)
- [kb_attachment table](/en/database/tables/kb-attachment.md)
- [email_attachment table](/en/database/tables/email-attachment.md)
- [reply_template_attachment table](/en/database/tables/reply-template-attachment.md)
