backend.components.workers

Workers

The workers module manages all worker-related operations, including CRUD functionality, onboarding, and entry pass generation. It serves as the central component for handling worker data and interactions.

Directory Structure

workerController.py

  • Defines API endpoints for worker-related operations.
  • Handles HTTP requests and responses for:
    • Creating, reading, updating, and deleting worker records.
    • Generating worker entry passes (e.g., QR codes).

workerService.py

  • Implements the business logic for worker management.
  • Provides functionality for:
    • Worker onboarding and data validation.
    • Generating and managing worker-specific data (e.g., face embeddings, QR codes).
    • Interfacing with the database to perform CRUD operations.
 1'''
 2# Workers
 3
 4
 5The `workers` module manages all worker-related operations, including CRUD functionality, onboarding, and entry pass generation. It serves as the central component for handling worker data and interactions.
 6
 7
 8
 9## Directory Structure
10
11#### `workerController.py`
12- Defines API endpoints for worker-related operations.
13- Handles HTTP requests and responses for:
14  - Creating, reading, updating, and deleting worker records.
15  - Generating worker entry passes (e.g., QR codes).
16
17#### `workerService.py`
18- Implements the business logic for worker management.
19- Provides functionality for:
20  - Worker onboarding and data validation.
21  - Generating and managing worker-specific data (e.g., face embeddings, QR codes).
22  - Interfacing with the database to perform CRUD operations.
23
24'''