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

# category_membership table

> This table connects users to categories (many-to-many).

## category\_membership Table (270)

This table connects users to categories (many-to-many).

## Fields

| Name                       | Description                                                                                                                | Type                                 | Nullable |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | :------: |
| id                         | The primary key (auto-incremented)                                                                                         | PK                                   |    No    |
| category\_id               | The reference to the category.                                                                                             | FK [ej\_category](./ej-category.mdx) |    No    |
| user\_id                   | The reference to the ej user.                                                                                              | FK [ejuser](./ejuser.mdx)            |    No    |
| weight                     | The proportion used for weighted delegation within category if weighted assignment is active. 0 = no automatic assignment. | Short                                |    Yes   |
| is\_defined\_by\_usergroup | Specifies if membership was defined by usergroup via ejCategoryGroup                                                       | Bool                                 |    No    |

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

## Indexes

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

## Relationships

| Table                         | Description                                                                                                             |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [ej\_category](./ej-category) | This table contains categories, in which tickets are categorized. The categories are organized in a hierarchial manner. |
| [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

- [What's new in version 10.2.1.1517](/release-notes/database/changes-10.2.1.md)
- [What's new in version 10.2.2.707](/release-notes/database/changes-10.2.2.md)
- [What's new in version 10.2.3.544](/release-notes/database/changes-10.2.3.md)
- [What's new in version 10.2.4.796](/release-notes/database/changes-10.2.4.md)
- [What's new in version 10.2.6.1248](/release-notes/database/changes-10.2.6.md)
- [What's new in version 10.2.5.1175](/release-notes/database/changes-10.2.5.md)
