{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Insight",
  "title": "Insight",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "This is the name of the Insight.",
      "minLength": 1,
      "maxLength": 255
    },
    "type": {
      "type": "string",
      "description": "This is the type of the Insight.",
      "enum": [
        "bar",
        "line",
        "pie",
        "text"
      ]
    },
    "id": {
      "type": "string",
      "description": "This is the unique identifier for the Insight."
    },
    "orgId": {
      "type": "string",
      "description": "This is the unique identifier for the org that this Insight belongs to."
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the Insight was created."
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
    },
    "systemKey": {
      "type": "string",
      "description": "Stable server-owned identifier for system-created insights."
    }
  },
  "required": [
    "type",
    "id",
    "orgId",
    "createdAt",
    "updatedAt"
  ]
}