Table: Benefit_Factor
Columns
Name | Type | Constraints | Description
benefit_factor_KEY | int | NOT NULL | Assigned by COMMON_dp_Allocate_Unique_Identifiers. Primary key for this table, same value as activity_KEY.
update__staff_KEY | int | NOT NULL |
update_date_utc | datetime | NOT NULL |
create_date_utc | datetime | NOT NULL |
benefit_KEY | int | NOT NULL | Key to a Benefit that the benefit factor is for.
benefit_entry_type_KEY | int | NOT NULL | Key to a benefit entry type that this benefit factor is.
factor | decimal (9, 2) | NOT NULL | The allowance benefit factor.
to_month | int | NOT NULL | The end month of this benefit factor.
to_day | int | NOT NULL | The end day of this benefit factor.
sortable_to_date | smalldatetime | NOT NULL | The [to_month] and [to_day] columns are combined into the [sortable_to_date] column for sorting and comparison. The year 2000 was selected as the year to base this date on because it is a leap year and it is a nice even number.

Primary key
Name | Columns | Description
PK_Benefit_Factor$benefit_factor_KEY | benefit_factor_KEY | CLUSTERED
Unique constraints
Name | Columns | Description
UK_Benefit_Factor$benefit_KEY$benefit_entry_type_KEY$to_month$to_day | benefit_KEY, benefit_entry_type_KEY, to_month, to_day |
Indexes
Name | Columns | Description
IX_Benefit_Factor$benefit_entry_type_KEY | benefit_entry_type_KEY | Index supports foreign key FK_Benefit_Factor__Benefit_Entry_Type__benefit_entry_type_KEY
IX_Benefit_Factor$sortable_to_date | sortable_to_date |

Foreign keys
Name | Columns | Referenced table | Description
FK_Benefit_Factor__Benefit__benefit_KEY | benefit_KEY | Benefit | on delete cascade;