{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://recruitly.dev/backup-schema/v1/jobs.schema.json",
  "title": "Jobs",
  "description": "Your job orders.",
  "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"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "company": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "contact": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "jobType": {
      "type": [
        "string",
        "null"
      ]
    },
    "employmentType": {
      "type": [
        "string",
        "null"
      ]
    },
    "experience": {
      "type": [
        "string",
        "null"
      ]
    },
    "sectors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "industries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "openings": {
      "type": [
        "number",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "shortDescription": {
      "type": [
        "string",
        "null"
      ]
    },
    "skills": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "line": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "region": {
          "type": [
            "string",
            "null"
          ]
        },
        "postCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "remoteWorking": {
      "type": "boolean"
    },
    "pay": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "currency": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "tenure": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "minPay": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "maxPay": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "payRate": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "commissionValue": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "value": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "number",
            "boolean",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "closingDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "hot": {
      "type": "boolean"
    },
    "customFields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": [
              "string",
              "null"
            ]
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    }
  },
  "required": [
    "id",
    "tenantId",
    "reference",
    "owner",
    "createdOn",
    "modifiedOn",
    "archived",
    "title",
    "company",
    "contact",
    "status",
    "jobType",
    "employmentType",
    "experience",
    "sectors",
    "industries",
    "openings",
    "description",
    "shortDescription",
    "skills",
    "location",
    "remoteWorking",
    "pay",
    "commissionValue",
    "closingDate",
    "hot",
    "customFields"
  ],
  "additionalProperties": false
}
