{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/agri/HoldingWorkAssignment.schema.json",
  "title": "HoldingWorkAssignment",
  "description": "Work performed or intended to be performed by one person on a specified Farm during an optionally known period, including daily management, paid work and unpaid contributions. This may stand alone when only farm participation is known. An optional WorkRelationship identifies the separate economic relationship, for example with a labour agency or a contractor enterprise. Neither the assignment nor its function implies holder responsibility, ownership or employment by the Farm. Classifications describe this assignment; omitted values are not automatically copied from a linked relationship.",
  "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."
    },
    "assigned_holding": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/agri/Farm.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The Farm on which this person performs or is intended to perform the assigned work. It does not identify the employer or economic unit by implication."
    },
    "assignment_work_relationship": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/WorkRelationship.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The economic work relationship within which this holding assignment occurs. It must concern the same person. The assignment can be recorded without this link when a separate economic relationship is unknown or unnecessary."
    },
    "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_functions": {
      "type": "array",
      "items": {
        "$ref": "https://publicschema.org/CodedValue.schema.json",
        "description": "The functions performed in this work on the farm, such as daily management or harvesting, each coded in a stated classification. A function does not establish agricultural holder responsibility or status at work."
      }
    },
    "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."
    }
  }
}
