{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elhub/json-schema/elhub-party-schema.json",
  "title": "party",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elhub-party-api-openapi.yml#/components/schemas/party",
  "properties": {
    "id": {
      "description": "Note:\nThis is a Primary Key.<pk/>",
      "format": "bigint",
      "type": "integer"
    },
    "business_id": {
      "format": "text",
      "type": "string"
    },
    "business_id_type": {
      "format": "text",
      "type": "string"
    },
    "entity_id": {
      "description": "Note:\nThis is a Foreign Key to `entity.id`.<fk table='entity' column='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"
    }
  },
  "type": "object"
}