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

# ConsentSource table

> Consent source for GDPR

## ConsentSource Table (470)

Consent source for GDPR

## Fields

| Name                      | Description                                                                                                                                           | Type                            | Nullable |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | :------: |
| consentsource\_id         | Primary key                                                                                                                                           | PK                              |    No    |
| name                      | Name of consent source                                                                                                                                | String(4000)                    |    No    |
| rank                      | Rank of this consent source                                                                                                                           | UShort                          |    Yes   |
| tooltip                   | Tooltip for this consent source                                                                                                                       | String(4000)                    |    Yes   |
| deleted                   | 0 -> record is active 1 -> record is 'deleted' and should not be shown in lists                                                                       | UShort                          |    Yes   |
| key                       | The key used to uniquely identify this consent source                                                                                                 | String(255)                     |    Yes   |
| mailTemplate\_id          | The document template to be used for sending 'You have been added to our system, is this ok' emails when a new person is registered using this source | FK [DocTmpl](./doctmpl.mdx)     |    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/ConsentSource.png?fit=max&auto=format&n=-KbDeS3ObOMH8eFq&q=85&s=926ddef744eb1667289e7627a907cf45" alt="ConsentSource table relationship diagram" width="750" height="691" data-path="media/loc/en/database/tables/ConsentSource.png" />

## Indexes

| Fields | Types       | Description |
| ------ | ----------- | ----------- |
| key    | String(255) | Unique      |

## Relationships

| Table                            | Description                                                                  |
| -------------------------------- | ---------------------------------------------------------------------------- |
| [associate](./associate)         | Employees, resources and other users - except for External persons           |
| [ConsentPerson](./consentperson) | Link table that defines who has which consents                               |
| [DocTmpl](./doctmpl)             | DocTmpl list table. Describes templates available for writing new documents. |

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

- [SuperOffice.WebApi.Data.ConsentSource](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentSource.md)
- [consentsource](/en/api/mdo-providers/reference/consentsource.md)
- [Save Consent Source](/en/api/reference/restful/agent/list_agent/save-consent-source.md)
- [Put Consent Source](/en/api/reference/restful/rest/list_consentsource/put-consent-source.md)
- [Get Consent Source](/en/api/reference/restful/rest/list_consentsource/get-consent-source.md)
- [Post Consent Source](/en/api/reference/restful/rest/list_consentsource/post-consent-source.md)
