JodGig Domain Statuses
This reference documents the status values used by the JodGig domain tables.
Numeric values are scoped to their table and column. For example,
1can mean an enabled slot, an applied job user, an unprocessed payment, or a clock-in payment state; it must not be interpreted without its context.
jod_jobs
Column: status
| Value | Constant | Translation key | Meaning |
|---|---|---|---|
1 | JOB_JOD_STATUS_OPENING | jod_job_opening | Open for applications. |
2 | JOB_JOD_STATUS_ACTIVE | jod_job_active | Active job. |
3 | JOB_JOD_STATUS_COMPLETED | jod_job_completed | Completed job. |
4 | JOB_JOD_STATUS_CANCELED | jod_job_canceled | Cancelled job. |
5 | JOB_JOD_STATUS_PENDING | jod_job_pending | Pending job. |
6 | JOB_JOD_STATUS_NO_APPROVE | jod_job_no_approve | Not approved. |
7 | JOB_JOD_STATUS_EXPIRED_NO_APPLICANTS | jod_job_expired_no_applicants | Expired with no applicants. |
8 | JOB_JOD_STATUS_EXPIRED_NO_SELECTION | jod_job_expired_no_selection | Expired with no selection. |
10 | JOB_JOD_STATUS_ALL_REJECTED_BY_MANAGER | jod_job_all_rejected_by_manager | All applicants rejected by the manager. |
11 | JOB_JOD_STATUS_ALL_CANCELLED | jod_job_all_cancelled | All applicants cancelled. |
12 | JOB_JOD_STATUS_ACTIVE_WITH_REJECTED | jod_job_active_with_rejected | Active with rejected applicants. |
13 | JOB_JOD_STATUS_ACTIVE_WITH_CANCELLED | jod_job_active_with_cancelled | Active with cancelled applicants. |
14 | JOB_JOD_STATUS_CLOSED_REJECTED | jod_job_closed_rejected | Closed after rejection. |
15 | JOB_JOD_STATUS_CLOSED_CANCELLED | jod_job_closed_cancelled | Closed after cancellation. |
16 | JOB_JOD_STATUS_PARTIALLY_COMPLETED | jod_job_partially_completed | Partially completed. |
17 | JOB_JOD_STATUS_INCOMPLETE | jod_job_incomplete | Incomplete. |
Value 9 is not active: its constant is commented out. JOB_JOD_STATUS_EXPIRED_TEXT and JOB_JOD_STATUS_CLOSED_TEXT are generic translation keys only; they do not have corresponding numeric statuses.
job_user
Column: status. This represents an applicant's job-level application and selection state.
| Value | Constant | Translation key | Meaning |
|---|---|---|---|
1 | JOB_USER_STATUS_APPLIED | job_user_applied | Applied. |
2 | JOB_USER_STATUS_SELECTED | job_user_selected | Selected. |
3 | JOB_USER_STATUS_UNSELECTED | job_user_unselected | Unselected. |
4 | JOB_USER_STATUS_PRE_SELECTION_SELF_CANCELED | job_user_pre_selection_self_canceled | Self-cancelled before selection. |
5 | JOB_USER_STATUS_REJECT_BY_MANAGER | job_user_reject_by_manager | Rejected by the manager. |
6 | JOB_USER_STATUS_TIME_OVERLAP_REJECTED | job_user_time_overlap_rejected | Rejected because of a time overlap. |
8 | JOB_USER_STATUS_POST_SELECTION_SELF_CANCELED | job_user_post_selection_self_canceled | Self-cancelled after selection. |
9 | JOB_USER_STATUS_ADMIN_DISABLING_REJECTED | job_user_admin_disable_applicant | Rejected because the applicant was disabled by an administrator. |
10 | JOB_USER_STATUS_NO_HIRING | job_user_no_hiring | No hiring. |
11 | JOB_USER_STATUS_NO_APPLICANTS | job_user_no_applicant | No applicants. |
12 | JOB_USER_STATUS_ADMIN_DISABLING_COMPANY_REJECTED | job_user_admin_disable_company_rejected | Rejected because the company was disabled by an administrator. |
13 | JOB_USER_STATUS_ADMIN_DISABLING_OUTLET_REJECTED | job_user_admin_disable_outlet_rejected | Rejected because the outlet was disabled by an administrator. |
14 | JOB_USER_STATUS_ADMIN_DISABLING_APPLICANT_REJECTED | job_user_admin_disable_applicant_rejected | Rejected because the applicant was disabled by an administrator. |
Value 7 is not active: its constant and translation key are commented out.
slots
Column: status
| Value | Constant | Meaning |
|---|---|---|
1 | SLOT_STATUS_ENABLE | Enabled and available for use. |
0 | SLOT_STATUS_DISABLE | Disabled. |
slot_user
Column: status. This represents a selected worker's slot-level work lifecycle.
| Value | Constant | Meaning |
|---|---|---|
1 | SLOT_USER_STATUS_HIRED | Hired. |
2 | SLOT_USER_STATUS_ACK1 | ACK1 completed. |
3 | SLOT_USER_STATUS_ACK2 | ACK2 completed. |
4 | SLOT_USER_STATUS_CLOCK_IN | Clocked in. |
5 | SLOT_USER_STATUS_CLOCK_OUT | Clocked out. |
6 | SLOT_USER_STATUS_REJECTED_BY_MANAGER | Rejected by the manager. |
7 | SLOT_USER_STATUS_SELF_CANCELED | Self-cancelled. |
8 | SLOT_USER_STATUS_NO_SHOW | No show. |
9 | SLOT_USER_STATUS_ADMIN_DISABLING_REJECTED | Rejected because of administrative disabling. |
10 | SLOT_USER_STATUS_NO_HIRING | No hiring. |
11 | SLOT_USER_STATUS_NO_APPLICANT | No applicant. |
12 | SLOT_USER_STATUS_REJECTED_BY_MANAGER_PARTIAL | Partially rejected by the manager. |
payments
payments has three independent status-related columns. Always include the column name when querying, filtering, or integrating with this table.
| Column | Value | Constant | Meaning |
|---|---|---|---|
payment_status | 1 | PAYMENT_STATUS_UNPROCESSED | Payment has not been processed. |
payment_status | 2 | PAYMENT_STATUS_PROCESSED | Payment has been processed. |
payment_status | 3 | PAYMENT_STATUS_IN_PROGRESS | Payment is in progress. |
clock_status | 1 | PAYMENT_STATUS_CLOCK_IN_DONE | Clock in completed. |
clock_status | 0 | PAYMENT_STATUS_CLOCK_OUT_SUCCESSFULLY | Clock out completed successfully. |
status | 1 | PAYMENT_STATUS_ENABLE | Enabled payment record. |
status | 0 | PAYMENT_STATUS_DISABLE | Disabled payment record. |
job_templates
Column: status
| Value | Constant | Meaning |
|---|---|---|
1 | JOB_TEMPLATE_ENABLE | Enabled. |
0 | JOB_TEMPLATE_DISABLE | Disabled. |
qr_code_slot_users
This table has no status field and no QR-code status constants in Constants.php. QR-code state is represented by record attributes instead.
| Attribute | Values used by the application | Meaning |
|---|---|---|
is_used | 0, 1 | 0 is unused; 1 is used. |
expired_datetime | timestamp or NULL | A QR code is expired when this is NULL or earlier than the current time. |
qr_type | clock_in, clock_out | Identifies the QR-code action. |
job_types
Column: status
| Value | Constant | Meaning |
|---|---|---|
1 | JOB_TYPE_ENABLE | Enabled. |
0 | JOB_TYPE_DISABLE | Disabled. |
cancellation_penalties
Column: status
| Value | Constant | Meaning |
|---|---|---|
pending | CANCELLATION_PENALTY_STATUS_PENDING | Awaiting a decision or processing. |
approved | CANCELLATION_PENALTY_STATUS_APPROVED | Penalty approved. |
rejected | CANCELLATION_PENALTY_STATUS_REJECTED | Penalty rejected. |
waived | CANCELLATION_PENALTY_STATUS_WAIVED | Penalty waived. |
The table also stores a category, which is not a status but is defined alongside the statuses:
| Value | Constant | Meaning |
|---|---|---|
more_than_24_hours | CANCELLATION_PENALTY_CATEGORY_MORE_THAN_24_HOURS_BEFORE_SHIFT_START | More than 24 hours before shift start. |
within_24_hours | CANCELLATION_PENALTY_CATEGORY_WITHIN_24_HOURS_BEFORE_SHIFT_START | Within 24 hours before shift start. |
after_shift_start | CANCELLATION_PENALTY_CATEGORY_AFTER_SHIFT_START | After shift start. |
account_suspensions
Column: status
| Value | Constant | Meaning |
|---|---|---|
0 | ACCOUNT_SUSPENSION_STATUS_ENABLED | Suspension is enabled (active). |
1 | ACCOUNT_SUSPENSION_STATUS_DISABLED | Suspension is disabled. |
2 | ACCOUNT_SUSPENSION_STATUS_PENDING_FOR_REVIEW | Supporting document or suspension is pending review. |