> ## Documentation Index
> Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat Messages Companies

Association table linking chat messages to companies

**Name:** `v1_0.chat_messages_companies`

Deleted and merged records are covered in [Deletes & Merges](https://developer.affinity.co/pages/data-share/deletes.md).

> [!WARNING]
>
> Grant access to the share only to users who are authorized to view all
> organization data. There are no per-user or per-role visibility filters applied at the
> share level.

## Columns

| Column | Description |
| - | - |
| `id` | Synthetic hash of chat\_message\_id and company\_id, not a source record ID. Signed 32-bit, so values may be negative, and collisions can repeat an id across rows. The unique key for this table is chat\_message\_id + company\_id. |
| `chat_message_id` | The ID of the chat message |
| `company_id` | The ID of the company |
| `last_updated_at` | Timestamp when this record was last updated |
| `is_deleted` | Whether the association has been deleted |


## Related topics

- [Chat Messages](https://developer.affinity.co/pages/data-share/chat_messages_v1_0.md)
- [Notes Chat Messages](https://developer.affinity.co/pages/data-share/notes_chat_messages_v1_0.md)
- [Chat Messages Persons](https://developer.affinity.co/pages/data-share/chat_messages_persons_v1_0.md)
- [Get metadata on all Chat Messages](https://developer.affinity.co/api-reference/2024-01-01/chat-messages/get-metadata-on-all-chat-messages.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.