{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elhub/json-schema/elhub-party-history-schema.json",
  "title": "party_history",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elhub-party-history-api-openapi.yml#/components/schemas/party_history",
  "properties": {
    "id": {
      "format": "bigint",
      "type": "integer"
    },
    "party_id": {
      "format": "bigint",
      "type": "integer"
    },
    "business_id": {
      "format": "text",
      "type": "string"
    },
    "business_id_type": {
      "format": "text",
      "type": "string"
    },
    "entity_id": {
      "format": "bigint",
      "type": "integer"
    },
    "name": {
      "format": "text",
      "type": "string"
    },
    "role": {
      "format": "name",
      "type": "string"
    },
    "status": {
      "format": "text",
      "type": "string"
    },
    "type": {
      "format": "text",
      "type": "string"
    },
    "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"
    }
  },
  "type": "object"
}