{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-site-log-schema.json",
  "title": "SiteLog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-sitelogs-api-openapi.yml#/components/schemas/SiteLog",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "projectId": {
      "type": "integer"
    },
    "logDate": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "personnelCount": {
      "type": [
        "integer",
        "null"
      ]
    },
    "workPerformed": {
      "type": [
        "string",
        "null"
      ]
    },
    "materialsReceived": {
      "type": [
        "string",
        "null"
      ]
    },
    "visitorsOnSite": {
      "type": [
        "string",
        "null"
      ]
    },
    "issues": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "lat": {
      "type": [
        "number",
        "null"
      ]
    },
    "lng": {
      "type": [
        "number",
        "null"
      ]
    },
    "isReviewed": {
      "type": "boolean"
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "projectId",
    "logDate",
    "title",
    "notes",
    "personnelCount",
    "workPerformed",
    "materialsReceived",
    "visitorsOnSite",
    "issues",
    "tags",
    "lat",
    "lng",
    "isReviewed",
    "createdAt",
    "updatedAt"
  ]
}