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