{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/work_activity_categories/v1.json",
  "title": "work_activity_categories contract v1",
  "type": "object",
  "required": [
    "canonical_key",
    "label",
    "source_external_id",
    "work_activity_id"
  ],
  "properties": {
    "label": {
      "type": "string",
      "description": "human-readable work-activity name (the display name on the spine)",
      "x-demiton-requiredness": "required"
    },
    "job_task_no": {
      "type": "string",
      "description": "one BC `Job_Task_No` that maps to this slug — a **sample**, because the normalizer keeps only the first `task_no` seen per slug",
      "x-demiton-requiredness": "optional"
    },
    "canonical_key": {
      "type": "string",
      "description": "the canonical Level 1 work-activity slug (e.g. a work-type slug), the join key every consumer resolves against",
      "x-demiton-requiredness": "required"
    },
    "legal_entity_id": {
      "type": "integer",
      "description": "owning legal entity where the source is multi-company (BC company context)",
      "x-demiton-requiredness": "optional"
    },
    "work_activity_id": {
      "type": "integer",
      "description": "Demiton canonical `WORK_ACTIVITY` spine node this fact is about",
      "x-demiton-requiredness": "required"
    },
    "source_external_id": {
      "type": "string",
      "description": "the raw record identity in the producing system (today the slug itself)",
      "x-demiton-requiredness": "required"
    }
  },
  "x-demiton-register-type": "work_activity_categories",
  "x-demiton-contract-version": "1.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": []
  },
  "description": "Job tasks normalised to a standard work activity taxonomy: piling, anchors and so on.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/work_activity_categories/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}