{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/carboncuretechnologies/json-schema/carboncuretechnologies-upload-log-schema.json",
  "title": "UploadLog",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/carboncuretechnologies-mycc-mydata-api-openapi.yml#/components/schemas/UploadLog",
  "required": [
    "fileName",
    "uploadType"
  ],
  "type": "object",
  "properties": {
    "uploadLogId": {
      "type": "integer",
      "format": "int32"
    },
    "fileName": {
      "minLength": 1,
      "type": "string"
    },
    "uploadType": {
      "$ref": "#/$defs/UploadType"
    },
    "uploader": {
      "type": [
        "string",
        "null"
      ]
    },
    "userId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "corporationId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "divisionId": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "uploadTimestamp": {
      "type": "string",
      "format": "date-time"
    },
    "ingestionError": {
      "type": [
        "string",
        "null"
      ]
    },
    "dataStart": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "dataEnd": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "mixCodes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "UploadType": {
      "enum": [
        "Batching",
        "Qc",
        "Calorimetry"
      ],
      "type": "string"
    }
  }
}