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

# 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-bugfix-ty-screen-designer-paradox/G4reeQVP-LmhQATQ/media/loc/en/database/tables/s_attachment.png?fit=max&auto=format&n=G4reeQVP-LmhQATQ&q=85&s=a6278ef4e25b31980326b54fa9baa51e" 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.
