| Table: Staff_Level | |||
| Columns | |||
| Name | Type | Constraints | Description |
| staff_level_KEY | int | NOT NULL | AUTO-INCREMENT: Database assigned primary key for this table. |
| update__staff_KEY | int | NOT NULL | |
| update_date_utc | datetime | NOT NULL | |
| staff_level_id | nvarchar (11) | NOT NULL | User defined identifier (unique). |
| description | nvarchar (250) | NOT NULL | User defined description. |
| create_date_utc | datetime | NOT NULL | |
| staff_level_id_sortable | varchar (48) | NOT NULL | A representation of the staff_level_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 staff_level_id. |
| Primary key | |||
| Name | Columns | Description | |
| PK_Staff_Level$staff_level_KEY | staff_level_KEY | CLUSTERED | |
| Unique constraints | |||
| Name | Columns | Description | |
| UK_Staff_Level$staff_level_id | staff_level_id | Each id must be unique. | |
| UK_Staff_Level$staff_level_id_sortable | staff_level_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_Accruable_Benefit_Allowance_By_Staff_Level__Staff_Level__staff_level_KEY | staff_level_KEY | Accruable_Benefit_Allowance_By_Staff_Level | |
| FK_Staff__Staff_Level__staff_level_KEY | staff_level_KEY | Staff | |