{
  "id": "work_order",
  "title": "Work orders",
  "makes": "An Interchange work order (contracts/work_order.schema.json).",
  "instructions": [
    "One row per work order. Fill the Data sheet; this sheet explains each column.",
    "Leave an optional cell empty when the value is not known. Do not write a guess; write what you know and say where it came from in source.",
    "Lists take several values separated by a semicolon (;).",
    "Ids in a catalogue column must come from MissionSight's catalogue (the Catalogue column below names which list).",
    "If a row does not match, the whole load stops and the report names the row and the column. Nothing is half loaded.",
    "The example row is an example only. It names a made-up airport, Acme County, and is not anyone's data."
  ],
  "columns": [
    {
      "name": "work_order_number",
      "type": "string",
      "required": true,
      "meaning": "The CMMS's number.",
      "example": "WO-10422"
    },
    {
      "name": "asset_id",
      "type": "string",
      "required": true,
      "meaning": "The asset.",
      "example": "ESC-07"
    },
    {
      "name": "task",
      "type": "string",
      "required": true,
      "meaning": "The task.",
      "example": "Replace handrail drive chain"
    },
    {
      "name": "priority",
      "type": "enum",
      "required": true,
      "meaning": "The priority.",
      "example": "high",
      "values": [
        "low",
        "medium",
        "high",
        "highest"
      ]
    },
    {
      "name": "state",
      "type": "enum",
      "required": true,
      "meaning": "The state.",
      "example": "done",
      "values": [
        "requested",
        "open",
        "in_progress",
        "done",
        "cancelled"
      ]
    },
    {
      "name": "opened",
      "type": "date",
      "required": false,
      "meaning": "Opened, YYYY-MM-DD.",
      "example": "2026-03-02"
    },
    {
      "name": "closed",
      "type": "date",
      "required": false,
      "meaning": "Closed, YYYY-MM-DD.",
      "example": "2026-03-04"
    },
    {
      "name": "source",
      "type": "string",
      "required": true,
      "meaning": "Where this row came from: a system export, a document and page, a walk-down, a person.",
      "example": "Example only: Acme County Airport asset spreadsheet, tab Conveying, row 12"
    }
  ]
}