{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-document-schema.json",
  "title": "Document",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-documents-api-openapi.yml#/components/schemas/Document",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "entityType": {
      "type": "string"
    },
    "entityId": {
      "type": "integer"
    },
    "originalFilename": {
      "type": "string"
    },
    "storagePath": {
      "type": "string"
    },
    "mimeType": {
      "type": "string"
    },
    "fileSize": {
      "type": "integer"
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        }
      ]
    }
  },
  "required": [
    "id",
    "entityType",
    "entityId",
    "originalFilename",
    "storagePath",
    "mimeType",
    "fileSize",
    "category",
    "description",
    "createdAt",
    "updatedAt"
  ]
}