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