Document toolboxDocument toolbox

14.1 sp371_opday_capacity

Used capacity per OperativeDay (sp370_operative_days). 


On a given OperativeDay, this table will contain one record for each configured capacity category. 
If capacity checking is not enabled no records will be stored. 


If an employee is not posted to any team on a particular date, there will be no sp371_opday_capacity record for that OperativeDay. 

HouseKeeping

This table is tidied by sp_dbtidy's Global group.


 

Table Definition

Field
Type
Default
Nullable
employee_nonumber(9) (error)
schedule_datedate (error)
capacity_category_nonumber(9) (error)
used_minsnumber(6) (error)
job_countnumber(9) (tick)

Keys

primary key (employee_no, schedule_date, capacity_category_no) 
foreign key (employee_no, schedule_date) references 14.1 sp370_operative_days (employee_no, schedule_date) 
foreign key (capacity_category_no) references 14.1 sp350_capacity_categories (capacity_category_no) Jobs booked into a system before capacity is switched on will have no category. Table sp350 does not contain the 'no capacity' value as it is not a real category. Thus this foreign key is not applicable in the interim period whilst the 'old' jobs are aged out of the system.

Column Descriptions

FieldDescription
employee_noIdentifies the employee.
schedule_dateIdentifies the date. FRU local time. 
capacity_category_noIdentifies the capacity category. If it's the 'no capacity' category see1 then this column will have a value of -1.
used_minsNumber of minutes of capacity used by jobs in capacity category capacity_category_no on this OperativeDay. 
job_countNumber of jobs of this capacity category on this OperativeDay.