{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Zeoel Team Phase",
  "type": "object",
  "properties": {
    "phase_id": {
      "type": "string"
    },
    "phase_name": {
      "type": "string"
    },
    "status": {
      "enum": [
        "not_started",
        "in_progress",
        "needs_client_input",
        "needs_revision",
        "ready_for_review",
        "approved",
        "rejected",
        "completed",
        "blocked"
      ]
    },
    "inputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "required_documents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "approval_required": {
      "type": "boolean"
    },
    "quality_gate": {
      "type": "string"
    },
    "next_phase": {
      "type": [
        "string",
        "null"
      ]
    },
    "blocking_issues": {
      "type": "array"
    },
    "version": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "phase_id",
    "phase_name",
    "status",
    "required_documents",
    "approval_required",
    "quality_gate"
  ],
  "additionalProperties": true
}
