---
title: "Codes"
description: "The table itgen_codes holds: a discrete domain of code values and their meaning."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-studio/repository/reference/repository-tables/codes
original: https://documentation.invantive.eu/en/docs/invantive-studio/repository/reference/repository-tables/codes
updated: 2026-10-25T00:00:00Z
license: https://documentation.invantive.eu/en/
---

The table `itgen_codes` holds: a discrete domain of code values and their meaning.

Example: The code 'sexe' describes the possible sexes.

It keeps history. Its natural key code is `cde`.

## Columns
The table has these columns, besides the [[Invantive Studio/Repository/Concepts/Standard Columns|standard columns]]:
- `apn_id` (`number`, required): {res:itgen_some_table_id?{res:itgen_application}&{res:itgen_id}}. Reference to an application registered in ITGEN_APPLICATIONS.
- `code` (`varchar2(30)`, required): Code. Unique alphanumeric code.
- `description` (`varchar2(240)`, required): Description. Description in natural language for display on reports and screens.
- `documentation` (`varchar2(4000)`): Documentation. Documentation on the code.
- `icon_url` (`varchar2(240)`): Icon (URL). URL for the icon of this value.
- `column1` to `column10` and `column_type`: free text columns to extend the data model with fields only available at one site.

## Referential Constraints
The table is related to other tables as follows:
- `apn_id` refers to Applications (`id`).
- Code Values refers to this table through `cde_id`.

## Indexes
The table has these indexes:
- `itgen_cde_apn_fk` on `apn_id`.
- `itgen_cde_nk` (unique) on `apn_id`, `code`.
- `itgen_cde_pk` (unique) on `id`.
- `itgen_cde_uk_orig` (unique) on `orig_system_reference`.

See also [[Invantive Studio/Repository/Reference/Tables of the Repository|Tables of the Repository]].

## Release Notes

- [Invantive Studio](/en/release-notes/products/invantive-studio)
  - [26.0 to 27.0](/en/release-notes/products/invantive-studio?step=26.0-to-27.0)
  - [25.0 to 26.0](/en/release-notes/products/invantive-studio?step=25.0-to-26.0)

