Table: Staff_Level
Columns
NameTypeConstraintsDescription
staff_level_KEYintNOT NULLAUTO-INCREMENT: Database assigned primary key for this table.
update__staff_KEYintNOT NULL
update_date_utcdatetimeNOT NULL
staff_level_idnvarchar (11)NOT NULLUser defined identifier (unique).
descriptionnvarchar (250)NOT NULLUser defined description.
create_date_utcdatetimeNOT NULL
staff_level_id_sortablevarchar (48)NOT NULLA 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
NameColumnsDescription
PK_Staff_Level$staff_level_KEYstaff_level_KEYCLUSTERED
Unique constraints
NameColumnsDescription
UK_Staff_Level$staff_level_idstaff_level_idEach id must be unique.
UK_Staff_Level$staff_level_id_sortablestaff_level_id_sortableAn index by the sortable ID is desired, and the algorithm ends up producing unique values.
Incoming foreign keys
NameColumnsReferencing tableDescription
FK_Accruable_Benefit_Allowance_By_Staff_Level__Staff_Level__staff_level_KEYstaff_level_KEYAccruable_Benefit_Allowance_By_Staff_Level
FK_Staff__Staff_Level__staff_level_KEYstaff_level_KEYStaff

Schema diagram