labor_exec
- Last UpdatedNov 13, 2024
- 2 minute read
The labor_exec table defines the characteristics of a labor executor, which is extra configuration data for any physical entity that makes it capable of capturing labor data.
There may be multiple users for a given labor executor at the same time, so there’s no point in adding various "current status" fields to this table; instead the current labor codes, department IDs, etc. could be determined from the labor_usage table at startup, or they could be saved as a recordset of multiple rows.
|
Field |
Datatype |
PK |
Nulls? |
Description |
|---|---|---|---|---|
|
ent_id |
int32 |
Y |
N |
For which entity is labor to be collected |
|
def_lab_cd |
string40 |
N |
Y |
Default labor category code |
|
def_dept_id |
string40 |
N |
Y |
Default labor department |
|
multiple_operators |
int32 |
N |
Y |
Allow up to this many simultaneous operators; NULL or 0 if no limit. (Default = null) |
|
cur_raw_reas_cd |
string40 |
N |
Y |
Current raw reason code on this entity. (Default = null) |
|
def_raw_reas_cd |
string40 |
N |
Y |
Default raw reason code to apply when raw_reas_cd received from a UCO does not exist. (Default = null) |
|
lab_cd_reqd |
logical |
N |
N |
Yes if this entity is currently waiting for the user to enter a final code. Default = No. |
|
spare1 |
string1000 |
N |
Y |
Use defined by language term 5213 |
|
spare2 |
string1000 |
N |
Y |
Use defined by language term 5214 |
|
spare3 |
string1000 |
N |
Y |
Use defined by language term 5215 |
|
spare4 |
string1000 |
N |
Y |
Use defined by language term 5216 |
|
last_edit_comment |
string254 |
N |
Y |
Reserved for internal use to indicate why this record was changed |
|
last_edit_by |
string40 |
N |
Y |
Who last changed this record |
|
last_edit_at |
tdatetime |
N |
N |
When this record was last changed |
FK from ent_id to ent. (Cascade delete)
FK from def_lab_cd to labor_cat. (Inhibit delete)
FK from def_dept_id to labor_dept. (Inhibit delete)
FK from ent_id, def_raw_reas_cd to labor_raw_reas. (Inhibit delete)