{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/extracker/json-schema/extracker-tmtag-schema.json",
  "title": "TMTag",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/extracker-openapi.json#/components/schemas/TMTag",
  "properties": {
    "id": {
      "type": "number",
      "format": "double"
    },
    "projectId": {
      "type": "number",
      "format": "double"
    },
    "companyId": {
      "type": "number",
      "format": "double",
      "description": "The id of the company who created the T&M Tag record."
    },
    "creatorId": {
      "type": "number",
      "format": "double",
      "description": "The id of the user who created the T&M Tag record."
    },
    "number": {
      "type": "string",
      "description": "The T&M Tag number."
    },
    "paddedTagNumber": {
      "type": "string",
      "description": "The T&M Tag \"padded\" or full number as displayed in app clients and PDF documents, ex. \"EX00234\""
    },
    "title": {
      "type": "string",
      "description": "The T&M Tag title."
    },
    "workDescription": {
      "type": "string"
    },
    "dateOfWorkPerformed": {
      "type": "string",
      "format": "date-time"
    },
    "dateOfWorkPerformedAdditional": {
      "items": {
        "type": "string",
        "format": "date-time"
      },
      "type": "array"
    },
    "customerReferenceNumber": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "signedAt": {
      "type": "string",
      "format": "date-time"
    },
    "customerSignerName": {
      "type": "string"
    },
    "contractorSignedAt": {
      "type": "string",
      "format": "date-time"
    },
    "subContractorPrintedName": {
      "type": "string"
    },
    "dateSubmitted": {
      "type": "string",
      "format": "date-time"
    },
    "attachmentSignedUrl": {
      "type": "string"
    },
    "changeNotificationId": {
      "type": "number",
      "format": "double"
    },
    "totalHoursST": {
      "type": "number",
      "format": "double",
      "description": "Sum of straight/standard time labor hours for the T&M Tag."
    },
    "totalHoursOT": {
      "type": "number",
      "format": "double",
      "description": "Sum of overtime time labor hours for the T&M Tag."
    },
    "totalHoursDT": {
      "type": "number",
      "format": "double",
      "description": "Sum of double time labor hours for the T&M Tag."
    },
    "totalHoursPOT": {
      "type": "number",
      "format": "double",
      "description": "Sum of premium overtime time labor hours for the T&M Tag."
    },
    "totalHoursPDT": {
      "type": "number",
      "format": "double",
      "description": "Sum of premium double time labor hours for the T&M Tag."
    },
    "totalHours": {
      "type": "number",
      "format": "double",
      "description": "Sum of all labor hours for the T&M Tag regardless of unit type."
    },
    "costCode": {
      "type": "string",
      "description": "T&M Tag Cost Code"
    }
  },
  "required": [
    "id",
    "projectId",
    "companyId",
    "creatorId",
    "number",
    "paddedTagNumber",
    "title",
    "workDescription",
    "dateOfWorkPerformed",
    "dateOfWorkPerformedAdditional",
    "customerReferenceNumber",
    "status",
    "updatedAt",
    "createdAt",
    "signedAt",
    "dateSubmitted",
    "attachmentSignedUrl"
  ],
  "type": "object",
  "additionalProperties": false
}