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

# Comptr table

> Comptr list table. List of all possible competitors (sale).

## Comptr Table (109)

Comptr MDO list item table.
Comptr list table. List of all possible competitors (sale).

## Fields

| Name                      | Description                                                                     | Type                            | Nullable |
| ------------------------- | ------------------------------------------------------------------------------- | ------------------------------- | :------: |
| Comptr\_id                | Primary key                                                                     | PK                              |    No    |
| name                      | The list item                                                                   | String(239)                     |    No    |
| rank                      | Rank order                                                                      | UShort                          |    Yes   |
| tooltip                   | Tooltip or other description                                                    | String(254)                     |    Yes   |
| deleted                   | 0 -> record is active 1 -> record is 'deleted' and should not be shown in lists | UShort                          |    Yes   |
| registered                | Registered when                                                                 | UtcDateTime                     |    No    |
| registered\_associate\_id | Registered by whom                                                              | FK [associate](./associate.mdx) |    No    |
| updated                   | Last updated when                                                               | UtcDateTime                     |    No    |
| updated\_associate\_id    | Last updated by whom                                                            | FK [associate](./associate.mdx) |    No    |
| updatedCount              | Number of updates made to this record                                           | UShort                          |    No    |

<img src="https://mintcdn.com/superofficeas/-KbDeS3ObOMH8eFq/media/loc/en/database/tables/Comptr.png?fit=max&auto=format&n=-KbDeS3ObOMH8eFq&q=85&s=21a45b19eda2bbfc7db0a2f39cc2dd94" alt="Comptr table relationship diagram" width="821" height="742" data-path="media/loc/en/database/tables/Comptr.png" />

## Indexes

| Fields | Types       | Description |
| ------ | ----------- | ----------- |
| name   | String(239) | Unique      |

## Relationships

| Table                                    | Description                                                                                                                                                                                                                                                                                     |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [associate](./associate)                 | Employees, resources and other users - except for External persons                                                                                                                                                                                                                              |
| [ComptrGroupLink](./comptrgrouplink)     | User group link table for Comptr, for MDO item hiding                                                                                                                                                                                                                                           |
| [ComptrHeadingLink](./comptrheadinglink) | Heading link table for Comptr, for MDO headers                                                                                                                                                                                                                                                  |
| [sale](./sale)                           | Sales  For every Sale record edited through the SuperOffice GUI, a copy of the current version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels. |
| [SaleHist](./salehist)                   | Mirror image of the Sale table, providing a full transaction history. Every time you edit a sale, the current record of the sale is also saved here.                                                                                                                                            |

## Replication Flags

* Replicate changes DOWN from central to satellites and travellers.
* Replicate changes UP from satellites and travellers back to central.
* Copy to satellite and travel prototypes.

## Security Flags

* No access control via user's Role.


## Related topics

- [ComptrHeadingLink table](/en/database/tables/comptrheadinglink.md)
- [ComptrGroupLink table](/en/database/tables/comptrgrouplink.md)
- [comptr](/en/api/mdo-providers/reference/comptr.md)
- [RejectReasonGroupLink table](/en/database/tables/rejectreasongrouplink.md)
- [RejectReason table](/en/database/tables/rejectreason.md)
- [sale table](/en/database/tables/sale.md)
