{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taktovka-com/json-schema/taktovka-com-employee-schema.json",
  "title": "Employee",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taktovka-com-openapi.json#/components/schemas/Employee",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "first_name": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "contract_type": {
      "type": "string",
      "enum": [
        "TPP",
        "DoPC",
        "DoBPS",
        "DoVP",
        "HPP",
        "DPP",
        "DPC",
        "DoPCS"
      ],
      "description": "SK: TPP, DoPC, DoBPS, DoVP, DoPCS; CZ: HPP, DPP, DPC"
    },
    "max_hours_week": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Agreed weekly hours"
    },
    "home_location_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ]
    },
    "position_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "email": {
      "description": "Only with the people:contact scope",
      "type": [
        "string",
        "null"
      ]
    },
    "phone": {
      "description": "Only with the people:contact scope",
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 instant"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 instant"
    }
  },
  "required": [
    "id",
    "first_name",
    "last_name",
    "active",
    "contract_type",
    "max_hours_week",
    "home_location_id",
    "position_ids",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}