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

# chat_topic_user table

> This table connected the chat topics with the users (i.e. the membership).

## chat\_topic\_user Table (331)

This table connected the chat topics with the users (i.e. the membership).

## Fields

| Name          | Description                                                  | Type                               | Nullable |
| ------------- | ------------------------------------------------------------ | ---------------------------------- | :------: |
| id            | The primary key (auto-incremented)                           | PK                                 |    No    |
| user\_id      | The reference to the associated user                         | FK [ejuser](./ejuser.mdx)          |    No    |
| topic\_id     | The reference to the associated chat topic.                  | FK [chat\_topic](./chat-topic.mdx) |    No    |
| can\_respond  | True if the user can respond to chats in this topic          | Bool                               |    Yes   |
| notifications | True if the user should receive notifications for this topic | Bool                               |    Yes   |
| can\_listen   | True of a user can listen in on this topic                   | Bool                               |    Yes   |
| manager       | True if the user is a manager for this topic                 | Bool                               |    Yes   |

<img src="https://mintcdn.com/superofficeas/i6M2qZmvMNH7UTeu/media/loc/en/database/tables/chat_topic_user.png?fit=max&auto=format&n=i6M2qZmvMNH7UTeu&q=85&s=9969a80f61d9c8fa762092cb36cebfb4" alt="chat_topic_user table relationship diagram" width="655" height="59" data-path="media/loc/en/database/tables/chat_topic_user.png" />

## Indexes

| Fields    | Types | Description |
| --------- | ----- | ----------- |
| user\_id  | FK    | Index       |
| topic\_id | FK    | Index       |

## Relationships

| Table                       | Description                                              |
| --------------------------- | -------------------------------------------------------- |
| [chat\_topic](./chat-topic) | This table contains chat topics.                         |
| [ejuser](./ejuser)          | This table contains entries for the users of the system. |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [chat_topic table](/en/database/tables/chat-topic.md)
- [Chat Topics For User](/en/api/reference/restful/rest/chattopic/chat-topics-for-user.md)
- [Get Chat Topic User Agent](/en/api/reference/restful/rest/chattopic/get-chat-topic-user-agent.md)
- [Add Chat Topic User Agent](/en/api/reference/restful/rest/chattopic/add-chat-topic-user-agent.md)
- [Update Chat Topic User Agent](/en/api/reference/restful/rest/chattopic/update-chat-topic-user-agent.md)
