{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/WorkRelationship.schema.json",
  "title": "WorkRelationship",
  "description": "The set of tasks and duties that one person performs, or is meant to perform, for one economic unit during an optionally known period. It covers a job in employment and a work activity in any other form of work, such as own-use production or volunteer work. The economic unit is the unit for which the work is done, not necessarily a legal employer, an organization or a workplace. An independent worker's clients do not by themselves create separate work relationships. This is distinct from the person's overall labor force status.",
  "type": "object",
  "properties": {
    "work_person": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Person.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The person who performs, or is meant to perform, the work."
    },
    "work_economic_unit": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the economic unit for which the work is done, such as an enterprise, a government or non-profit unit, or a household producing for its own use. It is not automatically a client, a workplace or a legal employer."
    },
    "legal_employer": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the person or organization that is the employer in this relationship under the contract or the applicable law, as the source states it. It can differ from the economic unit, such as an employer-of-record agency, a household member who employs a domestic worker for the household, or a public body whose staff work in another unit. Recording it does not decide the person's status in employment."
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this became effective."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "The last day on which this is effective. A period includes both its start date and its end date, so a period that applies only on 30 June 2026 has start date 2026-06-30 and end date 2026-06-30."
    },
    "identifiers": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/Identifier.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Identifiers carried by this entity, such as national ID numbers, program IDs, or identifiers asserted by an identity document."
      }
    },
    "work_form": {
      "type": "string",
      "enum": [
        "own_use_production_work",
        "employment_work",
        "unpaid_trainee_work",
        "volunteer_work",
        "other_work_activities"
      ],
      "$comment": "https://publicschema.org/vocab/form-of-work",
      "description": "The form of work that this relationship belongs to under the international statistical standards on work, such as employment or own-use production work. Whether the work is paid does not alone determine its form."
    },
    "work_status": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The person's status at work in this relationship, coded in a named classification such as ICSaW-18 or, for employment only, the 2018 International Classification of Status in Employment. The code identifies the classification and its edition. It is not the person's overall labor force status. A person's main-job status in employment and overall labor force status are recorded with status_in_employment and employment_status."
    },
    "work_remuneration": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The main form of remuneration for this work, such as pay for time worked, by the piece, a fee for services or a share of profit, coded in a named scheme. Unpaid work is shown by the form of work, and the absence of a wage alone does not place work outside employment."
    },
    "work_seasonality": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "Whether and how the timing and duration of this work depend on seasonal factors, such as climate, holidays or harvests, coded in a named scheme. It does not by itself determine employment status, contract duration, working time or the dates of the relationship."
    }
  }
}
