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

# ConsentPerson table

> Link table that defines who has which consents

## ConsentPerson Table (471)

Link table that defines who has which consents

## Fields

| Name                      | Description                                        | Type                                      | Nullable |
| ------------------------- | -------------------------------------------------- | ----------------------------------------- | :------: |
| consentperson\_id         | Primary key                                        | PK                                        |    No    |
| person\_id                | Person who gave consent                            | FK [person](./person.mdx)                 |    Yes   |
| consentPurpose\_id        | Consent purpose                                    | FK [ConsentPurpose](./consentpurpose.mdx) |    Yes   |
| legalBase\_id             | Legal base                                         | FK [LegalBase](./legalbase.mdx)           |    Yes   |
| consentSource\_id         | Consent source                                     | FK [ConsentSource](./consentsource.mdx)   |    Yes   |
| comment                   | A comment describing why this GDPR change was made | String(255)                               |    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/ConsentPerson.png?fit=max&auto=format&n=-KbDeS3ObOMH8eFq&q=85&s=091e73eef3436993cf7db2a8a88ebf5f" alt="ConsentPerson table relationship diagram" width="860" height="764" data-path="media/loc/en/database/tables/ConsentPerson.png" />

## Indexes

| Fields                         | Types  | Description |
| ------------------------------ | ------ | ----------- |
| legalBase\_id                  | FK     | Index       |
| consentSource\_id              | FK     | Index       |
| person\_id, consentPurpose\_id | FK, FK | Unique      |

## Relationships

| Table                              | Description                                                        |
| ---------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)           | Employees, resources and other users - except for External persons |
| [ConsentPurpose](./consentpurpose) | GDPR purpose alternatives                                          |
| [ConsentSource](./consentsource)   | Consent source for GDPR                                            |
| [LegalBase](./legalbase)           | Legal base for GDPR (Article 6)                                    |
| [person](./person)                 | Persons                                                            |

## Replication Flags

* Area Management controlled table. Contents replicated to satellites and traveller databases.
* 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.ConsentPerson](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentPerson.md)
- [ConsentPurpose table](/en/database/tables/consentpurpose.md)
- [ConsentSource table](/en/database/tables/consentsource.md)
- [ConsentPurpose](/en/api/archive-providers/reference/consentpurpose.md)
- [Save Consent Person](/en/api/reference/restful/agent/person_agent/save-consent-person.md)
- [What's new in version 12.2.2072.0](/release-notes/database/changes-12.2.2072.md)
