{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/timesheet_entry/v1.json",
  "title": "timesheet_entry contract v1",
  "type": "object",
  "required": [
    "financial_period",
    "hours",
    "occurred_at",
    "worker"
  ],
  "properties": {
    "hours": {
      "type": "number",
      "description": "hours worked in the entry",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "hours",
      "x-demiton-type": "decimal"
    },
    "status": {
      "type": "string",
      "description": "approval state of the entry",
      "x-demiton-requiredness": "optional"
    },
    "worker": {
      "type": "string",
      "description": "the person whose hours these are",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "project": {
      "type": "string",
      "description": "the project/job the hours were worked on",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "end_time": {
      "type": "string",
      "description": "the entry's end time",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "local time of day"
    },
    "cost_code": {
      "type": "string",
      "description": "cost code / work activity the hours are coded to",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "task_name": {
      "type": "string",
      "description": "the task/activity the hours were worked on",
      "x-demiton-requiredness": "optional"
    },
    "work_type": {
      "type": "string",
      "description": "the vendor/tenant pay-category or work-type label",
      "x-demiton-requiredness": "tenant-specific"
    },
    "start_time": {
      "type": "string",
      "description": "the entry's start time",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "local time of day"
    },
    "occurred_at": {
      "type": "string",
      "description": "the day the entry is for",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "day",
      "format": "date",
      "x-demiton-type": "date"
    },
    "financial_period": {
      "type": "string",
      "description": "the pay period the hours are attributed to",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    }
  },
  "x-demiton-register-type": "timesheet_entry",
  "x-demiton-contract-version": "1.0.3",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "project",
      "requirement": "optional",
      "role": "subject"
    },
    {
      "axis": "financial_period",
      "requirement": "required",
      "role": "context"
    },
    {
      "axis": "worker",
      "requirement": "required",
      "role": "subject"
    },
    {
      "axis": "cost_code",
      "requirement": "optional",
      "role": "context"
    }
  ],
  "x-demiton-measures": [
    {
      "key": "hours",
      "accumulation": "additive",
      "dtype": "decimal",
      "unit": "hours"
    }
  ],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "Fair Work Act 2009 (Cth)",
        "title": "Fair Work Act 2009 - employee records and National Employment Standards",
        "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.31, 3.33, 3.34, 3.42-3.44",
        "region": "Australia",
        "edition": "compilation 2026-06-20",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Payday Super (ATO)",
        "title": "Single Touch Payroll reporting under Payday Super",
        "access": "public_summary",
        "region": "Australia",
        "edition": "from 1 Jul 2026",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Single Touch Payroll Phase 2 (ATO)",
        "title": "Single Touch Payroll Phase 2 employer reporting guidelines",
        "access": "public_summary",
        "region": "Australia",
        "edition": "Phase 2 (mandatory from 1 Jan 2022)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 30414:2025",
        "title": "Human resource management - Requirements and recommendations for human capital reporting and disclosure",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "2nd ed. 2025 (supersedes ISO 30414:2018)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Employment Leave Act 2026 (NZ)",
        "title": "Employment Leave Act 2026 (2026 No 48)",
        "access": "full_text_verified",
        "clause": "ss.6-8, 127",
        "region": "New Zealand",
        "edition": "assent 6 Aug 2026; not yet in force",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Holidays Act 2003 (NZ)",
        "title": "Holidays Act 2003 (2003 No 129) - holiday and leave record",
        "access": "full_text_verified",
        "clause": "s.81(2)",
        "region": "New Zealand",
        "edition": "version as at 20 Dec 2023 (repealed on commencement of Employment Leave Act 2026)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Tax Administration Act 1994 (NZ) Schedule 4",
        "title": "Reporting of employment income information (payday filing)",
        "access": "full_text_verified",
        "clause": "Schedule 4",
        "region": "New Zealand",
        "edition": "version as at 1 Jul 2026",
        "checked_on": "2026-09-14"
      },
      {
        "code": "HMRC Real Time Information (RTI)",
        "title": "PAYE Real Time Information - Full Payment Submission and Employer Payment Summary",
        "access": "public_summary",
        "region": "United Kingdom",
        "edition": "guidance updated 6 Apr 2026",
        "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 from 1 Jan 2024",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Timesheet submissions, with hours by date and pay category.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/timesheet_entry/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}