sp370_operative_days
The smallest scheduling unit managed within ServiceOptimizer is a single employee/date also known as an OperativeDay: each record in this table contains the attributes of the employee's schedule as calculated by ServiceOptimizer.Â
Data is only updated for active FRUs within the FRU memory horizon.Â
If an employee is not posted to any team on a particular date, there will be no sp370_operative_days record for that OperativeDay.Â
All date fields are in FRU local time.Â
Note that although the descriptions below reference fields in sp210_employees and other tables, values can be derived instead from an overriding pattern (e.g. sp122_work_patterns) or date-specific override (e.g. sp064_overrides).Â
HouseKeeping
This table is tidied by sp_dbtidy's Global group.
Â
Table Definition
Field | Type | Default | Nullable |
---|---|---|---|
employee_no | number(9) | Â | |
schedule_date | date | Â | |
start_of_day_time | date | Â | |
end_of_day_time | date | Â | |
shift_start | date | Â | |
shift_end | date | Â | |
authorised_overtime | number(4) | Â | |
travel_in_owntime_towork | number(6) | Â | |
travel_in_owntime_home | number(6) | Â | |
break_duration | number(4) | Â | |
break_earliest_start | date | Â | |
break_latest_start | date | Â | |
start_loc_type | number(1) | Â | |
start_loc_postcode | varchar(30) | Â | |
start_loc_region_no | number(9) | Â | |
end_loc_type | number(1) | Â | |
end_loc_postcode | varchar(30) | Â | |
end_loc_region_no | number(9) | Â | |
lkc_loc_type | number(1) | Â | |
lkc_loc_postcode | varchar(30) | Â | |
lkc_loc_region_no | number(9) | Â | |
is_public_holiday | number(1) | Â | |
total_capacity_mins | number(6) | Â | |
resp_unit_no | number(4) | Â |
Keys
primary key (employee_no, schedule_date)Â
foreign key (employee_no) references sp210_employees(employee_no)Â
foreign key (start_loc_type) references sp271_start_end_locations(location)Â
foreign key (start_loc_region_no) references sp057_regions(region_no)Â
foreign key (end_loc_type) references sp271_start_end_locations(location)Â
foreign key (end_loc_region_no) references sp057_regions(region_no)Â
foreign key (lkc_loc_type) references sp271_start_end_locations(location)Â
foreign key (lkc_loc_region_no) references sp057_regions(region_no)Â
foreign key (resp_unit_no) references sp058_responsibility_units(resp_unit_no)
Primary Key Referenced From
Â
Column Descriptions
Field | Description |
---|---|
employee_no | Identifies the employee. |
schedule_date | Identifies the date. |
start_of_day_time | Boundary between this OperativeDay and the preceding OperativeDay. |
end_of_day_time | Boundary between this OperativeDay and the next OperativeDay. |
shift_start | Start of shift. See sp115_shifts (start_time). Null if the employee has no shift on this day. |
shift_end | End of shift. See sp115_shifts (end_time). Null if the employee has no shift on this day. |
authorised_overtime | The maximum number of minutes overtime that can be allocated to the employee on this day. See sp210_employees (max_overtime). Null if the employee has no shift on this day. |
travel_in_owntime_towork | Maximum before shift travel (in minutes). See sp210_employees (TOTB). Null if the employee has no shift on this day. |
travel_in_owntime_home | Maximum after shift travel (in minutes). See sp210_employees (TOTA). Null if the employee has no shift on this day. |
break_duration | Break duration. See sp115_shifts (lunch_duration). Null if the employee has no shift on this day or if the shift has no break. |
break_earliest_start | Earliest start for break. See sp115_shifts (lunch_start). Null if the employee has no shift on this day or if the shift has no break. |
break_latest_start | Latest start for break. See sp115_shifts (lunch_end). Null if the employee has no shift on this day or if the shift has no break. |
start_loc_type start_loc_postcode start_loc_region_no | Location from which employee starts work. See sp210_employees (default_start_loc, default_start_loc_postcode, default_start_loc_region_no). |
end_loc_type end_loc_postcode end_loc_region_no | Location from which employee finishes work. See sp210_employees (default_end_loc, default_end_loc_postcode, default_end_loc_region_no). |
lkc_loc_type lkc_loc_postcode lkc_loc_region_no | Location about which employee's range local knowledge is centred. See sp210_employees (default_LK_centre_loc, default_LK_centre_postcode, default_LK_centre_region_no). |
is_public_holiday | Indicates whether this day is a Public Holiday. 0 = Not a Public Holiday. 1 = Public Holiday. |
total_capacity_mins | Total capacity in minutes. Null if capacity checking is not enabled. |
resp_unit_no | The responsibility unit that the employee is posted to on this date. |