{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elhub/main/json-schema/elhub-entity-client-schema.json",
  "title": "entity_client",
  "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/entity_client",
  "properties": {
    "id": {
      "description": "Note:\nThis is a Primary Key.<pk/>",
      "format": "bigint",
      "type": "integer"
    },
    "entity_id": {
      "description": "Note:\nThis is a Foreign Key to `entity.id`.<fk table='entity' column='id'/>",
      "format": "bigint",
      "type": "integer"
    },
    "client_id": {
      "format": "uuid",
      "type": "string"
    },
    "name": {
      "format": "text",
      "type": "string"
    },
    "party_id": {
      "description": "Note:\nThis is a Foreign Key to `party.id`.<fk table='party' column='id'/>",
      "format": "bigint",
      "type": "integer"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "public_key": {
      "format": "text",
      "type": "string"
    },
    "client_secret": {
      "format": "text",
      "type": "string"
    },
    "recorded_by": {
      "format": "bigint",
      "type": "integer"
    },
    "recorded_at": {
      "format": "timestamp with time zone",
      "type": "string"
    }
  },
  "type": "object"
}