> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# foreignkey table

> Foreign Key - enables storage of arbitrary extra key information for every table/row in SuperOffice. You may use this table to store your extra information instead of using the dictionary SDK to create your own tables.

## foreignkey Table (183)

Foreign Key - enables storage of arbitrary extra key information for every table/row in SuperOffice. You may use this table to store your extra information instead of using the dictionary SDK to create your own tables.

## Fields

| Name                      | Description                                      | Type                                    | Nullable |
| ------------------------- | ------------------------------------------------ | --------------------------------------- | :------: |
| foreignkey\_id            | Primary key                                      | PK                                      |    No    |
| foreigndevice\_id         | Reference to device definition                   | FK [foreigndevice](./foreigndevice.mdx) |    No    |
| table\_id                 | SuperOffice table reference                      | TableNumber                             |    No    |
| record\_id                | Record in the referenced table                   | RecordId                                |    No    |
| seqno                     | Sequence number, order of subkeys within one key | Id                                      |    No    |
| subkey                    | Subkey (optional)                                | String(239)                             |    Yes   |
| subvalue                  | Key value                                        | String(239)                             |    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-bugfix-ty-screen-designer-paradox/bBv7ep-d5A4oaYwj/media/loc/en/database/tables/foreignkey.png?fit=max&auto=format&n=bBv7ep-d5A4oaYwj&q=85&s=548472a853334503450b2fd25847e3d8" alt="foreignkey table relationship diagram" width="677" height="59" data-path="media/loc/en/database/tables/foreignkey.png" />

## Indexes

| Fields            | Types       | Description |
| ----------------- | ----------- | ----------- |
| foreigndevice\_id | FK          | Index       |
| record\_id        | RecordId    | Index       |
| seqno             | Id          | Index       |
| subkey            | String(239) | Index       |
| subvalue          | String(239) | Index       |

## Relationships

| Table                            | Description                                                        |
| -------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)         | Employees, resources and other users - except for External persons |
| [foreigndevice](./foreigndevice) | Middle level of Foreign Key system                                 |

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