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

# kb_attachment table

> This table connects FAQ entries to attachments.

## kb\_attachment Table (284)

This table connects FAQ entries to attachments.

## Fields

| Name           | Description                               | Type                              | Nullable |
| -------------- | ----------------------------------------- | --------------------------------- | :------: |
| id             | The primary key (auto-incremented)        | PK                                |    No    |
| entry\_id      | The id of the corresponding kb\_entry.    | FK [kb\_entry](./kb-entry.mdx)    |    No    |
| attachment\_id | The id of the corresponding kb\_category. | FK [attachment](./attachment.mdx) |    No    |

<img src="https://mintcdn.com/superofficeas/6OcOTPa_ISkjXJg4/media/loc/en/database/tables/kb_attachment.png?fit=max&auto=format&n=6OcOTPa_ISkjXJg4&q=85&s=4f0f79da94183071b878b05ac3e4d94a" alt="kb_attachment table relationship diagram" width="666" height="59" data-path="media/loc/en/database/tables/kb_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. |
| [kb\_entry](./kb-entry)    | This table contains FAQ entries.                                                                                                                              |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [kb_entry table](/en/database/tables/kb-entry.md)
- [attachment table](/en/database/tables/attachment.md)
- [kb_category table](/en/database/tables/kb-category.md)
- [kb_workflow table](/en/database/tables/kb-workflow.md)
- [kb_group table](/en/database/tables/kb-group.md)
- [kb_group_entry table](/en/database/tables/kb-group-entry.md)
