Skip to main content

Personnel

Overview

The Person entity represents individuals within the organization. Each person is assigned to a department, may be linked to a specific shift, and can hold multiple certifications. This structure allows for detailed workforce management, covering assignments, schedules, and skill tracking within the organization.

Table Structure

The following table outlines the SQL columns for the personnel table, providing a brief description of each, along with sample data where applicable.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the person.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not.true
created_dateDateTimeDate the entity was created.2024-12-31T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2024-12-31T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.some extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.some extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.some extra context 3
personnel_department_idString (ULID)References the department to which the person is assigned. See personnel_departments.01JAP8R5RT-3FPXQABY-7KQZT6VF
person_statusString (Enum)Status of the person, such as ACTIVE or INACTIVE.ACTIVE
first_nameStringFirst name of the individual.John
last_nameStringLast name of the individual.Doe
initialsStringGenerated initials for the person based on their first and last names.JD
usernameStringUnique username of the person, typically tied to the defined user source.jdoe

Field Details

personnel_department_id

References the PersonnelDepartment entity that the person is assigned to. This allows organizing personnel based on departmental structures. See personnel_departments for details on departments.

person_status

Indicates the current status of the person. This field uses the Person_status enum with the following values:

  • ACTIVE: The person is actively working.
  • INACTIVE: The person is not currently active.

initials

Automatically generated initials for the person, derived from the first and last names. This can be used for easy identification.

username

Unique username associated with the person, ensuring identification within the system.

Certifications

The Person entity can be associated with multiple certifications through a many-to-many relationship. This relationship supports skill tracking and ensures that personnel meet the necessary qualifications for their roles.

See personnel_certifications for details on certifications.