Employees Directory
The work-contract resource
The
work-contract resource models a formal employment relationship between an employee (or user) and an establishment.
Each employee is required to have at least one associated work-contract. Multiple contracts are supported, provided their date ranges do not overlap.
A work-contract determines the employee’s active status within the system. Access to the employee’s Lucca account is granted exclusively within the valid date range of at least one active work-contract. Outside of these bounds, account access is disabled.
Additionally, a work-contract contains data describing the employment terms, such as:
- Contract type (e.g., permanent, fixed-term);
- Presence of a trial period;
- Work duration;
- etc…
Readonly. Whether this work-contract applies to the employee at this very moment.
A work-contract is considered "applicable" if:
- It is the ongoing work-contract as of today;
- If there is none, then it is the first upcoming work-contract;
- If not, then it is the last work-contract this employee had.