{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elhub/main/json-schema/elhub-controllable-unit-service-provider-history-schema.json",
  "title": "controllable_unit_service_provider_history",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/elhub-postgrest-openapi-3-0-openapi.json#/components/schemas/controllable_unit_service_provider_history",
  "properties": {
    "id": {
      "format": "bigint",
      "type": "integer"
    },
    "controllable_unit_service_provider_id": {
      "format": "bigint",
      "type": "integer"
    },
    "contract_reference": {
      "format": "text",
      "type": "string"
    },
    "controllable_unit_id": {
      "format": "bigint",
      "type": "integer"
    },
    "end_user_id": {
      "format": "bigint",
      "type": "integer"
    },
    "service_provider_id": {
      "format": "bigint",
      "type": "integer"
    },
    "recorded_by": {
      "format": "bigint",
      "type": "integer"
    },
    "recorded_at": {
      "format": "timestamp with time zone",
      "type": "string"
    },
    "replaced_by": {
      "format": "bigint",
      "type": "integer"
    },
    "replaced_at": {
      "format": "timestamp with time zone",
      "type": "string"
    },
    "valid_from": {
      "format": "timestamp with time zone",
      "type": "string"
    },
    "valid_to": {
      "format": "timestamp with time zone",
      "type": "string"
    }
  },
  "type": "object"
}