Table: dbo.Custom_Grouping
Columns
Name | Type | Constraints | Description
custom_grouping_KEY | int (4) | NOT NULL | Database assigned primary key for this table.
custom_field_KEY | int (4) | NOT NULL | Key to a Custom Field.
custom_grouping_id | nvarchar (22) | NOT NULL | User defined identifier (unique).
description | nvarchar (60) | NOT NULL | User defined description.
custom_grouping_id_sortable | varchar (48) | NOT NULL | A representation of the custom_grouping_id column that sorts in natural order, meaning that digits are sorted as numbers while non-digits are sorted alphabetically. A trigger keeps this field synchronized with the content of custom_grouping_id.

Primary key
Name | Columns | Description
PK_Custom_Grouping | custom_grouping_KEY |
Unique constraints
Name | Columns | Description
UK_Custom_Grouping$custom_field_KEY$custom_grouping_id | custom_field_KEY, custom_grouping_id |
UK_Custom_Grouping$custom_field_KEY$custom_grouping_id_sortable | custom_field_KEY, custom_grouping_id_sortable |

Foreign keys
Name | Columns | Referenced table | Description
FK_Custom_Grouping__Custom_Field__custom_field_KEY | custom_field_KEY | Custom_Field (custom_field_KEY) |

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Custom_Value__Custom_Grouping__custom_grouping_KEY | custom_grouping_KEY | Custom_Value |