{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://recruitly.dev/backup-schema/v1/job_pipeline.schema.json",
  "title": "Job pipeline",
  "description": "Each candidate on each job, with their stage and the key dates.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "tenantId": {
      "type": [
        "string",
        "null"
      ]
    },
    "reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "createdOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "modifiedOn": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "archived": {
      "type": "boolean"
    },
    "job": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "candidate": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "company": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "stage": {
      "type": [
        "string",
        "null"
      ]
    },
    "candidateSource": {
      "type": [
        "string",
        "null"
      ]
    },
    "rejected": {
      "type": "boolean"
    },
    "rejectReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "hot": {
      "type": "boolean"
    },
    "rating": {
      "type": [
        "number",
        "null"
      ]
    },
    "sourcedDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "appliedDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "shortlistDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "cvSentDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "interviewDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "offeredDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "placementDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "tenantId",
    "reference",
    "owner",
    "createdOn",
    "modifiedOn",
    "archived",
    "job",
    "candidate",
    "company",
    "status",
    "stage",
    "candidateSource",
    "rejected",
    "rejectReason",
    "hot",
    "rating",
    "sourcedDate",
    "appliedDate",
    "shortlistDate",
    "cvSentDate",
    "interviewDate",
    "offeredDate",
    "placementDate"
  ],
  "additionalProperties": false
}
