Table: Contact_Category
Columns
Name | Type | Constraints | Description
contact_category_KEY | int | NOT NULL | AUTO-INCREMENT: Database assigned primary key for this table.
update__staff_KEY | int | NOT NULL |
contact_category_id | nvarchar (11) | NOT NULL | User defined identifier (unique).
description | nvarchar (250) | NOT NULL | User defined description.
contact_category_id_sortable | varchar (48) | NOT NULL | A representation of the contact_category_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 contact_category_id.
create__changeset_KEY | int | NOT NULL |
update__changeset_KEY | int | NOT NULL |

Primary key
Name | Columns | Description
PK_Contact_Category$contact_category_KEY | contact_category_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Contact_Category$contact_category_id | contact_category_id | Each id must be unique.
UK_Contact_Category$contact_category_id_sortable | contact_category_id_sortable | An index by the sortable ID is desired, and the algorithm ends up producing unique values.

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Contact_Contact_Category__Contact_Category__contact_category_KEY | contact_category_KEY | Contact_Contact_Category |