{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/site_activity/v1.json",
  "title": "site_activity contract v1",
  "type": "object",
  "required": [
    "occurred_on",
    "project"
  ],
  "properties": {
    "unit": {
      "type": "string",
      "description": "the unit of measure for `quantity`",
      "x-demiton-requiredness": "optional"
    },
    "asset": {
      "type": "string",
      "description": "the plant/equipment used",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "hours": {
      "type": "number",
      "description": "labour hours attributable to this activity",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "hours",
      "x-demiton-type": "decimal"
    },
    "worker": {
      "type": "string",
      "description": "the worker present or working",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "project": {
      "type": "string",
      "description": "the site/project the activity occurred on",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "activity": {
      "type": "string",
      "description": "what work was performed",
      "x-demiton-requiredness": "optional"
    },
    "quantity": {
      "type": "number",
      "description": "measured work output for the record",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "the `unit` value",
      "x-demiton-type": "decimal"
    },
    "occurred_on": {
      "type": "string",
      "description": "the day the activity is attributed to",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "financial_period": {
      "type": "string",
      "description": "the claim/accounting period the activity falls in",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    }
  },
  "x-demiton-register-type": "site_activity",
  "x-demiton-contract-version": "1.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "project",
      "requirement": "required",
      "role": "subject"
    },
    {
      "axis": "worker",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "asset",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "financial_period",
      "requirement": "optional",
      "role": "context"
    }
  ],
  "x-demiton-measures": [
    {
      "key": "hours",
      "accumulation": "additive",
      "dtype": "decimal",
      "unit": "hours"
    }
  ],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "AS/NZS ISO 45001:2018",
        "title": "Occupational health and safety management systems",
        "access": "paywalled_secondary",
        "clause": "8.1",
        "region": "Australia",
        "edition": "2018 incl. Amd 1:2024",
        "checked_on": "2026-09-14"
      },
      {
        "code": "AS/NZS ISO 9001:2016",
        "title": "Quality management systems - Requirements",
        "access": "paywalled_secondary",
        "clause": "7.5",
        "region": "Australia",
        "edition": "2016 (adopts ISO 9001:2015)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Fair Work Act 2009 (Cth)",
        "title": "Fair Work Act 2009",
        "access": "full_text_verified",
        "clause": "s 535",
        "region": "Australia",
        "edition": "compilation 2026-07-07",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Fair Work Regulations 2009 (Cth)",
        "title": "Fair Work Regulations 2009 - employee record content",
        "access": "full_text_verified",
        "clause": "regs 3.33, 3.34",
        "region": "Australia",
        "edition": "compilation 2026-06-20",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 45001:2018",
        "title": "Occupational health and safety management systems",
        "access": "paywalled_secondary",
        "clause": "8.1",
        "region": "International",
        "edition": "2018 incl. Amd 1:2024",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Employment Relations Act 2000 (NZ)",
        "title": "Employment Relations Act 2000 - wages and time record",
        "access": "public_summary",
        "clause": "s 130",
        "region": "New Zealand",
        "edition": "as amended",
        "checked_on": "2026-09-14"
      },
      {
        "code": "SI 1998/1833",
        "title": "Working Time Regulations 1998",
        "access": "full_text_verified",
        "clause": "reg 9",
        "region": "United Kingdom",
        "edition": "as amended by SI 2023/1426",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Daily site activity: crew, plant and progress.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/site_activity/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}