{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "title": "Softfruit.farm farm data export",
 "format": "softfruit-farm-export",
 "formatVersion": "1.0",
 "termsSchedule": "Softfruit.farm Terms v1.1, Schedule 2 (Exportable Data, Switching and Technical Information)",
 "conventions": {
  "archive": "One ZIP file. Paths inside use forward slashes and UTF-8 names.",
  "csv": "RFC 4180. UTF-8 with byte order mark, comma separator, CRLF line ends, header row. A cell is quoted when it holds a comma, a double quote or a line break; a double quote inside is written twice. An empty cell means null.",
  "json": "RFC 8259, UTF-8. Each json/<entity>.json file is an array of objects with the same keys, in the same order, as the CSV columns. null means no value.",
  "timestamps": "ISO 8601 in UTC, ending with Z (for example 2026-07-01T05:30:00Z). The farm time zone is in farm.json (timeZone). Fractions of a second are kept as stored.",
  "dates": "ISO 8601 calendar dates YYYY-MM-DD, as stored for the farm.",
  "durations": "Durations are in minutes where the column name ends with _minutes; columns in other units say so in their unit.",
  "minutesOfDay": "start_day_minutes and end_day_minutes are minutes after midnight of work_date in the farm time zone (480 = 08:00); end_day_minutes above 1440 means the work ended after midnight.",
  "numbers": "Dot as decimal separator, no thousands separator.",
  "geometry": "Quarter boundaries are GeoJSON geometries (RFC 7946, longitude and latitude in WGS 84); also collected in geo/quarter_boundaries.geojson.",
  "current": "csv/<entity>.csv and json/<entity>.json hold the current state, the same records the app shows today. One row per record; primary key id.",
  "history": "csv/history/<entity>.csv and json/history/<entity>.json hold every stored version of every record of the farm, including corrected and deleted ones. Primary key (id, ver). The highest ver of an id is its latest version; deleted = true marks the version that deleted the record.",
  "references": "A column ending with _id holds the id of a record of another entity (see foreignKey). The matching _ver column holds the version of that record at the time of writing; join it with the history file of that entity to see the referenced record exactly as it was.",
  "standards": "No sector-specific interoperability standard is applied. Formats used: CSV (RFC 4180), JSON (RFC 8259), JSON Schema (draft 2020-12), GeoJSON (RFC 7946), ISO 8601, ZIP."
 },
 "rootFiles": {
  "README.txt": "Plain-text guide to this archive.",
  "schema.json": "This file: every entity, file, column, type, unit and key.",
  "farm.json": "The exported farm, its time zone, the export time and the number of rows in every file.",
  "geo/quarter_boundaries.geojson": "GeoJSON FeatureCollection of the current quarter boundaries."
 },
 "entities": [
  {
   "name": "organization",
   "description": "The farm (Farm Account) itself: name, key, currency and language.",
   "termsScheduleCategories": [
    "A1"
   ],
   "scope": "farm",
   "files": {
    "csv": "csv/organization.csv",
    "json": "json/organization.json",
    "historyCsv": "csv/history/organization.csv",
    "historyJson": "json/history/organization.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "currency_code",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "ISO 4217 currency code of the farm."
    },
    {
     "name": "is_active",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = active."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "language_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a language record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "language_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced language record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "organization",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "currency_code",
     "is_active",
     "key",
     "language_id",
     "language_ver",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "currency_code": {
      "type": [
       "string",
       "null"
      ],
      "description": "ISO 4217 currency code of the farm."
     },
     "is_active": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = active."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "language_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a language record (a Service dictionary or another module; not included in this export)."
     },
     "language_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced language record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "currency_code",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "ISO 4217 currency code of the farm."
     },
     {
      "name": "is_active",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = active."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "language_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a language record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "language_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced language record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "organization (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "currency_code",
      "is_active",
      "key",
      "language_id",
      "language_ver",
      "name"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "currency_code": {
       "type": [
        "string",
        "null"
       ],
       "description": "ISO 4217 currency code of the farm."
      },
      "is_active": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = active."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "language_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a language record (a Service dictionary or another module; not included in this export)."
      },
      "language_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced language record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      }
     }
    }
   }
  },
  {
   "name": "legal_entities",
   "description": "Legal entities (contracting farm operators) recorded for the farm.",
   "termsScheduleCategories": [
    "A1"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/legal_entities.csv",
    "json": "json/legal_entities.json",
    "historyCsv": "csv/history/legal_entities.csv",
    "historyJson": "json/history/legal_entities.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "contact_email",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Contact e-mail of the legal entity."
    },
    {
     "name": "country",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Country as entered."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "legal_entities",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "contact_email",
     "country",
     "key",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "contact_email": {
      "type": [
       "string",
       "null"
      ],
      "description": "Contact e-mail of the legal entity."
     },
     "country": {
      "type": [
       "string",
       "null"
      ],
      "description": "Country as entered."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "contact_email",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Contact e-mail of the legal entity."
     },
     {
      "name": "country",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Country as entered."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "legal_entities (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "contact_email",
      "country",
      "key",
      "name"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "contact_email": {
       "type": [
        "string",
        "null"
       ],
       "description": "Contact e-mail of the legal entity."
      },
      "country": {
       "type": [
        "string",
        "null"
       ],
       "description": "Country as entered."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      }
     }
    }
   }
  },
  {
   "name": "organization_settings",
   "description": "Farm-level settings chosen in the Service.",
   "termsScheduleCategories": [
    "A1"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/organization_settings.csv",
    "json": "json/organization_settings.json",
    "historyCsv": "csv/history/organization_settings.csv",
    "historyJson": "json/history/organization_settings.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "crop_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crops",
      "field": "id"
     },
     "description": "Reference to crops.id."
    },
    {
     "name": "crop_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crops record when this row was written."
    },
    {
     "name": "record_uid",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Identifier of the setting record."
    },
    {
     "name": "setting_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "setting_option_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "setting_option_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced setting option record when this row was written."
    },
    {
     "name": "setting_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced setting record when this row was written."
    },
    {
     "name": "value",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Setting value."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "organization_settings",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "crop_id",
     "crop_ver",
     "record_uid",
     "setting_id",
     "setting_option_id",
     "setting_option_ver",
     "setting_ver",
     "value"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "crop_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crops.id."
     },
     "crop_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     "record_uid": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Identifier of the setting record."
     },
     "setting_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
     },
     "setting_option_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
     },
     "setting_option_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced setting option record when this row was written."
     },
     "setting_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced setting record when this row was written."
     },
     "value": {
      "type": [
       "string",
       "null"
      ],
      "description": "Setting value."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "crop_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crops",
       "field": "id"
      },
      "description": "Reference to crops.id."
     },
     {
      "name": "crop_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     {
      "name": "record_uid",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Identifier of the setting record."
     },
     {
      "name": "setting_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "setting_option_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "setting_option_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced setting option record when this row was written."
     },
     {
      "name": "setting_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced setting record when this row was written."
     },
     {
      "name": "value",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Setting value."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "organization_settings (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "crop_id",
      "crop_ver",
      "record_uid",
      "setting_id",
      "setting_option_id",
      "setting_option_ver",
      "setting_ver",
      "value"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "crop_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crops.id."
      },
      "crop_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crops record when this row was written."
      },
      "record_uid": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Identifier of the setting record."
      },
      "setting_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
      },
      "setting_option_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
      },
      "setting_option_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced setting option record when this row was written."
      },
      "setting_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced setting record when this row was written."
      },
      "value": {
       "type": [
        "string",
        "null"
       ],
       "description": "Setting value."
      }
     }
    }
   }
  },
  {
   "name": "countries",
   "description": "Countries known to the farm (used for worker nationality).",
   "termsScheduleCategories": [
    "A1"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/countries.csv",
    "json": "json/countries.json",
    "historyCsv": "csv/history/countries.csv",
    "historyJson": "json/history/countries.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "broker_language_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Broker language key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_translation",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = translated entry."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "nationality",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Nationality name."
    },
    {
     "name": "translation_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Translation key."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "countries",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "broker_language_key",
     "is_translation",
     "key",
     "name",
     "nationality",
     "translation_key"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "broker_language_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Broker language key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_translation": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = translated entry."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "nationality": {
      "type": [
       "string",
       "null"
      ],
      "description": "Nationality name."
     },
     "translation_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Translation key."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "broker_language_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Broker language key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "is_translation",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = translated entry."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "nationality",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Nationality name."
     },
     {
      "name": "translation_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Translation key."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "countries (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "broker_language_key",
      "is_translation",
      "key",
      "name",
      "nationality",
      "translation_key"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "broker_language_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Broker language key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "is_translation": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = translated entry."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "nationality": {
       "type": [
        "string",
        "null"
       ],
       "description": "Nationality name."
      },
      "translation_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Translation key."
      }
     }
    }
   }
  },
  {
   "name": "fields",
   "description": "Places of the farm: fields and non-productive terrains (type_key NON_PRODUCTIVE).",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/fields.csv",
    "json": "json/fields.json",
    "historyCsv": "csv/history/fields.csv",
    "historyJson": "json/history/fields.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "archived_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was archived (hidden from lists); empty = active."
    },
    {
     "name": "capacity",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Capacity as stored."
    },
    {
     "name": "city",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Town of the field, when entered."
    },
    {
     "name": "field_code",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Field code, when entered."
    },
    {
     "name": "field_no",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Field number."
    },
    {
     "name": "manager_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "manager_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "size",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "unit": "size_unit (hectares when empty)",
     "nullable": true,
     "description": "Area. Unit in size_unit (hectares when empty)."
    },
    {
     "name": "size_unit",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Unit of size."
    },
    {
     "name": "type_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "NON_PRODUCTIVE = terrain (non-productive place); empty = productive field."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "fields",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "archived_at",
     "capacity",
     "city",
     "field_code",
     "field_no",
     "manager_id",
     "manager_ver",
     "name",
     "size",
     "size_unit",
     "type_key"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "archived_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     "capacity": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Capacity as stored."
     },
     "city": {
      "type": [
       "string",
       "null"
      ],
      "description": "Town of the field, when entered."
     },
     "field_code": {
      "type": [
       "string",
       "null"
      ],
      "description": "Field code, when entered."
     },
     "field_no": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Field number."
     },
     "manager_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "manager_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "size": {
      "type": [
       "number",
       "null"
      ],
      "description": "Area. Unit in size_unit (hectares when empty). Unit: size_unit (hectares when empty)."
     },
     "size_unit": {
      "type": [
       "string",
       "null"
      ],
      "description": "Unit of size."
     },
     "type_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "NON_PRODUCTIVE = terrain (non-productive place); empty = productive field."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "archived_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     {
      "name": "capacity",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Capacity as stored."
     },
     {
      "name": "city",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Town of the field, when entered."
     },
     {
      "name": "field_code",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Field code, when entered."
     },
     {
      "name": "field_no",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Field number."
     },
     {
      "name": "manager_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "manager_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "size",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "unit": "size_unit (hectares when empty)",
      "nullable": true,
      "description": "Area. Unit in size_unit (hectares when empty)."
     },
     {
      "name": "size_unit",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Unit of size."
     },
     {
      "name": "type_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "NON_PRODUCTIVE = terrain (non-productive place); empty = productive field."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "fields (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "archived_at",
      "capacity",
      "city",
      "field_code",
      "field_no",
      "manager_id",
      "manager_ver",
      "name",
      "size",
      "size_unit",
      "type_key"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "archived_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the record was archived (hidden from lists); empty = active."
      },
      "capacity": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Capacity as stored."
      },
      "city": {
       "type": [
        "string",
        "null"
       ],
       "description": "Town of the field, when entered."
      },
      "field_code": {
       "type": [
        "string",
        "null"
       ],
       "description": "Field code, when entered."
      },
      "field_no": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Field number."
      },
      "manager_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "manager_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "size": {
       "type": [
        "number",
        "null"
       ],
       "description": "Area. Unit in size_unit (hectares when empty). Unit: size_unit (hectares when empty)."
      },
      "size_unit": {
       "type": [
        "string",
        "null"
       ],
       "description": "Unit of size."
      },
      "type_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "NON_PRODUCTIVE = terrain (non-productive place); empty = productive field."
      }
     }
    }
   }
  },
  {
   "name": "quarters",
   "description": "Quarters (plots) inside a field.",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/quarters.csv",
    "json": "json/quarters.json",
    "historyCsv": "csv/history/quarters.csv",
    "historyJson": "json/history/quarters.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "archived_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was archived (hidden from lists); empty = active."
    },
    {
     "name": "capacity",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Capacity as stored."
    },
    {
     "name": "continous_version",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Continous version (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "field_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "fields",
      "field": "id"
     },
     "description": "Reference to fields.id."
    },
    {
     "name": "field_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fields record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "no_of_aisles",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Number of aisles, when entered."
    },
    {
     "name": "no_of_rows",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Number of rows, when entered."
    },
    {
     "name": "no_of_rows_per_aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Rows per aisle, when entered."
    },
    {
     "name": "qurter_no",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Quarter number (column name as stored)."
    },
    {
     "name": "size",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "unit": "size_unit (hectares when empty)",
     "nullable": true,
     "description": "Area. Unit in size_unit (hectares when empty)."
    },
    {
     "name": "size_unit",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Unit of size."
    },
    {
     "name": "surrounding_size",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "unit": "size_unit (hectares when empty)",
     "nullable": true,
     "description": "Area around the quarter, when entered."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "quarters",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "archived_at",
     "capacity",
     "continous_version",
     "field_id",
     "field_ver",
     "name",
     "no_of_aisles",
     "no_of_rows",
     "no_of_rows_per_aisle",
     "qurter_no",
     "size",
     "size_unit",
     "surrounding_size"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "archived_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     "capacity": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Capacity as stored."
     },
     "continous_version": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Continous version (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "field_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to fields.id."
     },
     "field_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "no_of_aisles": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Number of aisles, when entered."
     },
     "no_of_rows": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Number of rows, when entered."
     },
     "no_of_rows_per_aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Rows per aisle, when entered."
     },
     "qurter_no": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Quarter number (column name as stored)."
     },
     "size": {
      "type": [
       "number",
       "null"
      ],
      "description": "Area. Unit in size_unit (hectares when empty). Unit: size_unit (hectares when empty)."
     },
     "size_unit": {
      "type": [
       "string",
       "null"
      ],
      "description": "Unit of size."
     },
     "surrounding_size": {
      "type": [
       "number",
       "null"
      ],
      "description": "Area around the quarter, when entered. Unit: size_unit (hectares when empty)."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "archived_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     {
      "name": "capacity",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Capacity as stored."
     },
     {
      "name": "continous_version",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Continous version (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "field_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "fields",
       "field": "id"
      },
      "description": "Reference to fields.id."
     },
     {
      "name": "field_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "no_of_aisles",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Number of aisles, when entered."
     },
     {
      "name": "no_of_rows",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Number of rows, when entered."
     },
     {
      "name": "no_of_rows_per_aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Rows per aisle, when entered."
     },
     {
      "name": "qurter_no",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Quarter number (column name as stored)."
     },
     {
      "name": "size",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "unit": "size_unit (hectares when empty)",
      "nullable": true,
      "description": "Area. Unit in size_unit (hectares when empty)."
     },
     {
      "name": "size_unit",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Unit of size."
     },
     {
      "name": "surrounding_size",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "unit": "size_unit (hectares when empty)",
      "nullable": true,
      "description": "Area around the quarter, when entered."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "quarters (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "archived_at",
      "capacity",
      "continous_version",
      "field_id",
      "field_ver",
      "name",
      "no_of_aisles",
      "no_of_rows",
      "no_of_rows_per_aisle",
      "qurter_no",
      "size",
      "size_unit",
      "surrounding_size"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "archived_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the record was archived (hidden from lists); empty = active."
      },
      "capacity": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Capacity as stored."
      },
      "continous_version": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Continous version (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "field_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to fields.id."
      },
      "field_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fields record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "no_of_aisles": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Number of aisles, when entered."
      },
      "no_of_rows": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Number of rows, when entered."
      },
      "no_of_rows_per_aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Rows per aisle, when entered."
      },
      "qurter_no": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Quarter number (column name as stored)."
      },
      "size": {
       "type": [
        "number",
        "null"
       ],
       "description": "Area. Unit in size_unit (hectares when empty). Unit: size_unit (hectares when empty)."
      },
      "size_unit": {
       "type": [
        "string",
        "null"
       ],
       "description": "Unit of size."
      },
      "surrounding_size": {
       "type": [
        "number",
        "null"
       ],
       "description": "Area around the quarter, when entered. Unit: size_unit (hectares when empty)."
      }
     }
    }
   }
  },
  {
   "name": "quarter_boundaries",
   "description": "Drawn boundary of a quarter as GeoJSON (RFC 7946, WGS 84 longitude/latitude).",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/quarter_boundaries.csv",
    "json": "json/quarter_boundaries.json",
    "historyCsv": "csv/history/quarter_boundaries.csv",
    "historyJson": "json/history/quarter_boundaries.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "boundary",
     "type": "geojson",
     "format": "GeoJSON geometry, RFC 7946 (in CSV: JSON text)",
     "nullable": true,
     "description": "Quarter boundary as a GeoJSON geometry (RFC 7946, longitude/latitude WGS 84)."
    },
    {
     "name": "quarter_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "quarters",
      "field": "id"
     },
     "description": "Reference to quarters.id."
    },
    {
     "name": "quarter_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced quarters record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "quarter_boundaries",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "boundary",
     "quarter_id",
     "quarter_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "boundary": {
      "type": [
       "object",
       "null"
      ],
      "description": "Quarter boundary as a GeoJSON geometry (RFC 7946, longitude/latitude WGS 84)."
     },
     "quarter_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to quarters.id."
     },
     "quarter_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced quarters record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "boundary",
      "type": "geojson",
      "format": "GeoJSON geometry, RFC 7946 (in CSV: JSON text)",
      "nullable": true,
      "description": "Quarter boundary as a GeoJSON geometry (RFC 7946, longitude/latitude WGS 84)."
     },
     {
      "name": "quarter_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "quarters",
       "field": "id"
      },
      "description": "Reference to quarters.id."
     },
     {
      "name": "quarter_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced quarters record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "quarter_boundaries (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "boundary",
      "quarter_id",
      "quarter_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "boundary": {
       "type": [
        "object",
        "null"
       ],
       "description": "Quarter boundary as a GeoJSON geometry (RFC 7946, longitude/latitude WGS 84)."
      },
      "quarter_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to quarters.id."
      },
      "quarter_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced quarters record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "locations",
   "description": "Work locations inside a quarter; tasks and work time point to a location.",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/locations.csv",
    "json": "json/locations.json",
    "historyCsv": "csv/history/locations.csv",
    "historyJson": "json/history/locations.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Aisle, when entered."
    },
    {
     "name": "end_aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Last aisle of the location, when entered."
    },
    {
     "name": "end_row",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Last row of the location, when entered."
    },
    {
     "name": "field_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "fields",
      "field": "id"
     },
     "description": "Reference to fields.id."
    },
    {
     "name": "field_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fields record when this row was written."
    },
    {
     "name": "quarter_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "quarters",
      "field": "id"
     },
     "description": "Reference to quarters.id."
    },
    {
     "name": "quarter_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced quarters record when this row was written."
    },
    {
     "name": "row",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Row, when entered."
    },
    {
     "name": "start_aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "First aisle of the location, when entered."
    },
    {
     "name": "start_row",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "First row of the location, when entered."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "locations",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "aisle",
     "end_aisle",
     "end_row",
     "field_id",
     "field_ver",
     "quarter_id",
     "quarter_ver",
     "row",
     "start_aisle",
     "start_row"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Aisle, when entered."
     },
     "end_aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Last aisle of the location, when entered."
     },
     "end_row": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Last row of the location, when entered."
     },
     "field_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to fields.id."
     },
     "field_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     "quarter_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to quarters.id."
     },
     "quarter_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced quarters record when this row was written."
     },
     "row": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Row, when entered."
     },
     "start_aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "First aisle of the location, when entered."
     },
     "start_row": {
      "type": [
       "integer",
       "null"
      ],
      "description": "First row of the location, when entered."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Aisle, when entered."
     },
     {
      "name": "end_aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Last aisle of the location, when entered."
     },
     {
      "name": "end_row",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Last row of the location, when entered."
     },
     {
      "name": "field_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "fields",
       "field": "id"
      },
      "description": "Reference to fields.id."
     },
     {
      "name": "field_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     {
      "name": "quarter_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "quarters",
       "field": "id"
      },
      "description": "Reference to quarters.id."
     },
     {
      "name": "quarter_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced quarters record when this row was written."
     },
     {
      "name": "row",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Row, when entered."
     },
     {
      "name": "start_aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "First aisle of the location, when entered."
     },
     {
      "name": "start_row",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "First row of the location, when entered."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "locations (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "aisle",
      "end_aisle",
      "end_row",
      "field_id",
      "field_ver",
      "quarter_id",
      "quarter_ver",
      "row",
      "start_aisle",
      "start_row"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Aisle, when entered."
      },
      "end_aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Last aisle of the location, when entered."
      },
      "end_row": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Last row of the location, when entered."
      },
      "field_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to fields.id."
      },
      "field_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fields record when this row was written."
      },
      "quarter_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to quarters.id."
      },
      "quarter_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced quarters record when this row was written."
      },
      "row": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Row, when entered."
      },
      "start_aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "First aisle of the location, when entered."
      },
      "start_row": {
       "type": [
        "integer",
        "null"
       ],
       "description": "First row of the location, when entered."
      }
     }
    }
   }
  },
  {
   "name": "plants",
   "description": "Plantings: which variety grows on a location and since when.",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/plants.csv",
    "json": "json/plants.json",
    "historyCsv": "csv/history/plants.csv",
    "historyJson": "json/history/plants.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Number of plants, when entered."
    },
    {
     "name": "expiration_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End of the planting (grubbed up); empty = still growing."
    },
    {
     "name": "expiration_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Last day of the planting (YYYY-MM-DD); empty = still growing."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "plant_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Planting date (timestamp, UTC)."
    },
    {
     "name": "plant_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Planting day (YYYY-MM-DD)."
    },
    {
     "name": "purpose_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "plant_purposes",
      "field": "id"
     },
     "description": "Reference to plant_purposes.id."
    },
    {
     "name": "purpose_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced plant_purposes record when this row was written."
    },
    {
     "name": "seedling_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling type record when this row was written."
    },
    {
     "name": "variety_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "varieties",
      "field": "id"
     },
     "description": "Reference to varieties.id."
    },
    {
     "name": "variety_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced varieties record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "plants",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "amount",
     "expiration_date",
     "expiration_day",
     "location_id",
     "location_ver",
     "plant_date",
     "plant_day",
     "purpose_id",
     "purpose_ver",
     "seedling_type_id",
     "seedling_type_ver",
     "variety_id",
     "variety_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Number of plants, when entered."
     },
     "expiration_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End of the planting (grubbed up); empty = still growing."
     },
     "expiration_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Last day of the planting (YYYY-MM-DD); empty = still growing."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "plant_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Planting date (timestamp, UTC)."
     },
     "plant_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Planting day (YYYY-MM-DD)."
     },
     "purpose_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to plant_purposes.id."
     },
     "purpose_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     "seedling_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     "variety_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to varieties.id."
     },
     "variety_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced varieties record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Number of plants, when entered."
     },
     {
      "name": "expiration_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End of the planting (grubbed up); empty = still growing."
     },
     {
      "name": "expiration_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Last day of the planting (YYYY-MM-DD); empty = still growing."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "plant_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Planting date (timestamp, UTC)."
     },
     {
      "name": "plant_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Planting day (YYYY-MM-DD)."
     },
     {
      "name": "purpose_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "plant_purposes",
       "field": "id"
      },
      "description": "Reference to plant_purposes.id."
     },
     {
      "name": "purpose_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     {
      "name": "seedling_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     {
      "name": "variety_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "varieties",
       "field": "id"
      },
      "description": "Reference to varieties.id."
     },
     {
      "name": "variety_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced varieties record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "plants (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "amount",
      "expiration_date",
      "expiration_day",
      "location_id",
      "location_ver",
      "plant_date",
      "plant_day",
      "purpose_id",
      "purpose_ver",
      "seedling_type_id",
      "seedling_type_ver",
      "variety_id",
      "variety_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Number of plants, when entered."
      },
      "expiration_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End of the planting (grubbed up); empty = still growing."
      },
      "expiration_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Last day of the planting (YYYY-MM-DD); empty = still growing."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "plant_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Planting date (timestamp, UTC)."
      },
      "plant_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Planting day (YYYY-MM-DD)."
      },
      "purpose_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to plant_purposes.id."
      },
      "purpose_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced plant_purposes record when this row was written."
      },
      "seedling_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling type record when this row was written."
      },
      "variety_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to varieties.id."
      },
      "variety_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced varieties record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "crop_types",
   "description": "Crop type groups (for example soft fruit).",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/crop_types.csv",
    "json": "json/crop_types.json",
    "historyCsv": "csv/history/crop_types.csv",
    "historyJson": "json/history/crop_types.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "mention_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "mention_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced mention record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "seedling_unit_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling unit record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_unit_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling unit record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "crop_types",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "key",
     "mention_id",
     "mention_ver",
     "name",
     "seedling_unit_id",
     "seedling_unit_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "mention_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     "mention_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "seedling_unit_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling unit record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_unit_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling unit record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "mention_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "mention_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "seedling_unit_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling unit record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_unit_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling unit record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "crop_types (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "key",
      "mention_id",
      "mention_ver",
      "name",
      "seedling_unit_id",
      "seedling_unit_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "mention_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
      },
      "mention_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced mention record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "seedling_unit_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling unit record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_unit_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling unit record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "crops",
   "description": "Crops (species) grown on the farm.",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/crops.csv",
    "json": "json/crops.json",
    "historyCsv": "csv/history/crops.csv",
    "historyJson": "json/history/crops.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "active",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = active crop."
    },
    {
     "name": "color_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Colour of the record in the Service."
    },
    {
     "name": "crop_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crop_types",
      "field": "id"
     },
     "description": "Reference to crop_types.id."
    },
    {
     "name": "crop_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crop_types record when this row was written."
    },
    {
     "name": "mention_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "mention_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced mention record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "trade_code",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Trade code (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "crops",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "active",
     "color_key",
     "crop_type_id",
     "crop_type_ver",
     "mention_id",
     "mention_ver",
     "name",
     "trade_code"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "active": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = active crop."
     },
     "color_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Colour of the record in the Service."
     },
     "crop_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crop_types.id."
     },
     "crop_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crop_types record when this row was written."
     },
     "mention_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     "mention_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "trade_code": {
      "type": [
       "string",
       "null"
      ],
      "description": "Trade code (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "active",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = active crop."
     },
     {
      "name": "color_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Colour of the record in the Service."
     },
     {
      "name": "crop_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crop_types",
       "field": "id"
      },
      "description": "Reference to crop_types.id."
     },
     {
      "name": "crop_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crop_types record when this row was written."
     },
     {
      "name": "mention_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "mention_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "trade_code",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Trade code (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "crops (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "active",
      "color_key",
      "crop_type_id",
      "crop_type_ver",
      "mention_id",
      "mention_ver",
      "name",
      "trade_code"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "active": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = active crop."
      },
      "color_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Colour of the record in the Service."
      },
      "crop_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crop_types.id."
      },
      "crop_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crop_types record when this row was written."
      },
      "mention_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
      },
      "mention_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced mention record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "trade_code": {
       "type": [
        "string",
        "null"
       ],
       "description": "Trade code (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      }
     }
    }
   }
  },
  {
   "name": "varieties",
   "description": "Varieties of a crop.",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/varieties.csv",
    "json": "json/varieties.json",
    "historyCsv": "csv/history/varieties.csv",
    "historyJson": "json/history/varieties.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "archived_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was archived (hidden from lists); empty = active."
    },
    {
     "name": "crop_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crops",
      "field": "id"
     },
     "description": "Reference to crops.id."
    },
    {
     "name": "crop_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crops record when this row was written."
    },
    {
     "name": "mention_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "mention_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced mention record when this row was written."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "variety_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a variety type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "variety_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced variety type record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "varieties",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "archived_at",
     "crop_id",
     "crop_ver",
     "mention_id",
     "mention_ver",
     "name",
     "variety_type_id",
     "variety_type_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "archived_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     "crop_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crops.id."
     },
     "crop_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     "mention_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     "mention_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "variety_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a variety type record (a Service dictionary or another module; not included in this export)."
     },
     "variety_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced variety type record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "archived_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     {
      "name": "crop_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crops",
       "field": "id"
      },
      "description": "Reference to crops.id."
     },
     {
      "name": "crop_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     {
      "name": "mention_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "mention_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced mention record when this row was written."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "variety_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a variety type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "variety_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced variety type record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "varieties (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "archived_at",
      "crop_id",
      "crop_ver",
      "mention_id",
      "mention_ver",
      "name",
      "variety_type_id",
      "variety_type_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "archived_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the record was archived (hidden from lists); empty = active."
      },
      "crop_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crops.id."
      },
      "crop_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crops record when this row was written."
      },
      "mention_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a mention record (a Service dictionary or another module; not included in this export)."
      },
      "mention_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced mention record when this row was written."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "variety_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a variety type record (a Service dictionary or another module; not included in this export)."
      },
      "variety_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced variety type record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "plant_purposes",
   "description": "Purposes of a planting (for example fruits).",
   "termsScheduleCategories": [
    "A2"
   ],
   "scope": "organization-or-shared",
   "files": {
    "csv": "csv/plant_purposes.csv",
    "json": "json/plant_purposes.json",
    "historyCsv": "csv/history/plant_purposes.csv",
    "historyJson": "json/history/plant_purposes.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "available_for_crop_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crop_types",
      "field": "id"
     },
     "description": "Reference to crop_types.id."
    },
    {
     "name": "available_for_crop_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crop_types record when this row was written."
    },
    {
     "name": "color_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Colour of the record in the Service."
    },
    {
     "name": "is_pickable",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is pickable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_sortable",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is sortable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "plant_purposes",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "available_for_crop_type_id",
     "available_for_crop_type_ver",
     "color_key",
     "is_pickable",
     "is_sortable",
     "key",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "available_for_crop_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crop_types.id."
     },
     "available_for_crop_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crop_types record when this row was written."
     },
     "color_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Colour of the record in the Service."
     },
     "is_pickable": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is pickable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_sortable": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is sortable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "available_for_crop_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crop_types",
       "field": "id"
      },
      "description": "Reference to crop_types.id."
     },
     {
      "name": "available_for_crop_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crop_types record when this row was written."
     },
     {
      "name": "color_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Colour of the record in the Service."
     },
     {
      "name": "is_pickable",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "Is pickable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "is_sortable",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "Is sortable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "plant_purposes (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "available_for_crop_type_id",
      "available_for_crop_type_ver",
      "color_key",
      "is_pickable",
      "is_sortable",
      "key",
      "name"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "available_for_crop_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crop_types.id."
      },
      "available_for_crop_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crop_types record when this row was written."
      },
      "color_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Colour of the record in the Service."
      },
      "is_pickable": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "Is pickable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "is_sortable": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "Is sortable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      }
     }
    }
   }
  },
  {
   "name": "task_categories",
   "description": "Categories of task types (harvest, manual, planting, machine, farm works, infrastructure).",
   "termsScheduleCategories": [
    "A3"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_categories.csv",
    "json": "json/task_categories.json",
    "historyCsv": "csv/history/task_categories.csv",
    "historyJson": "json/history/task_categories.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "crop_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crops",
      "field": "id"
     },
     "description": "Reference to crops.id."
    },
    {
     "name": "crop_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crops record when this row was written."
    },
    {
     "name": "icon_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Icon of the category."
    },
    {
     "name": "is_machine",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = machine work category."
    },
    {
     "name": "is_manual",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = manual work category."
    },
    {
     "name": "is_piecework",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = piecework."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_categories",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "crop_id",
     "crop_ver",
     "icon_key",
     "is_machine",
     "is_manual",
     "is_piecework",
     "key",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "crop_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crops.id."
     },
     "crop_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     "icon_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Icon of the category."
     },
     "is_machine": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = machine work category."
     },
     "is_manual": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = manual work category."
     },
     "is_piecework": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = piecework."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "crop_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crops",
       "field": "id"
      },
      "description": "Reference to crops.id."
     },
     {
      "name": "crop_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     {
      "name": "icon_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Icon of the category."
     },
     {
      "name": "is_machine",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = machine work category."
     },
     {
      "name": "is_manual",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = manual work category."
     },
     {
      "name": "is_piecework",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = piecework."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_categories (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "crop_id",
      "crop_ver",
      "icon_key",
      "is_machine",
      "is_manual",
      "is_piecework",
      "key",
      "name"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "crop_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crops.id."
      },
      "crop_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crops record when this row was written."
      },
      "icon_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Icon of the category."
      },
      "is_machine": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = machine work category."
      },
      "is_manual": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = manual work category."
      },
      "is_piecework": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = piecework."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      }
     }
    }
   }
  },
  {
   "name": "task_types",
   "description": "Kinds of work defined by the farm (code, name, colour, category).",
   "termsScheduleCategories": [
    "A3"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_types.csv",
    "json": "json/task_types.json",
    "historyCsv": "csv/history/task_types.csv",
    "historyJson": "json/history/task_types.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "archived_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was archived (hidden from lists); empty = active."
    },
    {
     "name": "code",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Short code of the task type."
    },
    {
     "name": "color_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Colour of the record in the Service."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "task_category_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_categories",
      "field": "id"
     },
     "description": "Reference to task_categories.id."
    },
    {
     "name": "task_category_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_categories record when this row was written."
    },
    {
     "name": "task_type_group_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a task type group record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "task_type_group_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task type group record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_types",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "archived_at",
     "code",
     "color_key",
     "name",
     "note",
     "task_category_id",
     "task_category_ver",
     "task_type_group_id",
     "task_type_group_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "archived_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     "code": {
      "type": [
       "string",
       "null"
      ],
      "description": "Short code of the task type."
     },
     "color_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Colour of the record in the Service."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "task_category_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_categories.id."
     },
     "task_category_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_categories record when this row was written."
     },
     "task_type_group_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a task type group record (a Service dictionary or another module; not included in this export)."
     },
     "task_type_group_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task type group record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "archived_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the record was archived (hidden from lists); empty = active."
     },
     {
      "name": "code",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Short code of the task type."
     },
     {
      "name": "color_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Colour of the record in the Service."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "task_category_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_categories",
       "field": "id"
      },
      "description": "Reference to task_categories.id."
     },
     {
      "name": "task_category_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_categories record when this row was written."
     },
     {
      "name": "task_type_group_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a task type group record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "task_type_group_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task type group record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_types (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "archived_at",
      "code",
      "color_key",
      "name",
      "note",
      "task_category_id",
      "task_category_ver",
      "task_type_group_id",
      "task_type_group_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "archived_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the record was archived (hidden from lists); empty = active."
      },
      "code": {
       "type": [
        "string",
        "null"
       ],
       "description": "Short code of the task type."
      },
      "color_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Colour of the record in the Service."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "task_category_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_categories.id."
      },
      "task_category_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_categories record when this row was written."
      },
      "task_type_group_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a task type group record (a Service dictionary or another module; not included in this export)."
      },
      "task_type_group_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task type group record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "tasks",
   "description": "Planned and performed tasks: what, where and when.",
   "termsScheduleCategories": [
    "A3",
    "A7"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/tasks.csv",
    "json": "json/tasks.json",
    "historyCsv": "csv/history/tasks.csv",
    "historyJson": "json/history/tasks.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "cages_goal",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Cages goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "client",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "close_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the task was closed (timestamp, UTC)."
    },
    {
     "name": "completion_level",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Completion level."
    },
    {
     "name": "crop_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "crops",
      "field": "id"
     },
     "description": "Reference to crops.id."
    },
    {
     "name": "crop_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced crops record when this row was written."
    },
    {
     "name": "deadline_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Deadline (timestamp, UTC)."
    },
    {
     "name": "default_working_days",
     "type": "integer",
     "format": "whole number",
     "unit": "days",
     "nullable": true,
     "description": "Default working days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "default_working_hours",
     "type": "integer",
     "format": "whole number",
     "unit": "hours",
     "nullable": true,
     "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "end_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "end_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "End day (YYYY-MM-DD)."
    },
    {
     "name": "field_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "fields",
      "field": "id"
     },
     "description": "Reference to fields.id."
    },
    {
     "name": "field_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fields record when this row was written."
    },
    {
     "name": "group_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "group_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced group record when this row was written."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "open_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the task was opened (timestamp, UTC)."
    },
    {
     "name": "package_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "package_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced package record when this row was written."
    },
    {
     "name": "pick_mode_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pick_mode_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pick mode record when this row was written."
    },
    {
     "name": "pick_technique_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pick_technique_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pick technique record when this row was written."
    },
    {
     "name": "pickers_number",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Pickers number (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "picking_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Picking date (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "planned_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Planned date (timestamp, UTC)."
    },
    {
     "name": "planned_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Planned day (YYYY-MM-DD)."
    },
    {
     "name": "planned_from_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Planned start, minutes after midnight in the farm time zone."
    },
    {
     "name": "purpose_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "plant_purposes",
      "field": "id"
     },
     "description": "Reference to plant_purposes.id."
    },
    {
     "name": "purpose_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced plant_purposes record when this row was written."
    },
    {
     "name": "quarter_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "quarters",
      "field": "id"
     },
     "description": "Reference to quarters.id."
    },
    {
     "name": "quarter_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced quarters record when this row was written."
    },
    {
     "name": "rate_assignment_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_assignment_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate assignment record when this row was written."
    },
    {
     "name": "rate_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate record when this row was written."
    },
    {
     "name": "seedling_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling type record when this row was written."
    },
    {
     "name": "serial_no",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Running number of the task within the farm."
    },
    {
     "name": "start_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    },
    {
     "name": "start_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Start day (YYYY-MM-DD)."
    },
    {
     "name": "status",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Status of the task."
    },
    {
     "name": "substance_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Substance amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "substance_unit_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a substance unit record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "substance_unit_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced substance unit record when this row was written."
    },
    {
     "name": "task_category_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_categories",
      "field": "id"
     },
     "description": "Reference to task_categories.id."
    },
    {
     "name": "task_category_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_categories record when this row was written."
    },
    {
     "name": "task_priority",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Priority."
    },
    {
     "name": "task_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_types",
      "field": "id"
     },
     "description": "Reference to task_types.id."
    },
    {
     "name": "task_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_types record when this row was written."
    },
    {
     "name": "variety_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "varieties",
      "field": "id"
     },
     "description": "Reference to varieties.id."
    },
    {
     "name": "variety_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced varieties record when this row was written."
    },
    {
     "name": "weight_goal",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Weight goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "worker_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "worker_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "tasks",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "cages_goal",
     "client",
     "close_date",
     "completion_level",
     "crop_id",
     "crop_ver",
     "deadline_date",
     "default_working_days",
     "default_working_hours",
     "end_date",
     "end_day",
     "field_id",
     "field_ver",
     "group_id",
     "group_ver",
     "location_id",
     "location_ver",
     "note",
     "open_date",
     "package_id",
     "package_ver",
     "pick_mode_id",
     "pick_mode_ver",
     "pick_technique_id",
     "pick_technique_ver",
     "pickers_number",
     "picking_date",
     "planned_date",
     "planned_day",
     "planned_from_minutes",
     "purpose_id",
     "purpose_ver",
     "quarter_id",
     "quarter_ver",
     "rate_assignment_id",
     "rate_assignment_ver",
     "rate_id",
     "rate_ver",
     "seedling_type_id",
     "seedling_type_ver",
     "serial_no",
     "start_date",
     "start_day",
     "status",
     "substance_amount",
     "substance_unit_id",
     "substance_unit_ver",
     "task_category_id",
     "task_category_ver",
     "task_priority",
     "task_type_id",
     "task_type_ver",
     "variety_id",
     "variety_ver",
     "weight_goal",
     "worker_id",
     "worker_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "cages_goal": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Cages goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "client": {
      "type": [
       "string",
       "null"
      ],
      "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "close_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the task was closed (timestamp, UTC)."
     },
     "completion_level": {
      "type": [
       "string",
       "null"
      ],
      "description": "Completion level."
     },
     "crop_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to crops.id."
     },
     "crop_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     "deadline_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Deadline (timestamp, UTC)."
     },
     "default_working_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default working days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
     },
     "default_working_hours": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
     },
     "end_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End (timestamp, UTC)."
     },
     "end_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "End day (YYYY-MM-DD)."
     },
     "field_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to fields.id."
     },
     "field_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     "group_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     "group_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "open_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the task was opened (timestamp, UTC)."
     },
     "package_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     "package_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     "pick_mode_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
     },
     "pick_mode_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pick mode record when this row was written."
     },
     "pick_technique_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     "pick_technique_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     "pickers_number": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Pickers number (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "picking_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Picking date (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "planned_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Planned date (timestamp, UTC)."
     },
     "planned_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Planned day (YYYY-MM-DD)."
     },
     "planned_from_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Planned start, minutes after midnight in the farm time zone. Unit: minutes."
     },
     "purpose_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to plant_purposes.id."
     },
     "purpose_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     "quarter_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to quarters.id."
     },
     "quarter_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced quarters record when this row was written."
     },
     "rate_assignment_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     "rate_assignment_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     "rate_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     "rate_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     "seedling_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     "serial_no": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Running number of the task within the farm."
     },
     "start_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Start (timestamp, UTC)."
     },
     "start_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Start day (YYYY-MM-DD)."
     },
     "status": {
      "type": [
       "string",
       "null"
      ],
      "description": "Status of the task."
     },
     "substance_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Substance amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "substance_unit_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a substance unit record (a Service dictionary or another module; not included in this export)."
     },
     "substance_unit_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced substance unit record when this row was written."
     },
     "task_category_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_categories.id."
     },
     "task_category_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_categories record when this row was written."
     },
     "task_priority": {
      "type": [
       "string",
       "null"
      ],
      "description": "Priority."
     },
     "task_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_types.id."
     },
     "task_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     "variety_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to varieties.id."
     },
     "variety_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced varieties record when this row was written."
     },
     "weight_goal": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Weight goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "worker_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "worker_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "cages_goal",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Cages goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "client",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "close_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the task was closed (timestamp, UTC)."
     },
     {
      "name": "completion_level",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Completion level."
     },
     {
      "name": "crop_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "crops",
       "field": "id"
      },
      "description": "Reference to crops.id."
     },
     {
      "name": "crop_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced crops record when this row was written."
     },
     {
      "name": "deadline_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Deadline (timestamp, UTC)."
     },
     {
      "name": "default_working_days",
      "type": "integer",
      "format": "whole number",
      "unit": "days",
      "nullable": true,
      "description": "Default working days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "default_working_hours",
      "type": "integer",
      "format": "whole number",
      "unit": "hours",
      "nullable": true,
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "end_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "end_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "End day (YYYY-MM-DD)."
     },
     {
      "name": "field_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "fields",
       "field": "id"
      },
      "description": "Reference to fields.id."
     },
     {
      "name": "field_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fields record when this row was written."
     },
     {
      "name": "group_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "group_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "open_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the task was opened (timestamp, UTC)."
     },
     {
      "name": "package_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "package_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     {
      "name": "pick_mode_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pick_mode_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pick mode record when this row was written."
     },
     {
      "name": "pick_technique_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pick_technique_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     {
      "name": "pickers_number",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Pickers number (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "picking_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Picking date (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "planned_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Planned date (timestamp, UTC)."
     },
     {
      "name": "planned_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Planned day (YYYY-MM-DD)."
     },
     {
      "name": "planned_from_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Planned start, minutes after midnight in the farm time zone."
     },
     {
      "name": "purpose_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "plant_purposes",
       "field": "id"
      },
      "description": "Reference to plant_purposes.id."
     },
     {
      "name": "purpose_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     {
      "name": "quarter_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "quarters",
       "field": "id"
      },
      "description": "Reference to quarters.id."
     },
     {
      "name": "quarter_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced quarters record when this row was written."
     },
     {
      "name": "rate_assignment_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_assignment_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     {
      "name": "rate_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     {
      "name": "seedling_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     {
      "name": "serial_no",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Running number of the task within the farm."
     },
     {
      "name": "start_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     },
     {
      "name": "start_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Start day (YYYY-MM-DD)."
     },
     {
      "name": "status",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Status of the task."
     },
     {
      "name": "substance_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Substance amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "substance_unit_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a substance unit record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "substance_unit_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced substance unit record when this row was written."
     },
     {
      "name": "task_category_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_categories",
       "field": "id"
      },
      "description": "Reference to task_categories.id."
     },
     {
      "name": "task_category_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_categories record when this row was written."
     },
     {
      "name": "task_priority",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Priority."
     },
     {
      "name": "task_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_types",
       "field": "id"
      },
      "description": "Reference to task_types.id."
     },
     {
      "name": "task_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     {
      "name": "variety_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "varieties",
       "field": "id"
      },
      "description": "Reference to varieties.id."
     },
     {
      "name": "variety_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced varieties record when this row was written."
     },
     {
      "name": "weight_goal",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Weight goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "worker_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "worker_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "tasks (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "cages_goal",
      "client",
      "close_date",
      "completion_level",
      "crop_id",
      "crop_ver",
      "deadline_date",
      "default_working_days",
      "default_working_hours",
      "end_date",
      "end_day",
      "field_id",
      "field_ver",
      "group_id",
      "group_ver",
      "location_id",
      "location_ver",
      "note",
      "open_date",
      "package_id",
      "package_ver",
      "pick_mode_id",
      "pick_mode_ver",
      "pick_technique_id",
      "pick_technique_ver",
      "pickers_number",
      "picking_date",
      "planned_date",
      "planned_day",
      "planned_from_minutes",
      "purpose_id",
      "purpose_ver",
      "quarter_id",
      "quarter_ver",
      "rate_assignment_id",
      "rate_assignment_ver",
      "rate_id",
      "rate_ver",
      "seedling_type_id",
      "seedling_type_ver",
      "serial_no",
      "start_date",
      "start_day",
      "status",
      "substance_amount",
      "substance_unit_id",
      "substance_unit_ver",
      "task_category_id",
      "task_category_ver",
      "task_priority",
      "task_type_id",
      "task_type_ver",
      "variety_id",
      "variety_ver",
      "weight_goal",
      "worker_id",
      "worker_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "cages_goal": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Cages goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "client": {
       "type": [
        "string",
        "null"
       ],
       "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "close_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the task was closed (timestamp, UTC)."
      },
      "completion_level": {
       "type": [
        "string",
        "null"
       ],
       "description": "Completion level."
      },
      "crop_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to crops.id."
      },
      "crop_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced crops record when this row was written."
      },
      "deadline_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Deadline (timestamp, UTC)."
      },
      "default_working_days": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default working days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
      },
      "default_working_hours": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
      },
      "end_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End (timestamp, UTC)."
      },
      "end_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "End day (YYYY-MM-DD)."
      },
      "field_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to fields.id."
      },
      "field_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fields record when this row was written."
      },
      "group_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
      },
      "group_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced group record when this row was written."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "open_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the task was opened (timestamp, UTC)."
      },
      "package_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
      },
      "package_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced package record when this row was written."
      },
      "pick_mode_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
      },
      "pick_mode_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pick mode record when this row was written."
      },
      "pick_technique_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
      },
      "pick_technique_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pick technique record when this row was written."
      },
      "pickers_number": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Pickers number (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "picking_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Picking date (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "planned_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Planned date (timestamp, UTC)."
      },
      "planned_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Planned day (YYYY-MM-DD)."
      },
      "planned_from_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Planned start, minutes after midnight in the farm time zone. Unit: minutes."
      },
      "purpose_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to plant_purposes.id."
      },
      "purpose_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced plant_purposes record when this row was written."
      },
      "quarter_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to quarters.id."
      },
      "quarter_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced quarters record when this row was written."
      },
      "rate_assignment_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
      },
      "rate_assignment_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate assignment record when this row was written."
      },
      "rate_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
      },
      "rate_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate record when this row was written."
      },
      "seedling_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling type record when this row was written."
      },
      "serial_no": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Running number of the task within the farm."
      },
      "start_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Start (timestamp, UTC)."
      },
      "start_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Start day (YYYY-MM-DD)."
      },
      "status": {
       "type": [
        "string",
        "null"
       ],
       "description": "Status of the task."
      },
      "substance_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Substance amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "substance_unit_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a substance unit record (a Service dictionary or another module; not included in this export)."
      },
      "substance_unit_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced substance unit record when this row was written."
      },
      "task_category_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_categories.id."
      },
      "task_category_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_categories record when this row was written."
      },
      "task_priority": {
       "type": [
        "string",
        "null"
       ],
       "description": "Priority."
      },
      "task_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_types.id."
      },
      "task_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_types record when this row was written."
      },
      "variety_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to varieties.id."
      },
      "variety_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced varieties record when this row was written."
      },
      "weight_goal": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Weight goal (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "worker_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "worker_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "task_locations",
   "description": "Locations a task is assigned to.",
   "termsScheduleCategories": [
    "A3"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_locations.csv",
    "json": "json/task_locations.json",
    "historyCsv": "csv/history/task_locations.csv",
    "historyJson": "json/history/task_locations.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "completed_end_aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Completed end aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "completed_end_row",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Completed end row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "completed_start_aisle",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Completed start aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "completed_start_row",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Completed start row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "execution_note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Note entered at execution."
    },
    {
     "name": "is_complete",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = completed."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "progress",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Progress of the task on the location."
    },
    {
     "name": "task_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "tasks",
      "field": "id"
     },
     "description": "Reference to tasks.id."
    },
    {
     "name": "task_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced tasks record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_locations",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "completed_end_aisle",
     "completed_end_row",
     "completed_start_aisle",
     "completed_start_row",
     "execution_note",
     "is_complete",
     "location_id",
     "location_ver",
     "note",
     "progress",
     "task_id",
     "task_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "completed_end_aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Completed end aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "completed_end_row": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Completed end row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "completed_start_aisle": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Completed start aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "completed_start_row": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Completed start row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "execution_note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Note entered at execution."
     },
     "is_complete": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = completed."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "progress": {
      "type": [
       "string",
       "null"
      ],
      "description": "Progress of the task on the location."
     },
     "task_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to tasks.id."
     },
     "task_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced tasks record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "completed_end_aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Completed end aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "completed_end_row",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Completed end row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "completed_start_aisle",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Completed start aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "completed_start_row",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Completed start row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "execution_note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Note entered at execution."
     },
     {
      "name": "is_complete",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = completed."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "progress",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Progress of the task on the location."
     },
     {
      "name": "task_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "tasks",
       "field": "id"
      },
      "description": "Reference to tasks.id."
     },
     {
      "name": "task_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced tasks record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_locations (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "completed_end_aisle",
      "completed_end_row",
      "completed_start_aisle",
      "completed_start_row",
      "execution_note",
      "is_complete",
      "location_id",
      "location_ver",
      "note",
      "progress",
      "task_id",
      "task_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "completed_end_aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Completed end aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "completed_end_row": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Completed end row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "completed_start_aisle": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Completed start aisle (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "completed_start_row": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Completed start row (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "execution_note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Note entered at execution."
      },
      "is_complete": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = completed."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "progress": {
       "type": [
        "string",
        "null"
       ],
       "description": "Progress of the task on the location."
      },
      "task_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to tasks.id."
      },
      "task_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced tasks record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "task_allocations",
   "description": "Allocation of a task to a period and a supervisor.",
   "termsScheduleCategories": [
    "A3"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_allocations.csv",
    "json": "json/task_allocations.json",
    "historyCsv": "csv/history/task_allocations.csv",
    "historyJson": "json/history/task_allocations.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "amount_to_harvest",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Amount to harvest (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "approved_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the allocation was approved (timestamp, UTC)."
    },
    {
     "name": "approved_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "approved_by_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "demand_changed",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Demand changed (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "desired_workers_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Planned number of workers."
    },
    {
     "name": "end_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "end_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "End day (YYYY-MM-DD)."
    },
    {
     "name": "is_leader_with_team",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is leader with team (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "start_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    },
    {
     "name": "start_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Start day (YYYY-MM-DD)."
    },
    {
     "name": "supervisor_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "supervisor_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "task_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "tasks",
      "field": "id"
     },
     "description": "Reference to tasks.id."
    },
    {
     "name": "task_priority",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Priority."
    },
    {
     "name": "task_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced tasks record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_allocations",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "amount_to_harvest",
     "approved_at",
     "approved_by_id",
     "approved_by_ver",
     "demand_changed",
     "desired_workers_amount",
     "end_date",
     "end_day",
     "is_leader_with_team",
     "note",
     "start_date",
     "start_day",
     "supervisor_id",
     "supervisor_ver",
     "task_id",
     "task_priority",
     "task_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "amount_to_harvest": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Amount to harvest (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "approved_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the allocation was approved (timestamp, UTC)."
     },
     "approved_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "approved_by_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "demand_changed": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Demand changed (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "desired_workers_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Planned number of workers."
     },
     "end_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End (timestamp, UTC)."
     },
     "end_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "End day (YYYY-MM-DD)."
     },
     "is_leader_with_team": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is leader with team (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "start_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Start (timestamp, UTC)."
     },
     "start_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Start day (YYYY-MM-DD)."
     },
     "supervisor_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "supervisor_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "task_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to tasks.id."
     },
     "task_priority": {
      "type": [
       "string",
       "null"
      ],
      "description": "Priority."
     },
     "task_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced tasks record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "amount_to_harvest",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Amount to harvest (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "approved_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the allocation was approved (timestamp, UTC)."
     },
     {
      "name": "approved_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "approved_by_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "demand_changed",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "Demand changed (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "desired_workers_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Planned number of workers."
     },
     {
      "name": "end_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "end_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "End day (YYYY-MM-DD)."
     },
     {
      "name": "is_leader_with_team",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "Is leader with team (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "start_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     },
     {
      "name": "start_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Start day (YYYY-MM-DD)."
     },
     {
      "name": "supervisor_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "supervisor_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "task_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "tasks",
       "field": "id"
      },
      "description": "Reference to tasks.id."
     },
     {
      "name": "task_priority",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Priority."
     },
     {
      "name": "task_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced tasks record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_allocations (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "amount_to_harvest",
      "approved_at",
      "approved_by_id",
      "approved_by_ver",
      "demand_changed",
      "desired_workers_amount",
      "end_date",
      "end_day",
      "is_leader_with_team",
      "note",
      "start_date",
      "start_day",
      "supervisor_id",
      "supervisor_ver",
      "task_id",
      "task_priority",
      "task_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "amount_to_harvest": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Amount to harvest (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "approved_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the allocation was approved (timestamp, UTC)."
      },
      "approved_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "approved_by_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "demand_changed": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "Demand changed (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "desired_workers_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Planned number of workers."
      },
      "end_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End (timestamp, UTC)."
      },
      "end_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "End day (YYYY-MM-DD)."
      },
      "is_leader_with_team": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "Is leader with team (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "start_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Start (timestamp, UTC)."
      },
      "start_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Start day (YYYY-MM-DD)."
      },
      "supervisor_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "supervisor_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "task_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to tasks.id."
      },
      "task_priority": {
       "type": [
        "string",
        "null"
       ],
       "description": "Priority."
      },
      "task_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced tasks record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "task_execution_modes",
   "description": "How an allocation is executed (hourly mode for the Free Plan).",
   "termsScheduleCategories": [
    "A3"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_execution_modes.csv",
    "json": "json/task_execution_modes.json",
    "historyCsv": "csv/history/task_execution_modes.csv",
    "historyJson": "json/history/task_execution_modes.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "aisle_passes",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Aisle passes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "available_execution_mode_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a available execution mode record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "available_execution_mode_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced available execution mode record when this row was written."
    },
    {
     "name": "client",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "deadline_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Deadline (timestamp, UTC)."
    },
    {
     "name": "fruit_quality_class_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a fruit quality class record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "fruit_quality_class_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fruit quality class record when this row was written."
    },
    {
     "name": "fruit_quality_option_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "fruit_quality_option_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fruit quality option record when this row was written."
    },
    {
     "name": "material_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a material record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "material_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced material record when this row was written."
    },
    {
     "name": "order_of_execution",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Order of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "package_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "package_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced package record when this row was written."
    },
    {
     "name": "packages_amount_in_cage",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "pallet_size",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Pallet size (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "pieces_amount_in_package",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "seedling_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling type record when this row was written."
    },
    {
     "name": "target_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Target amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "target_amount_unit_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a target amount unit record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "target_amount_unit_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced target amount unit record when this row was written."
    },
    {
     "name": "task_allocation_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_allocations",
      "field": "id"
     },
     "description": "Reference to task_allocations.id."
    },
    {
     "name": "task_allocation_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_allocations record when this row was written."
    },
    {
     "name": "task_priority",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Priority."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_execution_modes",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "aisle_passes",
     "available_execution_mode_id",
     "available_execution_mode_ver",
     "client",
     "deadline_date",
     "fruit_quality_class_id",
     "fruit_quality_class_ver",
     "fruit_quality_option_id",
     "fruit_quality_option_ver",
     "material_id",
     "material_ver",
     "order_of_execution",
     "package_id",
     "package_ver",
     "packages_amount_in_cage",
     "pallet_size",
     "pieces_amount_in_package",
     "seedling_type_id",
     "seedling_type_ver",
     "target_amount",
     "target_amount_unit_id",
     "target_amount_unit_ver",
     "task_allocation_id",
     "task_allocation_ver",
     "task_priority"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "aisle_passes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Aisle passes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "available_execution_mode_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a available execution mode record (a Service dictionary or another module; not included in this export)."
     },
     "available_execution_mode_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced available execution mode record when this row was written."
     },
     "client": {
      "type": [
       "string",
       "null"
      ],
      "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "deadline_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Deadline (timestamp, UTC)."
     },
     "fruit_quality_class_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a fruit quality class record (a Service dictionary or another module; not included in this export)."
     },
     "fruit_quality_class_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fruit quality class record when this row was written."
     },
     "fruit_quality_option_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
     },
     "fruit_quality_option_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fruit quality option record when this row was written."
     },
     "material_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a material record (a Service dictionary or another module; not included in this export)."
     },
     "material_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced material record when this row was written."
     },
     "order_of_execution": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Order of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "package_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     "package_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     "packages_amount_in_cage": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "pallet_size": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Pallet size (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "pieces_amount_in_package": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "seedling_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     "target_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Target amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "target_amount_unit_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a target amount unit record (a Service dictionary or another module; not included in this export)."
     },
     "target_amount_unit_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced target amount unit record when this row was written."
     },
     "task_allocation_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_allocations.id."
     },
     "task_allocation_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_allocations record when this row was written."
     },
     "task_priority": {
      "type": [
       "string",
       "null"
      ],
      "description": "Priority."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "aisle_passes",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Aisle passes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "available_execution_mode_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a available execution mode record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "available_execution_mode_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced available execution mode record when this row was written."
     },
     {
      "name": "client",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "deadline_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Deadline (timestamp, UTC)."
     },
     {
      "name": "fruit_quality_class_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a fruit quality class record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "fruit_quality_class_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fruit quality class record when this row was written."
     },
     {
      "name": "fruit_quality_option_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "fruit_quality_option_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fruit quality option record when this row was written."
     },
     {
      "name": "material_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a material record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "material_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced material record when this row was written."
     },
     {
      "name": "order_of_execution",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Order of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "package_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "package_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     {
      "name": "packages_amount_in_cage",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "pallet_size",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Pallet size (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "pieces_amount_in_package",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "seedling_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     {
      "name": "target_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Target amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "target_amount_unit_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a target amount unit record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "target_amount_unit_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced target amount unit record when this row was written."
     },
     {
      "name": "task_allocation_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_allocations",
       "field": "id"
      },
      "description": "Reference to task_allocations.id."
     },
     {
      "name": "task_allocation_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_allocations record when this row was written."
     },
     {
      "name": "task_priority",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Priority."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_execution_modes (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "aisle_passes",
      "available_execution_mode_id",
      "available_execution_mode_ver",
      "client",
      "deadline_date",
      "fruit_quality_class_id",
      "fruit_quality_class_ver",
      "fruit_quality_option_id",
      "fruit_quality_option_ver",
      "material_id",
      "material_ver",
      "order_of_execution",
      "package_id",
      "package_ver",
      "packages_amount_in_cage",
      "pallet_size",
      "pieces_amount_in_package",
      "seedling_type_id",
      "seedling_type_ver",
      "target_amount",
      "target_amount_unit_id",
      "target_amount_unit_ver",
      "task_allocation_id",
      "task_allocation_ver",
      "task_priority"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "aisle_passes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Aisle passes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "available_execution_mode_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a available execution mode record (a Service dictionary or another module; not included in this export)."
      },
      "available_execution_mode_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced available execution mode record when this row was written."
      },
      "client": {
       "type": [
        "string",
        "null"
       ],
       "description": "Client (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "deadline_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Deadline (timestamp, UTC)."
      },
      "fruit_quality_class_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a fruit quality class record (a Service dictionary or another module; not included in this export)."
      },
      "fruit_quality_class_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fruit quality class record when this row was written."
      },
      "fruit_quality_option_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
      },
      "fruit_quality_option_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fruit quality option record when this row was written."
      },
      "material_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a material record (a Service dictionary or another module; not included in this export)."
      },
      "material_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced material record when this row was written."
      },
      "order_of_execution": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Order of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "package_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
      },
      "package_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced package record when this row was written."
      },
      "packages_amount_in_cage": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "pallet_size": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Pallet size (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "pieces_amount_in_package": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "seedling_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling type record when this row was written."
      },
      "target_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Target amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "target_amount_unit_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a target amount unit record (a Service dictionary or another module; not included in this export)."
      },
      "target_amount_unit_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced target amount unit record when this row was written."
      },
      "task_allocation_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_allocations.id."
      },
      "task_allocation_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_allocations record when this row was written."
      },
      "task_priority": {
       "type": [
        "string",
        "null"
       ],
       "description": "Priority."
      }
     }
    }
   }
  },
  {
   "name": "task_executions",
   "description": "One execution (opening) of a task on a day; work time records point to it.",
   "termsScheduleCategories": [
    "A3",
    "A5"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/task_executions.csv",
    "json": "json/task_executions.json",
    "historyCsv": "csv/history/task_executions.csv",
    "historyJson": "json/history/task_executions.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "cage_amount_target",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Cage amount target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "close_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the execution was closed (timestamp, UTC)."
    },
    {
     "name": "default_break_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Default break for the execution, minutes."
    },
    {
     "name": "default_end_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Default end (timestamp, UTC)."
    },
    {
     "name": "default_start_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Default start (timestamp, UTC)."
    },
    {
     "name": "default_working_hours",
     "type": "integer",
     "format": "whole number",
     "unit": "hours",
     "nullable": true,
     "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "default_working_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Default working time for the execution, minutes."
    },
    {
     "name": "execution_date",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Day of the execution (YYYY-MM-DD)."
    },
    {
     "name": "fruit_quality_option_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "fruit_quality_option_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced fruit quality option record when this row was written."
    },
    {
     "name": "is_closing_task",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = this execution closes the task."
    },
    {
     "name": "is_complete",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = completed."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "package_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "package_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced package record when this row was written."
    },
    {
     "name": "packages_amount_in_cage",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "pick_mode_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pick_mode_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pick mode record when this row was written."
    },
    {
     "name": "pick_technique_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pick_technique_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pick technique record when this row was written."
    },
    {
     "name": "pieces_amount_in_package",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "rate_assignment_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_assignment_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate assignment record when this row was written."
    },
    {
     "name": "rate_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate record when this row was written."
    },
    {
     "name": "seedling_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling type record when this row was written."
    },
    {
     "name": "start_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    },
    {
     "name": "task_execution_mode_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_execution_modes",
      "field": "id"
     },
     "description": "Reference to task_execution_modes.id."
    },
    {
     "name": "task_execution_mode_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_execution_modes record when this row was written."
    },
    {
     "name": "task_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "tasks",
      "field": "id"
     },
     "description": "Reference to tasks.id."
    },
    {
     "name": "task_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced tasks record when this row was written."
    },
    {
     "name": "total_weight_target",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Total weight target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "work_session_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "work_sessions",
      "field": "id"
     },
     "description": "Reference to work_sessions.id."
    },
    {
     "name": "work_session_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced work_sessions record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "task_executions",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "cage_amount_target",
     "close_time",
     "default_break_minutes",
     "default_end_time",
     "default_start_time",
     "default_working_hours",
     "default_working_minutes",
     "execution_date",
     "fruit_quality_option_id",
     "fruit_quality_option_ver",
     "is_closing_task",
     "is_complete",
     "location_id",
     "location_ver",
     "note",
     "package_id",
     "package_ver",
     "packages_amount_in_cage",
     "pick_mode_id",
     "pick_mode_ver",
     "pick_technique_id",
     "pick_technique_ver",
     "pieces_amount_in_package",
     "rate_assignment_id",
     "rate_assignment_ver",
     "rate_id",
     "rate_ver",
     "seedling_type_id",
     "seedling_type_ver",
     "start_time",
     "task_execution_mode_id",
     "task_execution_mode_ver",
     "task_id",
     "task_ver",
     "total_weight_target",
     "work_session_id",
     "work_session_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "cage_amount_target": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Cage amount target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "close_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the execution was closed (timestamp, UTC)."
     },
     "default_break_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default break for the execution, minutes. Unit: minutes."
     },
     "default_end_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Default end (timestamp, UTC)."
     },
     "default_start_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Default start (timestamp, UTC)."
     },
     "default_working_hours": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
     },
     "default_working_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default working time for the execution, minutes. Unit: minutes."
     },
     "execution_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Day of the execution (YYYY-MM-DD)."
     },
     "fruit_quality_option_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
     },
     "fruit_quality_option_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced fruit quality option record when this row was written."
     },
     "is_closing_task": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = this execution closes the task."
     },
     "is_complete": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = completed."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "package_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     "package_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     "packages_amount_in_cage": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "pick_mode_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
     },
     "pick_mode_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pick mode record when this row was written."
     },
     "pick_technique_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     "pick_technique_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     "pieces_amount_in_package": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "rate_assignment_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     "rate_assignment_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     "rate_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     "rate_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     "seedling_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     "start_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Start (timestamp, UTC)."
     },
     "task_execution_mode_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_execution_modes.id."
     },
     "task_execution_mode_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_execution_modes record when this row was written."
     },
     "task_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to tasks.id."
     },
     "task_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced tasks record when this row was written."
     },
     "total_weight_target": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Total weight target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "work_session_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to work_sessions.id."
     },
     "work_session_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced work_sessions record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "cage_amount_target",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Cage amount target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "close_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the execution was closed (timestamp, UTC)."
     },
     {
      "name": "default_break_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Default break for the execution, minutes."
     },
     {
      "name": "default_end_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Default end (timestamp, UTC)."
     },
     {
      "name": "default_start_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Default start (timestamp, UTC)."
     },
     {
      "name": "default_working_hours",
      "type": "integer",
      "format": "whole number",
      "unit": "hours",
      "nullable": true,
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "default_working_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Default working time for the execution, minutes."
     },
     {
      "name": "execution_date",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Day of the execution (YYYY-MM-DD)."
     },
     {
      "name": "fruit_quality_option_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "fruit_quality_option_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced fruit quality option record when this row was written."
     },
     {
      "name": "is_closing_task",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this execution closes the task."
     },
     {
      "name": "is_complete",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = completed."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "package_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "package_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     {
      "name": "packages_amount_in_cage",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "pick_mode_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pick_mode_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pick mode record when this row was written."
     },
     {
      "name": "pick_technique_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pick_technique_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     {
      "name": "pieces_amount_in_package",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "rate_assignment_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_assignment_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     {
      "name": "rate_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     {
      "name": "seedling_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     {
      "name": "start_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     },
     {
      "name": "task_execution_mode_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_execution_modes",
       "field": "id"
      },
      "description": "Reference to task_execution_modes.id."
     },
     {
      "name": "task_execution_mode_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_execution_modes record when this row was written."
     },
     {
      "name": "task_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "tasks",
       "field": "id"
      },
      "description": "Reference to tasks.id."
     },
     {
      "name": "task_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced tasks record when this row was written."
     },
     {
      "name": "total_weight_target",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Total weight target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "work_session_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "work_sessions",
       "field": "id"
      },
      "description": "Reference to work_sessions.id."
     },
     {
      "name": "work_session_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced work_sessions record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "task_executions (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "cage_amount_target",
      "close_time",
      "default_break_minutes",
      "default_end_time",
      "default_start_time",
      "default_working_hours",
      "default_working_minutes",
      "execution_date",
      "fruit_quality_option_id",
      "fruit_quality_option_ver",
      "is_closing_task",
      "is_complete",
      "location_id",
      "location_ver",
      "note",
      "package_id",
      "package_ver",
      "packages_amount_in_cage",
      "pick_mode_id",
      "pick_mode_ver",
      "pick_technique_id",
      "pick_technique_ver",
      "pieces_amount_in_package",
      "rate_assignment_id",
      "rate_assignment_ver",
      "rate_id",
      "rate_ver",
      "seedling_type_id",
      "seedling_type_ver",
      "start_time",
      "task_execution_mode_id",
      "task_execution_mode_ver",
      "task_id",
      "task_ver",
      "total_weight_target",
      "work_session_id",
      "work_session_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "cage_amount_target": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Cage amount target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "close_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the execution was closed (timestamp, UTC)."
      },
      "default_break_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default break for the execution, minutes. Unit: minutes."
      },
      "default_end_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Default end (timestamp, UTC)."
      },
      "default_start_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Default start (timestamp, UTC)."
      },
      "default_working_hours": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
      },
      "default_working_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default working time for the execution, minutes. Unit: minutes."
      },
      "execution_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Day of the execution (YYYY-MM-DD)."
      },
      "fruit_quality_option_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a fruit quality option record (a Service dictionary or another module; not included in this export)."
      },
      "fruit_quality_option_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced fruit quality option record when this row was written."
      },
      "is_closing_task": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this execution closes the task."
      },
      "is_complete": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = completed."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "package_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
      },
      "package_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced package record when this row was written."
      },
      "packages_amount_in_cage": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Packages amount in cage (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "pick_mode_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pick mode record (a Service dictionary or another module; not included in this export)."
      },
      "pick_mode_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pick mode record when this row was written."
      },
      "pick_technique_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
      },
      "pick_technique_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pick technique record when this row was written."
      },
      "pieces_amount_in_package": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Pieces amount in package (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "rate_assignment_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
      },
      "rate_assignment_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate assignment record when this row was written."
      },
      "rate_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
      },
      "rate_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate record when this row was written."
      },
      "seedling_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling type record when this row was written."
      },
      "start_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Start (timestamp, UTC)."
      },
      "task_execution_mode_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_execution_modes.id."
      },
      "task_execution_mode_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_execution_modes record when this row was written."
      },
      "task_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to tasks.id."
      },
      "task_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced tasks record when this row was written."
      },
      "total_weight_target": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Total weight target (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "work_session_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to work_sessions.id."
      },
      "work_session_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced work_sessions record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "users",
   "description": "People of the farm: workers (role with is_worker) and users of the Service. No passwords, tokens or login provider identifiers.",
   "termsScheduleCategories": [
    "A4",
    "A9",
    "A7"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/users.csv",
    "json": "json/users.json",
    "historyCsv": "csv/history/users.csv",
    "historyJson": "json/history/users.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "barcode",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Barcode assigned to the person."
    },
    {
     "name": "birth_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Date of birth (timestamp, UTC), when entered."
    },
    {
     "name": "birth_place",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Place of birth, when entered."
    },
    {
     "name": "can_login",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = the person may sign in to the Service."
    },
    {
     "name": "company_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Company name, when entered."
    },
    {
     "name": "document_no",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Identity document number, when entered."
    },
    {
     "name": "email",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "E-mail address."
    },
    {
     "name": "father_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Father's name, when entered."
    },
    {
     "name": "first_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "First name."
    },
    {
     "name": "internal_identifier",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Internal identifier entered by the farm."
    },
    {
     "name": "is_archived",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = archived person."
    },
    {
     "name": "is_disabled",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = inactive worker (does not count towards the Free Plan limit); empty or false = active."
    },
    {
     "name": "job_title",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Job title."
    },
    {
     "name": "kind",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Kind of person record."
    },
    {
     "name": "last_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Last name."
    },
    {
     "name": "legal_entity_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "legal_entities",
      "field": "id"
     },
     "description": "Reference to legal_entities.id."
    },
    {
     "name": "legal_entity_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced legal_entities record when this row was written."
    },
    {
     "name": "mother_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Mother's name, when entered."
    },
    {
     "name": "nationality_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "countries",
      "field": "id"
     },
     "description": "Reference to countries.id."
    },
    {
     "name": "nationality_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced countries record when this row was written."
    },
    {
     "name": "note",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "order_number",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Worker number assigned by the farm."
    },
    {
     "name": "pesel",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Polish personal identification number, when entered."
    },
    {
     "name": "phone_number",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Phone number."
    },
    {
     "name": "phone_number_prefix",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "International dialling prefix of the phone number."
    },
    {
     "name": "postal_address_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a postal address record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "postal_address_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced postal address record when this row was written."
    },
    {
     "name": "primary_address_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a primary address record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "primary_address_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced primary address record when this row was written."
    },
    {
     "name": "rfid",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "RFID tag assigned to the person."
    },
    {
     "name": "role_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "roles",
      "field": "id"
     },
     "description": "Reference to roles.id."
    },
    {
     "name": "role_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced roles record when this row was written."
    },
    {
     "name": "second_name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Second name."
    },
    {
     "name": "sex",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Sex, when entered."
    },
    {
     "name": "tax_number",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Tax number, when entered."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "users",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "barcode",
     "birth_date",
     "birth_place",
     "can_login",
     "company_name",
     "document_no",
     "email",
     "father_name",
     "first_name",
     "internal_identifier",
     "is_archived",
     "is_disabled",
     "job_title",
     "kind",
     "last_name",
     "legal_entity_id",
     "legal_entity_ver",
     "mother_name",
     "nationality_id",
     "nationality_ver",
     "note",
     "order_number",
     "pesel",
     "phone_number",
     "phone_number_prefix",
     "postal_address_id",
     "postal_address_ver",
     "primary_address_id",
     "primary_address_ver",
     "rfid",
     "role_id",
     "role_ver",
     "second_name",
     "sex",
     "tax_number"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "barcode": {
      "type": [
       "string",
       "null"
      ],
      "description": "Barcode assigned to the person."
     },
     "birth_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Date of birth (timestamp, UTC), when entered."
     },
     "birth_place": {
      "type": [
       "string",
       "null"
      ],
      "description": "Place of birth, when entered."
     },
     "can_login": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = the person may sign in to the Service."
     },
     "company_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Company name, when entered."
     },
     "document_no": {
      "type": [
       "string",
       "null"
      ],
      "description": "Identity document number, when entered."
     },
     "email": {
      "type": [
       "string",
       "null"
      ],
      "description": "E-mail address."
     },
     "father_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Father's name, when entered."
     },
     "first_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "First name."
     },
     "internal_identifier": {
      "type": [
       "string",
       "null"
      ],
      "description": "Internal identifier entered by the farm."
     },
     "is_archived": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = archived person."
     },
     "is_disabled": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = inactive worker (does not count towards the Free Plan limit); empty or false = active."
     },
     "job_title": {
      "type": [
       "string",
       "null"
      ],
      "description": "Job title."
     },
     "kind": {
      "type": [
       "string",
       "null"
      ],
      "description": "Kind of person record."
     },
     "last_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Last name."
     },
     "legal_entity_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to legal_entities.id."
     },
     "legal_entity_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced legal_entities record when this row was written."
     },
     "mother_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Mother's name, when entered."
     },
     "nationality_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to countries.id."
     },
     "nationality_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced countries record when this row was written."
     },
     "note": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "order_number": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Worker number assigned by the farm."
     },
     "pesel": {
      "type": [
       "string",
       "null"
      ],
      "description": "Polish personal identification number, when entered."
     },
     "phone_number": {
      "type": [
       "string",
       "null"
      ],
      "description": "Phone number."
     },
     "phone_number_prefix": {
      "type": [
       "string",
       "null"
      ],
      "description": "International dialling prefix of the phone number."
     },
     "postal_address_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a postal address record (a Service dictionary or another module; not included in this export)."
     },
     "postal_address_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced postal address record when this row was written."
     },
     "primary_address_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a primary address record (a Service dictionary or another module; not included in this export)."
     },
     "primary_address_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced primary address record when this row was written."
     },
     "rfid": {
      "type": [
       "string",
       "null"
      ],
      "description": "RFID tag assigned to the person."
     },
     "role_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to roles.id."
     },
     "role_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced roles record when this row was written."
     },
     "second_name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Second name."
     },
     "sex": {
      "type": [
       "string",
       "null"
      ],
      "description": "Sex, when entered."
     },
     "tax_number": {
      "type": [
       "string",
       "null"
      ],
      "description": "Tax number, when entered."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "barcode",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Barcode assigned to the person."
     },
     {
      "name": "birth_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Date of birth (timestamp, UTC), when entered."
     },
     {
      "name": "birth_place",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Place of birth, when entered."
     },
     {
      "name": "can_login",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = the person may sign in to the Service."
     },
     {
      "name": "company_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Company name, when entered."
     },
     {
      "name": "document_no",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Identity document number, when entered."
     },
     {
      "name": "email",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "E-mail address."
     },
     {
      "name": "father_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Father's name, when entered."
     },
     {
      "name": "first_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "First name."
     },
     {
      "name": "internal_identifier",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Internal identifier entered by the farm."
     },
     {
      "name": "is_archived",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = archived person."
     },
     {
      "name": "is_disabled",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = inactive worker (does not count towards the Free Plan limit); empty or false = active."
     },
     {
      "name": "job_title",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Job title."
     },
     {
      "name": "kind",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Kind of person record."
     },
     {
      "name": "last_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Last name."
     },
     {
      "name": "legal_entity_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "legal_entities",
       "field": "id"
      },
      "description": "Reference to legal_entities.id."
     },
     {
      "name": "legal_entity_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced legal_entities record when this row was written."
     },
     {
      "name": "mother_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Mother's name, when entered."
     },
     {
      "name": "nationality_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "countries",
       "field": "id"
      },
      "description": "Reference to countries.id."
     },
     {
      "name": "nationality_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced countries record when this row was written."
     },
     {
      "name": "note",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "order_number",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Worker number assigned by the farm."
     },
     {
      "name": "pesel",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Polish personal identification number, when entered."
     },
     {
      "name": "phone_number",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Phone number."
     },
     {
      "name": "phone_number_prefix",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "International dialling prefix of the phone number."
     },
     {
      "name": "postal_address_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a postal address record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "postal_address_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced postal address record when this row was written."
     },
     {
      "name": "primary_address_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a primary address record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "primary_address_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced primary address record when this row was written."
     },
     {
      "name": "rfid",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "RFID tag assigned to the person."
     },
     {
      "name": "role_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "roles",
       "field": "id"
      },
      "description": "Reference to roles.id."
     },
     {
      "name": "role_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced roles record when this row was written."
     },
     {
      "name": "second_name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Second name."
     },
     {
      "name": "sex",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Sex, when entered."
     },
     {
      "name": "tax_number",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Tax number, when entered."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "users (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "barcode",
      "birth_date",
      "birth_place",
      "can_login",
      "company_name",
      "document_no",
      "email",
      "father_name",
      "first_name",
      "internal_identifier",
      "is_archived",
      "is_disabled",
      "job_title",
      "kind",
      "last_name",
      "legal_entity_id",
      "legal_entity_ver",
      "mother_name",
      "nationality_id",
      "nationality_ver",
      "note",
      "order_number",
      "pesel",
      "phone_number",
      "phone_number_prefix",
      "postal_address_id",
      "postal_address_ver",
      "primary_address_id",
      "primary_address_ver",
      "rfid",
      "role_id",
      "role_ver",
      "second_name",
      "sex",
      "tax_number"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "barcode": {
       "type": [
        "string",
        "null"
       ],
       "description": "Barcode assigned to the person."
      },
      "birth_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Date of birth (timestamp, UTC), when entered."
      },
      "birth_place": {
       "type": [
        "string",
        "null"
       ],
       "description": "Place of birth, when entered."
      },
      "can_login": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = the person may sign in to the Service."
      },
      "company_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Company name, when entered."
      },
      "document_no": {
       "type": [
        "string",
        "null"
       ],
       "description": "Identity document number, when entered."
      },
      "email": {
       "type": [
        "string",
        "null"
       ],
       "description": "E-mail address."
      },
      "father_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Father's name, when entered."
      },
      "first_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "First name."
      },
      "internal_identifier": {
       "type": [
        "string",
        "null"
       ],
       "description": "Internal identifier entered by the farm."
      },
      "is_archived": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = archived person."
      },
      "is_disabled": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = inactive worker (does not count towards the Free Plan limit); empty or false = active."
      },
      "job_title": {
       "type": [
        "string",
        "null"
       ],
       "description": "Job title."
      },
      "kind": {
       "type": [
        "string",
        "null"
       ],
       "description": "Kind of person record."
      },
      "last_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Last name."
      },
      "legal_entity_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to legal_entities.id."
      },
      "legal_entity_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced legal_entities record when this row was written."
      },
      "mother_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Mother's name, when entered."
      },
      "nationality_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to countries.id."
      },
      "nationality_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced countries record when this row was written."
      },
      "note": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "order_number": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Worker number assigned by the farm."
      },
      "pesel": {
       "type": [
        "string",
        "null"
       ],
       "description": "Polish personal identification number, when entered."
      },
      "phone_number": {
       "type": [
        "string",
        "null"
       ],
       "description": "Phone number."
      },
      "phone_number_prefix": {
       "type": [
        "string",
        "null"
       ],
       "description": "International dialling prefix of the phone number."
      },
      "postal_address_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a postal address record (a Service dictionary or another module; not included in this export)."
      },
      "postal_address_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced postal address record when this row was written."
      },
      "primary_address_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a primary address record (a Service dictionary or another module; not included in this export)."
      },
      "primary_address_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced primary address record when this row was written."
      },
      "rfid": {
       "type": [
        "string",
        "null"
       ],
       "description": "RFID tag assigned to the person."
      },
      "role_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to roles.id."
      },
      "role_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced roles record when this row was written."
      },
      "second_name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Second name."
      },
      "sex": {
       "type": [
        "string",
        "null"
       ],
       "description": "Sex, when entered."
      },
      "tax_number": {
       "type": [
        "string",
        "null"
       ],
       "description": "Tax number, when entered."
      }
     }
    }
   }
  },
  {
   "name": "roles",
   "description": "Roles that give people their permissions (admin, manager, worker and others).",
   "termsScheduleCategories": [
    "A9"
   ],
   "scope": "organization-or-shared",
   "files": {
    "csv": "csv/roles.csv",
    "json": "json/roles.json",
    "historyCsv": "csv/history/roles.csv",
    "historyJson": "json/history/roles.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "is_worker",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = people with this role are workers."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "label",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Label of the role."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "roles",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "is_worker",
     "key",
     "label"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "is_worker": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = people with this role are workers."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "label": {
      "type": [
       "string",
       "null"
      ],
      "description": "Label of the role."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "is_worker",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = people with this role are workers."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "label",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Label of the role."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "roles (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "is_worker",
      "key",
      "label"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "is_worker": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = people with this role are workers."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "label": {
       "type": [
        "string",
        "null"
       ],
       "description": "Label of the role."
      }
     }
    }
   }
  },
  {
   "name": "permissions",
   "description": "Permissions that can be granted (module, page, action).",
   "termsScheduleCategories": [
    "A9"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/permissions.csv",
    "json": "json/permissions.json",
    "historyCsv": "csv/history/permissions.csv",
    "historyJson": "json/history/permissions.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "module_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Module the permission belongs to."
    },
    {
     "name": "page_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Page the permission belongs to."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "permissions",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "key",
     "module_key",
     "page_key"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "module_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Module the permission belongs to."
     },
     "page_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Page the permission belongs to."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "module_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Module the permission belongs to."
     },
     {
      "name": "page_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Page the permission belongs to."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "permissions (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "key",
      "module_key",
      "page_key"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "module_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Module the permission belongs to."
      },
      "page_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Page the permission belongs to."
      }
     }
    }
   }
  },
  {
   "name": "permits",
   "description": "Granted or refused permissions per role or per person.",
   "termsScheduleCategories": [
    "A9"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/permits.csv",
    "json": "json/permits.json",
    "historyCsv": "csv/history/permits.csv",
    "historyJson": "json/history/permits.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "is_permited",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = permission granted, false = refused (column name as stored)."
    },
    {
     "name": "permission_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "permissions",
      "field": "id"
     },
     "description": "Reference to permissions.id."
    },
    {
     "name": "permission_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced permissions record when this row was written."
    },
    {
     "name": "role_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "roles",
      "field": "id"
     },
     "description": "Reference to roles.id."
    },
    {
     "name": "role_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced roles record when this row was written."
    },
    {
     "name": "user_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "user_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "permits",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "is_permited",
     "permission_id",
     "permission_ver",
     "role_id",
     "role_ver",
     "user_id",
     "user_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "is_permited": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = permission granted, false = refused (column name as stored)."
     },
     "permission_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to permissions.id."
     },
     "permission_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced permissions record when this row was written."
     },
     "role_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to roles.id."
     },
     "role_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced roles record when this row was written."
     },
     "user_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "user_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "is_permited",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = permission granted, false = refused (column name as stored)."
     },
     {
      "name": "permission_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "permissions",
       "field": "id"
      },
      "description": "Reference to permissions.id."
     },
     {
      "name": "permission_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced permissions record when this row was written."
     },
     {
      "name": "role_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "roles",
       "field": "id"
      },
      "description": "Reference to roles.id."
     },
     {
      "name": "role_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced roles record when this row was written."
     },
     {
      "name": "user_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "user_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "permits (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "is_permited",
      "permission_id",
      "permission_ver",
      "role_id",
      "role_ver",
      "user_id",
      "user_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "is_permited": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = permission granted, false = refused (column name as stored)."
      },
      "permission_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to permissions.id."
      },
      "permission_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced permissions record when this row was written."
      },
      "role_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to roles.id."
      },
      "role_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced roles record when this row was written."
      },
      "user_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "user_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "user_settings",
   "description": "Personal settings of people in the Service.",
   "termsScheduleCategories": [
    "A9"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/user_settings.csv",
    "json": "json/user_settings.json",
    "historyCsv": "csv/history/user_settings.csv",
    "historyJson": "json/history/user_settings.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "record_uid",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Identifier of the setting record."
    },
    {
     "name": "setting_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "setting_option_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "setting_option_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced setting option record when this row was written."
    },
    {
     "name": "setting_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced setting record when this row was written."
    },
    {
     "name": "user_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "user_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "value",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Setting value."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "user_settings",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "record_uid",
     "setting_id",
     "setting_option_id",
     "setting_option_ver",
     "setting_ver",
     "user_id",
     "user_ver",
     "value"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "record_uid": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Identifier of the setting record."
     },
     "setting_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
     },
     "setting_option_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
     },
     "setting_option_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced setting option record when this row was written."
     },
     "setting_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced setting record when this row was written."
     },
     "user_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "user_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "value": {
      "type": [
       "string",
       "null"
      ],
      "description": "Setting value."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "record_uid",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Identifier of the setting record."
     },
     {
      "name": "setting_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "setting_option_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "setting_option_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced setting option record when this row was written."
     },
     {
      "name": "setting_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced setting record when this row was written."
     },
     {
      "name": "user_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "user_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "value",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Setting value."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "user_settings (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "record_uid",
      "setting_id",
      "setting_option_id",
      "setting_option_ver",
      "setting_ver",
      "user_id",
      "user_ver",
      "value"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "record_uid": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Identifier of the setting record."
      },
      "setting_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a setting record (a Service dictionary or another module; not included in this export)."
      },
      "setting_option_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a setting option record (a Service dictionary or another module; not included in this export)."
      },
      "setting_option_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced setting option record when this row was written."
      },
      "setting_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced setting record when this row was written."
      },
      "user_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "user_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "value": {
       "type": [
        "string",
        "null"
       ],
       "description": "Setting value."
      }
     }
    }
   }
  },
  {
   "name": "contract_types",
   "description": "Types of worker contracts.",
   "termsScheduleCategories": [
    "A4"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/contract_types.csv",
    "json": "json/contract_types.json",
    "historyCsv": "csv/history/contract_types.csv",
    "historyJson": "json/history/contract_types.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "has_constant_pay",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = contract with constant pay."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "contract_types",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "has_constant_pay",
     "key",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "has_constant_pay": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = contract with constant pay."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "has_constant_pay",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = contract with constant pay."
     },
     {
      "name": "key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Machine key of the record."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "contract_types (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "has_constant_pay",
      "key",
      "name"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "has_constant_pay": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = contract with constant pay."
      },
      "key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Machine key of the record."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      }
     }
    }
   }
  },
  {
   "name": "signed_contracts",
   "description": "Contract periods of a worker; a worker is employed between signing_date and end_date.",
   "termsScheduleCategories": [
    "A4"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/signed_contracts.csv",
    "json": "json/signed_contracts.json",
    "historyCsv": "csv/history/signed_contracts.csv",
    "historyJson": "json/history/signed_contracts.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "contract_rate",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Contract rate as stored."
    },
    {
     "name": "contract_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "contract_types",
      "field": "id"
     },
     "description": "Reference to contract_types.id."
    },
    {
     "name": "contract_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced contract_types record when this row was written."
    },
    {
     "name": "end_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "end_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "End day (YYYY-MM-DD)."
    },
    {
     "name": "extra_stay_days",
     "type": "integer",
     "format": "whole number",
     "unit": "days",
     "nullable": true,
     "description": "Extra stay days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "extra_visa_days",
     "type": "integer",
     "format": "whole number",
     "unit": "days",
     "nullable": true,
     "description": "Extra visa days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "max_salary_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Max salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "min_salary_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Min salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "signing_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Contract start (timestamp, UTC)."
    },
    {
     "name": "signing_day",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Contract start day (YYYY-MM-DD)."
    },
    {
     "name": "user_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "user_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "signed_contracts",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "contract_rate",
     "contract_type_id",
     "contract_type_ver",
     "end_date",
     "end_day",
     "extra_stay_days",
     "extra_visa_days",
     "max_salary_amount",
     "min_salary_amount",
     "signing_date",
     "signing_day",
     "user_id",
     "user_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "contract_rate": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Contract rate as stored."
     },
     "contract_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to contract_types.id."
     },
     "contract_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced contract_types record when this row was written."
     },
     "end_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End (timestamp, UTC)."
     },
     "end_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "End day (YYYY-MM-DD)."
     },
     "extra_stay_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Extra stay days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
     },
     "extra_visa_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Extra visa days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
     },
     "max_salary_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Max salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "min_salary_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Min salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "signing_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Contract start (timestamp, UTC)."
     },
     "signing_day": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Contract start day (YYYY-MM-DD)."
     },
     "user_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "user_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "contract_rate",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Contract rate as stored."
     },
     {
      "name": "contract_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "contract_types",
       "field": "id"
      },
      "description": "Reference to contract_types.id."
     },
     {
      "name": "contract_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced contract_types record when this row was written."
     },
     {
      "name": "end_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "end_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "End day (YYYY-MM-DD)."
     },
     {
      "name": "extra_stay_days",
      "type": "integer",
      "format": "whole number",
      "unit": "days",
      "nullable": true,
      "description": "Extra stay days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "extra_visa_days",
      "type": "integer",
      "format": "whole number",
      "unit": "days",
      "nullable": true,
      "description": "Extra visa days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "max_salary_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Max salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "min_salary_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Min salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "signing_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Contract start (timestamp, UTC)."
     },
     {
      "name": "signing_day",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Contract start day (YYYY-MM-DD)."
     },
     {
      "name": "user_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "user_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "signed_contracts (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "contract_rate",
      "contract_type_id",
      "contract_type_ver",
      "end_date",
      "end_day",
      "extra_stay_days",
      "extra_visa_days",
      "max_salary_amount",
      "min_salary_amount",
      "signing_date",
      "signing_day",
      "user_id",
      "user_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "contract_rate": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Contract rate as stored."
      },
      "contract_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to contract_types.id."
      },
      "contract_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced contract_types record when this row was written."
      },
      "end_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End (timestamp, UTC)."
      },
      "end_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "End day (YYYY-MM-DD)."
      },
      "extra_stay_days": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Extra stay days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
      },
      "extra_visa_days": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Extra visa days (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: days."
      },
      "max_salary_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Max salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "min_salary_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Min salary amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "signing_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Contract start (timestamp, UTC)."
      },
      "signing_day": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Contract start day (YYYY-MM-DD)."
      },
      "user_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "user_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "seasons",
   "description": "Seasons defined by the farm.",
   "termsScheduleCategories": [
    "A5",
    "A8"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/seasons.csv",
    "json": "json/seasons.json",
    "historyCsv": "csv/history/seasons.csv",
    "historyJson": "json/history/seasons.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "description",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Description entered by the farm."
    },
    {
     "name": "end_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "is_active",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = active."
    },
    {
     "name": "is_default",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = default season."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    },
    {
     "name": "plant_purpose_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "plant_purposes",
      "field": "id"
     },
     "description": "Reference to plant_purposes.id."
    },
    {
     "name": "plant_purpose_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced plant_purposes record when this row was written."
    },
    {
     "name": "season_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a season type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "season_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced season type record when this row was written."
    },
    {
     "name": "start_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "seasons",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "description",
     "end_date",
     "is_active",
     "is_default",
     "name",
     "plant_purpose_id",
     "plant_purpose_ver",
     "season_type_id",
     "season_type_ver",
     "start_date"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "description": {
      "type": [
       "string",
       "null"
      ],
      "description": "Description entered by the farm."
     },
     "end_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End (timestamp, UTC)."
     },
     "is_active": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = active."
     },
     "is_default": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = default season."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     },
     "plant_purpose_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to plant_purposes.id."
     },
     "plant_purpose_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     "season_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a season type record (a Service dictionary or another module; not included in this export)."
     },
     "season_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced season type record when this row was written."
     },
     "start_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Start (timestamp, UTC)."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "description",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Description entered by the farm."
     },
     {
      "name": "end_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "is_active",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = active."
     },
     {
      "name": "is_default",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = default season."
     },
     {
      "name": "name",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Name as entered by the farm."
     },
     {
      "name": "plant_purpose_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "plant_purposes",
       "field": "id"
      },
      "description": "Reference to plant_purposes.id."
     },
     {
      "name": "plant_purpose_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced plant_purposes record when this row was written."
     },
     {
      "name": "season_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a season type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "season_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced season type record when this row was written."
     },
     {
      "name": "start_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "seasons (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "description",
      "end_date",
      "is_active",
      "is_default",
      "name",
      "plant_purpose_id",
      "plant_purpose_ver",
      "season_type_id",
      "season_type_ver",
      "start_date"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "description": {
       "type": [
        "string",
        "null"
       ],
       "description": "Description entered by the farm."
      },
      "end_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End (timestamp, UTC)."
      },
      "is_active": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = active."
      },
      "is_default": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = default season."
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name as entered by the farm."
      },
      "plant_purpose_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to plant_purposes.id."
      },
      "plant_purpose_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced plant_purposes record when this row was written."
      },
      "season_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a season type record (a Service dictionary or another module; not included in this export)."
      },
      "season_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced season type record when this row was written."
      },
      "start_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Start (timestamp, UTC)."
      }
     }
    }
   }
  },
  {
   "name": "season_configurations",
   "description": "Weekly settings of a season, including the hourly rate used for cost calculations.",
   "termsScheduleCategories": [
    "A5",
    "A8"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/season_configurations.csv",
    "json": "json/season_configurations.json",
    "historyCsv": "csv/history/season_configurations.csv",
    "historyJson": "json/history/season_configurations.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "end_date",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "hourly_rate",
     "type": "integer",
     "format": "whole number",
     "unit": "minor currency units (1/100 of organization.currency_code) per hour",
     "nullable": true,
     "description": "Hourly rate of the season week in minor units of the farm currency (organization.currency_code), e.g. 3140 = 31.40 PLN per hour. Applies to work whose week starts on start_date (Monday)."
    },
    {
     "name": "iso_week",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "ISO 8601 week number."
    },
    {
     "name": "season_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "seasons",
      "field": "id"
     },
     "description": "Reference to seasons.id."
    },
    {
     "name": "season_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seasons record when this row was written."
    },
    {
     "name": "start_date",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    },
    {
     "name": "working_days",
     "type": "integer",
     "format": "whole number",
     "unit": "days",
     "nullable": true,
     "description": "Working days."
    },
    {
     "name": "working_hours_in_day",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "unit": "hours",
     "nullable": true,
     "description": "Working hours per day."
    },
    {
     "name": "working_hours_in_week",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "unit": "hours",
     "nullable": true,
     "description": "Working hours per week."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "season_configurations",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "end_date",
     "hourly_rate",
     "iso_week",
     "season_id",
     "season_ver",
     "start_date",
     "working_days",
     "working_hours_in_day",
     "working_hours_in_week"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "end_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "End (timestamp, UTC)."
     },
     "hourly_rate": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Hourly rate of the season week in minor units of the farm currency (organization.currency_code), e.g. 3140 = 31.40 PLN per hour. Applies to work whose week starts on start_date (Monday). Unit: minor currency units (1/100 of organization.currency_code) per hour."
     },
     "iso_week": {
      "type": [
       "integer",
       "null"
      ],
      "description": "ISO 8601 week number."
     },
     "season_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to seasons.id."
     },
     "season_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seasons record when this row was written."
     },
     "start_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Start (timestamp, UTC)."
     },
     "working_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Working days. Unit: days."
     },
     "working_hours_in_day": {
      "type": [
       "number",
       "null"
      ],
      "description": "Working hours per day. Unit: hours."
     },
     "working_hours_in_week": {
      "type": [
       "number",
       "null"
      ],
      "description": "Working hours per week. Unit: hours."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "end_date",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "hourly_rate",
      "type": "integer",
      "format": "whole number",
      "unit": "minor currency units (1/100 of organization.currency_code) per hour",
      "nullable": true,
      "description": "Hourly rate of the season week in minor units of the farm currency (organization.currency_code), e.g. 3140 = 31.40 PLN per hour. Applies to work whose week starts on start_date (Monday)."
     },
     {
      "name": "iso_week",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "ISO 8601 week number."
     },
     {
      "name": "season_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "seasons",
       "field": "id"
      },
      "description": "Reference to seasons.id."
     },
     {
      "name": "season_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seasons record when this row was written."
     },
     {
      "name": "start_date",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     },
     {
      "name": "working_days",
      "type": "integer",
      "format": "whole number",
      "unit": "days",
      "nullable": true,
      "description": "Working days."
     },
     {
      "name": "working_hours_in_day",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "unit": "hours",
      "nullable": true,
      "description": "Working hours per day."
     },
     {
      "name": "working_hours_in_week",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "unit": "hours",
      "nullable": true,
      "description": "Working hours per week."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "season_configurations (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "end_date",
      "hourly_rate",
      "iso_week",
      "season_id",
      "season_ver",
      "start_date",
      "working_days",
      "working_hours_in_day",
      "working_hours_in_week"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "end_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "End (timestamp, UTC)."
      },
      "hourly_rate": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Hourly rate of the season week in minor units of the farm currency (organization.currency_code), e.g. 3140 = 31.40 PLN per hour. Applies to work whose week starts on start_date (Monday). Unit: minor currency units (1/100 of organization.currency_code) per hour."
      },
      "iso_week": {
       "type": [
        "integer",
        "null"
       ],
       "description": "ISO 8601 week number."
      },
      "season_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to seasons.id."
      },
      "season_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seasons record when this row was written."
      },
      "start_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Start (timestamp, UTC)."
      },
      "working_days": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Working days. Unit: days."
      },
      "working_hours_in_day": {
       "type": [
        "number",
        "null"
       ],
       "description": "Working hours per day. Unit: hours."
      },
      "working_hours_in_week": {
       "type": [
        "number",
        "null"
       ],
       "description": "Working hours per week. Unit: hours."
      }
     }
    }
   }
  },
  {
   "name": "work_sessions",
   "description": "Work sessions (group work on a day), when used.",
   "termsScheduleCategories": [
    "A5"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/work_sessions.csv",
    "json": "json/work_sessions.json",
    "historyCsv": "csv/history/work_sessions.csv",
    "historyJson": "json/history/work_sessions.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "baseline_duration",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Baseline duration as stored."
    },
    {
     "name": "default_working_hours",
     "type": "integer",
     "format": "whole number",
     "unit": "hours",
     "nullable": true,
     "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "group_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "group_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced group record when this row was written."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "occurence_date",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Day of the session (timestamp, UTC; column name as stored)."
    },
    {
     "name": "task_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_types",
      "field": "id"
     },
     "description": "Reference to task_types.id."
    },
    {
     "name": "task_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_types record when this row was written."
    },
    {
     "name": "type",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Type of the session."
    },
    {
     "name": "user_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "user_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "work_sessions",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "baseline_duration",
     "default_working_hours",
     "group_id",
     "group_ver",
     "location_id",
     "location_ver",
     "occurence_date",
     "task_type_id",
     "task_type_ver",
     "type",
     "user_id",
     "user_ver"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "baseline_duration": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Baseline duration as stored."
     },
     "default_working_hours": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
     },
     "group_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     "group_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "occurence_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Day of the session (timestamp, UTC; column name as stored)."
     },
     "task_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_types.id."
     },
     "task_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     "type": {
      "type": [
       "string",
       "null"
      ],
      "description": "Type of the session."
     },
     "user_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "user_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "baseline_duration",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Baseline duration as stored."
     },
     {
      "name": "default_working_hours",
      "type": "integer",
      "format": "whole number",
      "unit": "hours",
      "nullable": true,
      "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "group_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "group_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "occurence_date",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Day of the session (timestamp, UTC; column name as stored)."
     },
     {
      "name": "task_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_types",
       "field": "id"
      },
      "description": "Reference to task_types.id."
     },
     {
      "name": "task_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     {
      "name": "type",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Type of the session."
     },
     {
      "name": "user_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "user_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "work_sessions (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "baseline_duration",
      "default_working_hours",
      "group_id",
      "group_ver",
      "location_id",
      "location_ver",
      "occurence_date",
      "task_type_id",
      "task_type_ver",
      "type",
      "user_id",
      "user_ver"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "baseline_duration": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Baseline duration as stored."
      },
      "default_working_hours": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Default working hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
      },
      "group_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
      },
      "group_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced group record when this row was written."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "occurence_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Day of the session (timestamp, UTC; column name as stored)."
      },
      "task_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_types.id."
      },
      "task_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_types record when this row was written."
      },
      "type": {
       "type": [
        "string",
        "null"
       ],
       "description": "Type of the session."
      },
      "user_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "user_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      }
     }
    }
   }
  },
  {
   "name": "worker_activities",
   "description": "Work-time records: start, end and break of a worker on a task execution, with computed working minutes.",
   "termsScheduleCategories": [
    "A5",
    "A7",
    "A8"
   ],
   "scope": "organization",
   "files": {
    "csv": "csv/worker_activities.csv",
    "json": "json/worker_activities.json",
    "historyCsv": "csv/history/worker_activities.csv",
    "historyJson": "json/history/worker_activities.json"
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "aisle_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a aisle record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "aisle_side",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Aisle side (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "aisle_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced aisle record when this row was written."
    },
    {
     "name": "assignment_source",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "How the worker was assigned to the task."
    },
    {
     "name": "break_day_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Break start, minutes after midnight (legacy, usually empty)."
    },
    {
     "name": "break_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Break length in minutes."
    },
    {
     "name": "break_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Break time (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "bunches_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Bunches amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "cage_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a cage record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "cage_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced cage record when this row was written."
    },
    {
     "name": "date_of_execution",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Day and time of the work (timestamp, UTC)."
    },
    {
     "name": "end_day_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "End of work, minutes after midnight of work_date in the farm time zone (more than 1440 when work ends after midnight)."
    },
    {
     "name": "end_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "End (timestamp, UTC)."
    },
    {
     "name": "execution_mode_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a execution mode record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "execution_mode_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced execution mode record when this row was written."
    },
    {
     "name": "from_transaction_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a from transaction record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "from_transaction_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced from transaction record when this row was written."
    },
    {
     "name": "full_value",
     "type": "number",
     "format": "decimal number, dot as decimal separator",
     "nullable": true,
     "description": "Value of the record (piecework) as stored."
    },
    {
     "name": "gross_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Gross amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "group_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "group_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced group record when this row was written."
    },
    {
     "name": "hourly_type_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "time-start = work started and still open; time-end = start and end recorded; presence = presence mark; time-break = break."
    },
    {
     "name": "insert_method_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a insert method record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "insert_method_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced insert method record when this row was written."
    },
    {
     "name": "is_invalid",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = record marked invalid."
    },
    {
     "name": "last_present_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Last presence mark (timestamp, UTC)."
    },
    {
     "name": "local_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version counter of the offline client."
    },
    {
     "name": "location_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "locations",
      "field": "id"
     },
     "description": "Reference to locations.id."
    },
    {
     "name": "location_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced locations record when this row was written."
    },
    {
     "name": "net_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Net amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "notes",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Free-text note entered by the farm."
    },
    {
     "name": "origin_salary_modificator_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a origin salary modificator record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "origin_salary_modificator_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a origin salary modificator type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "origin_salary_modificator_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced origin salary modificator type record when this row was written."
    },
    {
     "name": "origin_salary_modificator_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced origin salary modificator record when this row was written."
    },
    {
     "name": "package_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "package_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced package record when this row was written."
    },
    {
     "name": "pallet_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pallet record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pallet_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pallet record when this row was written."
    },
    {
     "name": "pick_technique_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "pick_technique_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced pick technique record when this row was written."
    },
    {
     "name": "plant_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "plants",
      "field": "id"
     },
     "description": "Reference to plants.id."
    },
    {
     "name": "plant_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced plants record when this row was written."
    },
    {
     "name": "rate_assignment_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_assignment_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate assignment record when this row was written."
    },
    {
     "name": "rate_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "rate_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced rate record when this row was written."
    },
    {
     "name": "registration_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was registered (timestamp, UTC)."
    },
    {
     "name": "row_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a row record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "row_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced row record when this row was written."
    },
    {
     "name": "sales_order_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a sales order record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "sales_order_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced sales order record when this row was written."
    },
    {
     "name": "seedling_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "seedling_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced seedling type record when this row was written."
    },
    {
     "name": "seedlings_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Seedlings amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "start_day_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Start of work, minutes after midnight of work_date in the farm time zone."
    },
    {
     "name": "start_time",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "Start (timestamp, UTC)."
    },
    {
     "name": "supervisor_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "supervisor_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "tare_amount",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Tare amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "task_assignment_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a task assignment record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "task_assignment_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task assignment record when this row was written."
    },
    {
     "name": "task_execution_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_executions",
      "field": "id"
     },
     "description": "Reference to task_executions.id."
    },
    {
     "name": "task_execution_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_executions record when this row was written."
    },
    {
     "name": "task_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "tasks",
      "field": "id"
     },
     "description": "Reference to tasks.id."
    },
    {
     "name": "task_type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "task_types",
      "field": "id"
     },
     "description": "Reference to task_types.id."
    },
    {
     "name": "task_type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced task_types record when this row was written."
    },
    {
     "name": "task_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced tasks record when this row was written."
    },
    {
     "name": "team_entry_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a team entry record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "team_key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Team key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "time_change_hours",
     "type": "integer",
     "format": "whole number",
     "unit": "hours",
     "nullable": true,
     "description": "Time change hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "time_change_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Time change minutes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "time_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a time record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "time_source",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "global = time entered for the whole crew; individual = for one worker."
    },
    {
     "name": "type_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "worker_activity_types",
      "field": "id"
     },
     "description": "Reference to worker_activity_types.id."
    },
    {
     "name": "type_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced worker_activity_types record when this row was written."
    },
    {
     "name": "unit_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a unit record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "unit_value_divider",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Unit value divider (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "unit_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced unit record when this row was written."
    },
    {
     "name": "variety_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "varieties",
      "field": "id"
     },
     "description": "Reference to varieties.id."
    },
    {
     "name": "variety_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced varieties record when this row was written."
    },
    {
     "name": "work_date",
     "type": "date",
     "format": "ISO 8601 calendar date YYYY-MM-DD",
     "nullable": true,
     "description": "Working day the record belongs to (YYYY-MM-DD, farm day)."
    },
    {
     "name": "work_session_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "work_sessions",
      "field": "id"
     },
     "description": "Reference to work_sessions.id."
    },
    {
     "name": "work_session_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced work_sessions record when this row was written."
    },
    {
     "name": "worker_function_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "description": "Reference to a worker function record (a Service dictionary or another module; not included in this export)."
    },
    {
     "name": "worker_function_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced worker function record when this row was written."
    },
    {
     "name": "worker_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Reference to users.id."
    },
    {
     "name": "worker_ver",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Version (ver) of the referenced users record when this row was written."
    },
    {
     "name": "working_days",
     "type": "integer",
     "format": "whole number",
     "unit": "days",
     "nullable": true,
     "description": "Working days."
    },
    {
     "name": "working_hours",
     "type": "integer",
     "format": "whole number",
     "unit": "hours",
     "nullable": true,
     "description": "Worked time in whole hours as stored (working_minutes is the exact value)."
    },
    {
     "name": "working_minutes",
     "type": "integer",
     "format": "whole number",
     "unit": "minutes",
     "nullable": true,
     "description": "Worked time in minutes (end minus start minus break)."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "worker_activities",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "aisle_id",
     "aisle_side",
     "aisle_ver",
     "assignment_source",
     "break_day_minutes",
     "break_minutes",
     "break_time",
     "bunches_amount",
     "cage_id",
     "cage_ver",
     "date_of_execution",
     "end_day_minutes",
     "end_time",
     "execution_mode_id",
     "execution_mode_ver",
     "from_transaction_id",
     "from_transaction_ver",
     "full_value",
     "gross_amount",
     "group_id",
     "group_ver",
     "hourly_type_key",
     "insert_method_id",
     "insert_method_ver",
     "is_invalid",
     "last_present_at",
     "local_ver",
     "location_id",
     "location_ver",
     "net_amount",
     "notes",
     "origin_salary_modificator_id",
     "origin_salary_modificator_type_id",
     "origin_salary_modificator_type_ver",
     "origin_salary_modificator_ver",
     "package_id",
     "package_ver",
     "pallet_id",
     "pallet_ver",
     "pick_technique_id",
     "pick_technique_ver",
     "plant_id",
     "plant_ver",
     "rate_assignment_id",
     "rate_assignment_ver",
     "rate_id",
     "rate_ver",
     "registration_time",
     "row_id",
     "row_ver",
     "sales_order_id",
     "sales_order_ver",
     "seedling_type_id",
     "seedling_type_ver",
     "seedlings_amount",
     "start_day_minutes",
     "start_time",
     "supervisor_id",
     "supervisor_ver",
     "tare_amount",
     "task_assignment_id",
     "task_assignment_ver",
     "task_execution_id",
     "task_execution_ver",
     "task_id",
     "task_type_id",
     "task_type_ver",
     "task_ver",
     "team_entry_id",
     "team_key",
     "time_change_hours",
     "time_change_minutes",
     "time_id",
     "time_source",
     "type_id",
     "type_ver",
     "unit_id",
     "unit_value_divider",
     "unit_ver",
     "variety_id",
     "variety_ver",
     "work_date",
     "work_session_id",
     "work_session_ver",
     "worker_function_id",
     "worker_function_ver",
     "worker_id",
     "worker_ver",
     "working_days",
     "working_hours",
     "working_minutes"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "aisle_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a aisle record (a Service dictionary or another module; not included in this export)."
     },
     "aisle_side": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Aisle side (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "aisle_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced aisle record when this row was written."
     },
     "assignment_source": {
      "type": [
       "string",
       "null"
      ],
      "description": "How the worker was assigned to the task."
     },
     "break_day_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Break start, minutes after midnight (legacy, usually empty). Unit: minutes."
     },
     "break_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Break length in minutes. Unit: minutes."
     },
     "break_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Break time (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "bunches_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Bunches amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "cage_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a cage record (a Service dictionary or another module; not included in this export)."
     },
     "cage_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced cage record when this row was written."
     },
     "date_of_execution": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Day and time of the work (timestamp, UTC)."
     },
     "end_day_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "End of work, minutes after midnight of work_date in the farm time zone (more than 1440 when work ends after midnight). Unit: minutes."
     },
     "end_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "End (timestamp, UTC)."
     },
     "execution_mode_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a execution mode record (a Service dictionary or another module; not included in this export)."
     },
     "execution_mode_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced execution mode record when this row was written."
     },
     "from_transaction_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a from transaction record (a Service dictionary or another module; not included in this export)."
     },
     "from_transaction_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced from transaction record when this row was written."
     },
     "full_value": {
      "type": [
       "number",
       "null"
      ],
      "description": "Value of the record (piecework) as stored."
     },
     "gross_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Gross amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "group_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     "group_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     "hourly_type_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "time-start = work started and still open; time-end = start and end recorded; presence = presence mark; time-break = break."
     },
     "insert_method_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a insert method record (a Service dictionary or another module; not included in this export)."
     },
     "insert_method_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced insert method record when this row was written."
     },
     "is_invalid": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = record marked invalid."
     },
     "last_present_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Last presence mark (timestamp, UTC)."
     },
     "local_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version counter of the offline client."
     },
     "location_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to locations.id."
     },
     "location_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     "net_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Net amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "notes": {
      "type": [
       "string",
       "null"
      ],
      "description": "Free-text note entered by the farm."
     },
     "origin_salary_modificator_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a origin salary modificator record (a Service dictionary or another module; not included in this export)."
     },
     "origin_salary_modificator_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a origin salary modificator type record (a Service dictionary or another module; not included in this export)."
     },
     "origin_salary_modificator_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced origin salary modificator type record when this row was written."
     },
     "origin_salary_modificator_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced origin salary modificator record when this row was written."
     },
     "package_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     "package_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     "pallet_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pallet record (a Service dictionary or another module; not included in this export)."
     },
     "pallet_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pallet record when this row was written."
     },
     "pick_technique_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     "pick_technique_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     "plant_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to plants.id."
     },
     "plant_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced plants record when this row was written."
     },
     "rate_assignment_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     "rate_assignment_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     "rate_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     "rate_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     "registration_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was registered (timestamp, UTC)."
     },
     "row_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a row record (a Service dictionary or another module; not included in this export)."
     },
     "row_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced row record when this row was written."
     },
     "sales_order_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a sales order record (a Service dictionary or another module; not included in this export)."
     },
     "sales_order_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced sales order record when this row was written."
     },
     "seedling_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     "seedling_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     "seedlings_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Seedlings amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "start_day_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Start of work, minutes after midnight of work_date in the farm time zone. Unit: minutes."
     },
     "start_time": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "Start (timestamp, UTC)."
     },
     "supervisor_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "supervisor_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "tare_amount": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Tare amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "task_assignment_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a task assignment record (a Service dictionary or another module; not included in this export)."
     },
     "task_assignment_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task assignment record when this row was written."
     },
     "task_execution_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_executions.id."
     },
     "task_execution_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_executions record when this row was written."
     },
     "task_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to tasks.id."
     },
     "task_type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to task_types.id."
     },
     "task_type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     "task_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced tasks record when this row was written."
     },
     "team_entry_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a team entry record (a Service dictionary or another module; not included in this export)."
     },
     "team_key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Team key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "time_change_hours": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Time change hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
     },
     "time_change_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Time change minutes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: minutes."
     },
     "time_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a time record (a Service dictionary or another module; not included in this export)."
     },
     "time_source": {
      "type": [
       "string",
       "null"
      ],
      "description": "global = time entered for the whole crew; individual = for one worker."
     },
     "type_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to worker_activity_types.id."
     },
     "type_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced worker_activity_types record when this row was written."
     },
     "unit_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a unit record (a Service dictionary or another module; not included in this export)."
     },
     "unit_value_divider": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Unit value divider (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "unit_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced unit record when this row was written."
     },
     "variety_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to varieties.id."
     },
     "variety_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced varieties record when this row was written."
     },
     "work_date": {
      "type": [
       "string",
       "null"
      ],
      "format": "date",
      "description": "Working day the record belongs to (YYYY-MM-DD, farm day)."
     },
     "work_session_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to work_sessions.id."
     },
     "work_session_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced work_sessions record when this row was written."
     },
     "worker_function_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to a worker function record (a Service dictionary or another module; not included in this export)."
     },
     "worker_function_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced worker function record when this row was written."
     },
     "worker_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Reference to users.id."
     },
     "worker_ver": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     "working_days": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Working days. Unit: days."
     },
     "working_hours": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Worked time in whole hours as stored (working_minutes is the exact value). Unit: hours."
     },
     "working_minutes": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Worked time in minutes (end minus start minus break). Unit: minutes."
     }
    }
   },
   "history": {
    "primaryKey": [
     "id",
     "ver"
    ],
    "fields": [
     {
      "name": "id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": false,
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     {
      "name": "ver",
      "type": "integer",
      "format": "whole number",
      "nullable": false,
      "partOfPrimaryKey": true,
      "description": "Number of this version. (id, ver) identifies one row of the history."
     },
     {
      "name": "deleted",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = this version deleted the record. Empty or false = a live version."
     },
     {
      "name": "created_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When this version was written (UTC)."
     },
     {
      "name": "created_by_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Person who wrote this version (users.id)."
     },
     {
      "name": "aisle_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a aisle record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "aisle_side",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Aisle side (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "aisle_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced aisle record when this row was written."
     },
     {
      "name": "assignment_source",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "How the worker was assigned to the task."
     },
     {
      "name": "break_day_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Break start, minutes after midnight (legacy, usually empty)."
     },
     {
      "name": "break_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Break length in minutes."
     },
     {
      "name": "break_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Break time (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "bunches_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Bunches amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "cage_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a cage record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "cage_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced cage record when this row was written."
     },
     {
      "name": "date_of_execution",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Day and time of the work (timestamp, UTC)."
     },
     {
      "name": "end_day_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "End of work, minutes after midnight of work_date in the farm time zone (more than 1440 when work ends after midnight)."
     },
     {
      "name": "end_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "End (timestamp, UTC)."
     },
     {
      "name": "execution_mode_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a execution mode record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "execution_mode_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced execution mode record when this row was written."
     },
     {
      "name": "from_transaction_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a from transaction record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "from_transaction_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced from transaction record when this row was written."
     },
     {
      "name": "full_value",
      "type": "number",
      "format": "decimal number, dot as decimal separator",
      "nullable": true,
      "description": "Value of the record (piecework) as stored."
     },
     {
      "name": "gross_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Gross amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "group_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "group_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced group record when this row was written."
     },
     {
      "name": "hourly_type_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "time-start = work started and still open; time-end = start and end recorded; presence = presence mark; time-break = break."
     },
     {
      "name": "insert_method_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a insert method record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "insert_method_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced insert method record when this row was written."
     },
     {
      "name": "is_invalid",
      "type": "boolean",
      "format": "true or false",
      "nullable": true,
      "description": "true = record marked invalid."
     },
     {
      "name": "last_present_at",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Last presence mark (timestamp, UTC)."
     },
     {
      "name": "local_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version counter of the offline client."
     },
     {
      "name": "location_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "locations",
       "field": "id"
      },
      "description": "Reference to locations.id."
     },
     {
      "name": "location_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced locations record when this row was written."
     },
     {
      "name": "net_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Net amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "notes",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Free-text note entered by the farm."
     },
     {
      "name": "origin_salary_modificator_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a origin salary modificator record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "origin_salary_modificator_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a origin salary modificator type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "origin_salary_modificator_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced origin salary modificator type record when this row was written."
     },
     {
      "name": "origin_salary_modificator_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced origin salary modificator record when this row was written."
     },
     {
      "name": "package_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "package_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced package record when this row was written."
     },
     {
      "name": "pallet_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pallet record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pallet_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pallet record when this row was written."
     },
     {
      "name": "pick_technique_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "pick_technique_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced pick technique record when this row was written."
     },
     {
      "name": "plant_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "plants",
       "field": "id"
      },
      "description": "Reference to plants.id."
     },
     {
      "name": "plant_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced plants record when this row was written."
     },
     {
      "name": "rate_assignment_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_assignment_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate assignment record when this row was written."
     },
     {
      "name": "rate_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "rate_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced rate record when this row was written."
     },
     {
      "name": "registration_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "When the record was registered (timestamp, UTC)."
     },
     {
      "name": "row_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a row record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "row_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced row record when this row was written."
     },
     {
      "name": "sales_order_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a sales order record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "sales_order_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced sales order record when this row was written."
     },
     {
      "name": "seedling_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "seedling_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced seedling type record when this row was written."
     },
     {
      "name": "seedlings_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Seedlings amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "start_day_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Start of work, minutes after midnight of work_date in the farm time zone."
     },
     {
      "name": "start_time",
      "type": "timestamp",
      "format": "ISO 8601 date and time in UTC, ending with Z",
      "nullable": true,
      "description": "Start (timestamp, UTC)."
     },
     {
      "name": "supervisor_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "supervisor_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "tare_amount",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Tare amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "task_assignment_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a task assignment record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "task_assignment_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task assignment record when this row was written."
     },
     {
      "name": "task_execution_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_executions",
       "field": "id"
      },
      "description": "Reference to task_executions.id."
     },
     {
      "name": "task_execution_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_executions record when this row was written."
     },
     {
      "name": "task_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "tasks",
       "field": "id"
      },
      "description": "Reference to tasks.id."
     },
     {
      "name": "task_type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "task_types",
       "field": "id"
      },
      "description": "Reference to task_types.id."
     },
     {
      "name": "task_type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced task_types record when this row was written."
     },
     {
      "name": "task_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced tasks record when this row was written."
     },
     {
      "name": "team_entry_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a team entry record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "team_key",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "Team key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "time_change_hours",
      "type": "integer",
      "format": "whole number",
      "unit": "hours",
      "nullable": true,
      "description": "Time change hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "time_change_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Time change minutes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "time_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a time record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "time_source",
      "type": "string",
      "format": "UTF-8 text",
      "nullable": true,
      "description": "global = time entered for the whole crew; individual = for one worker."
     },
     {
      "name": "type_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "worker_activity_types",
       "field": "id"
      },
      "description": "Reference to worker_activity_types.id."
     },
     {
      "name": "type_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced worker_activity_types record when this row was written."
     },
     {
      "name": "unit_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a unit record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "unit_value_divider",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Unit value divider (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     {
      "name": "unit_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced unit record when this row was written."
     },
     {
      "name": "variety_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "varieties",
       "field": "id"
      },
      "description": "Reference to varieties.id."
     },
     {
      "name": "variety_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced varieties record when this row was written."
     },
     {
      "name": "work_date",
      "type": "date",
      "format": "ISO 8601 calendar date YYYY-MM-DD",
      "nullable": true,
      "description": "Working day the record belongs to (YYYY-MM-DD, farm day)."
     },
     {
      "name": "work_session_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "work_sessions",
       "field": "id"
      },
      "description": "Reference to work_sessions.id."
     },
     {
      "name": "work_session_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced work_sessions record when this row was written."
     },
     {
      "name": "worker_function_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "description": "Reference to a worker function record (a Service dictionary or another module; not included in this export)."
     },
     {
      "name": "worker_function_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced worker function record when this row was written."
     },
     {
      "name": "worker_id",
      "type": "uuid",
      "format": "UUID, lower case",
      "nullable": true,
      "foreignKey": {
       "entity": "users",
       "field": "id"
      },
      "description": "Reference to users.id."
     },
     {
      "name": "worker_ver",
      "type": "integer",
      "format": "whole number",
      "nullable": true,
      "description": "Version (ver) of the referenced users record when this row was written."
     },
     {
      "name": "working_days",
      "type": "integer",
      "format": "whole number",
      "unit": "days",
      "nullable": true,
      "description": "Working days."
     },
     {
      "name": "working_hours",
      "type": "integer",
      "format": "whole number",
      "unit": "hours",
      "nullable": true,
      "description": "Worked time in whole hours as stored (working_minutes is the exact value)."
     },
     {
      "name": "working_minutes",
      "type": "integer",
      "format": "whole number",
      "unit": "minutes",
      "nullable": true,
      "description": "Worked time in minutes (end minus start minus break)."
     }
    ],
    "rowJsonSchema": {
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "title": "worker_activities (history row)",
     "type": "object",
     "additionalProperties": false,
     "required": [
      "id",
      "ver",
      "deleted",
      "created_at",
      "created_by_id",
      "aisle_id",
      "aisle_side",
      "aisle_ver",
      "assignment_source",
      "break_day_minutes",
      "break_minutes",
      "break_time",
      "bunches_amount",
      "cage_id",
      "cage_ver",
      "date_of_execution",
      "end_day_minutes",
      "end_time",
      "execution_mode_id",
      "execution_mode_ver",
      "from_transaction_id",
      "from_transaction_ver",
      "full_value",
      "gross_amount",
      "group_id",
      "group_ver",
      "hourly_type_key",
      "insert_method_id",
      "insert_method_ver",
      "is_invalid",
      "last_present_at",
      "local_ver",
      "location_id",
      "location_ver",
      "net_amount",
      "notes",
      "origin_salary_modificator_id",
      "origin_salary_modificator_type_id",
      "origin_salary_modificator_type_ver",
      "origin_salary_modificator_ver",
      "package_id",
      "package_ver",
      "pallet_id",
      "pallet_ver",
      "pick_technique_id",
      "pick_technique_ver",
      "plant_id",
      "plant_ver",
      "rate_assignment_id",
      "rate_assignment_ver",
      "rate_id",
      "rate_ver",
      "registration_time",
      "row_id",
      "row_ver",
      "sales_order_id",
      "sales_order_ver",
      "seedling_type_id",
      "seedling_type_ver",
      "seedlings_amount",
      "start_day_minutes",
      "start_time",
      "supervisor_id",
      "supervisor_ver",
      "tare_amount",
      "task_assignment_id",
      "task_assignment_ver",
      "task_execution_id",
      "task_execution_ver",
      "task_id",
      "task_type_id",
      "task_type_ver",
      "task_ver",
      "team_entry_id",
      "team_key",
      "time_change_hours",
      "time_change_minutes",
      "time_id",
      "time_source",
      "type_id",
      "type_ver",
      "unit_id",
      "unit_value_divider",
      "unit_ver",
      "variety_id",
      "variety_ver",
      "work_date",
      "work_session_id",
      "work_session_ver",
      "worker_function_id",
      "worker_function_ver",
      "worker_id",
      "worker_ver",
      "working_days",
      "working_hours",
      "working_minutes"
     ],
     "properties": {
      "id": {
       "type": "string",
       "format": "uuid",
       "description": "Identifier of the record (UUID). The same in every version of the record."
      },
      "ver": {
       "type": "integer",
       "description": "Number of this version. (id, ver) identifies one row of the history."
      },
      "deleted": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = this version deleted the record. Empty or false = a live version."
      },
      "created_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When this version was written (UTC)."
      },
      "created_by_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Person who wrote this version (users.id)."
      },
      "aisle_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a aisle record (a Service dictionary or another module; not included in this export)."
      },
      "aisle_side": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Aisle side (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "aisle_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced aisle record when this row was written."
      },
      "assignment_source": {
       "type": [
        "string",
        "null"
       ],
       "description": "How the worker was assigned to the task."
      },
      "break_day_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Break start, minutes after midnight (legacy, usually empty). Unit: minutes."
      },
      "break_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Break length in minutes. Unit: minutes."
      },
      "break_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Break time (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "bunches_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Bunches amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "cage_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a cage record (a Service dictionary or another module; not included in this export)."
      },
      "cage_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced cage record when this row was written."
      },
      "date_of_execution": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Day and time of the work (timestamp, UTC)."
      },
      "end_day_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "End of work, minutes after midnight of work_date in the farm time zone (more than 1440 when work ends after midnight). Unit: minutes."
      },
      "end_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "End (timestamp, UTC)."
      },
      "execution_mode_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a execution mode record (a Service dictionary or another module; not included in this export)."
      },
      "execution_mode_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced execution mode record when this row was written."
      },
      "from_transaction_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a from transaction record (a Service dictionary or another module; not included in this export)."
      },
      "from_transaction_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced from transaction record when this row was written."
      },
      "full_value": {
       "type": [
        "number",
        "null"
       ],
       "description": "Value of the record (piecework) as stored."
      },
      "gross_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Gross amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "group_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a group record (a Service dictionary or another module; not included in this export)."
      },
      "group_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced group record when this row was written."
      },
      "hourly_type_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "time-start = work started and still open; time-end = start and end recorded; presence = presence mark; time-break = break."
      },
      "insert_method_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a insert method record (a Service dictionary or another module; not included in this export)."
      },
      "insert_method_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced insert method record when this row was written."
      },
      "is_invalid": {
       "type": [
        "boolean",
        "null"
       ],
       "description": "true = record marked invalid."
      },
      "last_present_at": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Last presence mark (timestamp, UTC)."
      },
      "local_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version counter of the offline client."
      },
      "location_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to locations.id."
      },
      "location_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced locations record when this row was written."
      },
      "net_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Net amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "notes": {
       "type": [
        "string",
        "null"
       ],
       "description": "Free-text note entered by the farm."
      },
      "origin_salary_modificator_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a origin salary modificator record (a Service dictionary or another module; not included in this export)."
      },
      "origin_salary_modificator_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a origin salary modificator type record (a Service dictionary or another module; not included in this export)."
      },
      "origin_salary_modificator_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced origin salary modificator type record when this row was written."
      },
      "origin_salary_modificator_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced origin salary modificator record when this row was written."
      },
      "package_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a package record (a Service dictionary or another module; not included in this export)."
      },
      "package_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced package record when this row was written."
      },
      "pallet_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pallet record (a Service dictionary or another module; not included in this export)."
      },
      "pallet_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pallet record when this row was written."
      },
      "pick_technique_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a pick technique record (a Service dictionary or another module; not included in this export)."
      },
      "pick_technique_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced pick technique record when this row was written."
      },
      "plant_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to plants.id."
      },
      "plant_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced plants record when this row was written."
      },
      "rate_assignment_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate assignment record (a Service dictionary or another module; not included in this export)."
      },
      "rate_assignment_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate assignment record when this row was written."
      },
      "rate_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a rate record (a Service dictionary or another module; not included in this export)."
      },
      "rate_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced rate record when this row was written."
      },
      "registration_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "When the record was registered (timestamp, UTC)."
      },
      "row_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a row record (a Service dictionary or another module; not included in this export)."
      },
      "row_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced row record when this row was written."
      },
      "sales_order_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a sales order record (a Service dictionary or another module; not included in this export)."
      },
      "sales_order_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced sales order record when this row was written."
      },
      "seedling_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a seedling type record (a Service dictionary or another module; not included in this export)."
      },
      "seedling_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced seedling type record when this row was written."
      },
      "seedlings_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Seedlings amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "start_day_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Start of work, minutes after midnight of work_date in the farm time zone. Unit: minutes."
      },
      "start_time": {
       "type": [
        "string",
        "null"
       ],
       "format": "date-time",
       "description": "Start (timestamp, UTC)."
      },
      "supervisor_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "supervisor_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "tare_amount": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Tare amount (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "task_assignment_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a task assignment record (a Service dictionary or another module; not included in this export)."
      },
      "task_assignment_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task assignment record when this row was written."
      },
      "task_execution_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_executions.id."
      },
      "task_execution_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_executions record when this row was written."
      },
      "task_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to tasks.id."
      },
      "task_type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to task_types.id."
      },
      "task_type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced task_types record when this row was written."
      },
      "task_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced tasks record when this row was written."
      },
      "team_entry_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a team entry record (a Service dictionary or another module; not included in this export)."
      },
      "team_key": {
       "type": [
        "string",
        "null"
       ],
       "description": "Team key (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "time_change_hours": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Time change hours (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: hours."
      },
      "time_change_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Time change minutes (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms). Unit: minutes."
      },
      "time_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a time record (a Service dictionary or another module; not included in this export)."
      },
      "time_source": {
       "type": [
        "string",
        "null"
       ],
       "description": "global = time entered for the whole crew; individual = for one worker."
      },
      "type_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to worker_activity_types.id."
      },
      "type_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced worker_activity_types record when this row was written."
      },
      "unit_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a unit record (a Service dictionary or another module; not included in this export)."
      },
      "unit_value_divider": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Unit value divider (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
      },
      "unit_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced unit record when this row was written."
      },
      "variety_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to varieties.id."
      },
      "variety_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced varieties record when this row was written."
      },
      "work_date": {
       "type": [
        "string",
        "null"
       ],
       "format": "date",
       "description": "Working day the record belongs to (YYYY-MM-DD, farm day)."
      },
      "work_session_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to work_sessions.id."
      },
      "work_session_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced work_sessions record when this row was written."
      },
      "worker_function_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to a worker function record (a Service dictionary or another module; not included in this export)."
      },
      "worker_function_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced worker function record when this row was written."
      },
      "worker_id": {
       "type": [
        "string",
        "null"
       ],
       "format": "uuid",
       "description": "Reference to users.id."
      },
      "worker_ver": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Version (ver) of the referenced users record when this row was written."
      },
      "working_days": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Working days. Unit: days."
      },
      "working_hours": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Worked time in whole hours as stored (working_minutes is the exact value). Unit: hours."
      },
      "working_minutes": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Worked time in minutes (end minus start minus break). Unit: minutes."
      }
     }
    }
   }
  },
  {
   "name": "worker_activity_types",
   "description": "Dictionary of work-time record types shared by all farms (no farm data). Needed to read worker_activities.type_id.",
   "termsScheduleCategories": [
    "A10"
   ],
   "scope": "shared",
   "files": {
    "csv": "csv/worker_activity_types.csv",
    "json": "json/worker_activity_types.json",
    "historyCsv": null,
    "historyJson": null
   },
   "primaryKey": [
    "id"
   ],
   "fields": [
    {
     "name": "id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": false,
     "description": "Identifier of the record (UUID). The same in every version of the record."
    },
    {
     "name": "ver",
     "type": "integer",
     "format": "whole number",
     "nullable": false,
     "description": "Number of the current version of the record. Grows with every change."
    },
    {
     "name": "created_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the record was first created (UTC)."
    },
    {
     "name": "created_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who created the record (users.id)."
    },
    {
     "name": "updated_at",
     "type": "timestamp",
     "format": "ISO 8601 date and time in UTC, ending with Z",
     "nullable": true,
     "description": "When the current version was written (UTC)."
    },
    {
     "name": "updated_by_id",
     "type": "uuid",
     "format": "UUID, lower case",
     "nullable": true,
     "foreignKey": {
      "entity": "users",
      "field": "id"
     },
     "description": "Person who wrote the current version (users.id)."
    },
    {
     "name": "based_on_value",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Based on value (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "day_of_execution",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Day of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "every_timeframe",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Every timeframe (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_editable",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is editable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_manual_addition",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is manual addition (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_picking",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is picking (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_piecework",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "true = piecework."
    },
    {
     "name": "is_planting",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is planting (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "is_sorting",
     "type": "boolean",
     "format": "true or false",
     "nullable": true,
     "description": "Is sorting (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "key",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Machine key of the record."
    },
    {
     "name": "min_value_trigger",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Min value trigger (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "multiplier",
     "type": "integer",
     "format": "whole number",
     "nullable": true,
     "description": "Multiplier (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
    },
    {
     "name": "name",
     "type": "string",
     "format": "UTF-8 text",
     "nullable": true,
     "description": "Name as entered by the farm."
    }
   ],
   "rowJsonSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "worker_activity_types",
    "type": "object",
    "additionalProperties": false,
    "required": [
     "id",
     "ver",
     "created_at",
     "created_by_id",
     "updated_at",
     "updated_by_id",
     "based_on_value",
     "day_of_execution",
     "every_timeframe",
     "is_editable",
     "is_manual_addition",
     "is_picking",
     "is_piecework",
     "is_planting",
     "is_sorting",
     "key",
     "min_value_trigger",
     "multiplier",
     "name"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the record (UUID). The same in every version of the record."
     },
     "ver": {
      "type": "integer",
      "description": "Number of the current version of the record. Grows with every change."
     },
     "created_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the record was first created (UTC)."
     },
     "created_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who created the record (users.id)."
     },
     "updated_at": {
      "type": [
       "string",
       "null"
      ],
      "format": "date-time",
      "description": "When the current version was written (UTC)."
     },
     "updated_by_id": {
      "type": [
       "string",
       "null"
      ],
      "format": "uuid",
      "description": "Person who wrote the current version (users.id)."
     },
     "based_on_value": {
      "type": [
       "string",
       "null"
      ],
      "description": "Based on value (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "day_of_execution": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Day of execution (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "every_timeframe": {
      "type": [
       "string",
       "null"
      ],
      "description": "Every timeframe (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_editable": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is editable (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_manual_addition": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is manual addition (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_picking": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is picking (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_piecework": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "true = piecework."
     },
     "is_planting": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is planting (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "is_sorting": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Is sorting (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "key": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine key of the record."
     },
     "min_value_trigger": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Min value trigger (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "multiplier": {
      "type": [
       "integer",
       "null"
      ],
      "description": "Multiplier (stored value; used mainly by other Berrini modules, usually empty for Free Plan farms)."
     },
     "name": {
      "type": [
       "string",
       "null"
      ],
      "description": "Name as entered by the farm."
     }
    }
   }
  }
 ]
}
