Table: Staff_Benefit
Columns
Name | Type | Constraints | Description
staff_benefit_KEY | int | NOT NULL | Assigned by COMMON_dp_Allocate_Unique_Identifiers. Primary key for this table.
update__staff_KEY | int | NOT NULL |
update_date_utc | datetime | NOT NULL |
create_date_utc | datetime | NOT NULL |
staff_KEY | int | NOT NULL | Key to a Staff.
benefit_KEY | int | NOT NULL | Key to a Benefit.
active | bit | NOT NULL | Determines whether the benefit is enabled for this Staff.
effective_date | smalldatetime |  | The effective date of this staff benefit.

Primary key
Name | Columns | Description
PK_Staff_Benefit$staff_benefit_KEY | staff_benefit_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Staff_Benefit$benefit_KEY$staff_KEY | benefit_KEY, staff_KEY |
Indexes
Name | Columns | Description
IX_Staff_Benefit$staff_KEY | staff_KEY | Index supports foreign key FK_Staff_Benefit__Staff__staff_KEY

Foreign keys
Name | Columns | Referenced table | Description
FK_Staff_Benefit__Benefit__benefit_KEY | benefit_KEY | Benefit | on delete cascade;
FK_Staff_Benefit__Staff__staff_KEY | staff_KEY | Staff | on delete cascade;

Incoming foreign keys
Name | Columns | Referencing table | Description
FK_Staff_Benefit_Entry__Staff_Benefit__staff_benefit_KEY | staff_benefit_KEY | Staff_Benefit_Entry |