GetStaffPlaytime:
  get:
    tags:
      - site
    summary: Get staff playtime for a specified duration
    description: Get staff playtime for all staff members for a specified duration
    operationId: getStaffPlaytime
    parameters:
      - $ref: '#/components/parameters/From'
      - $ref: '#/components/parameters/To'
    responses:
      '200':
        description: Staff playtime retrieved
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StaffPlaytimeList'
components:
  parameters:
    From:
      name: from
      in: path
      required: true
      schema:
        type: string
        format: date-time
        example: 2025-01-01T00:00:00.000Z
    To:
      name: to
      in: path
      required: true
      schema:
        type: string
        format: date-time
        example: 2025-01-07T23:59:59.999Z
  schemas:
    StaffPlaytimeList:
      type: array
      items:
        $ref: '#/components/schemas/StaffPlaytime'
    StaffPlaytime:
      type: object
      required:
        - staff_member
        - playtime
        - last_played
        - role
      properties:
        staff_member:
          type: string
          description: The name of the staff member
        playtime:
          type: integer
          description: Total playtime for the specified duration in minutes
        last_played:
          type: string
          format: date-time
          description: Last played timestamp
        role:
          type: string
          description: The role of the staff member
