{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rollee/json-schema/rollee-models-company-accounts-employment-schema.json",
  "title": "models.CompanyAccountsEmployment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rollee-fleet-endpoints-api-openapi.yml#/components/schemas/models.CompanyAccountsEmployment",
  "type": "object",
  "properties": {
    "size": {
      "type": "integer"
    },
    "users_data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/handlers.AccountDataResponse-std_models_Employment"
      }
    }
  },
  "$defs": {
    "handlers.AccountDataResponse-std_models_Employment": {
      "type": "object",
      "properties": {
        "endpoint_data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/std_models.Employment"
          }
        },
        "user_account_id": {
          "type": "string"
        },
        "user_id": {
          "type": "string"
        }
      }
    },
    "std_models.Employment": {
      "type": "object",
      "properties": {
        "contract_type": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "duration_days": {
          "type": "integer"
        },
        "employment_type": {
          "type": "string"
        },
        "end_date": {
          "description": "of format YYYY-MM-DD",
          "type": "string"
        },
        "income": {
          "type": "number"
        },
        "income_description": {
          "type": "string"
        },
        "organization_address": {
          "type": "string"
        },
        "organization_fiscal_id": {
          "type": "string"
        },
        "organization_name": {
          "type": "string"
        },
        "organization_sector": {
          "type": "string"
        },
        "retrieved_date": {
          "type": "string"
        },
        "start_date": {
          "description": "of format \"YYYY-MM-DD\" # !TODO ?",
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "worker_id": {
          "type": "string"
        }
      }
    }
  }
}