{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Timeline",
  "title": "Timeline",
  "type": "object",
  "description": "Build timeline showing all records (phases, jobs, tasks)",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Timeline ID"
    },
    "changeId": {
      "type": "integer",
      "description": "Change ID for real-time timeline updates"
    },
    "lastChangedBy": {
      "type": "string",
      "format": "uuid"
    },
    "lastChangedOn": {
      "type": "string",
      "format": "date-time"
    },
    "records": {
      "type": "array",
      "description": "List of timeline records (phases, jobs, tasks)",
      "items": {
        "$ref": "#/components/schemas/TimelineRecord"
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  }
}