{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Work in Car Care: one time a Service Item was done. Its photos reference it by record key.",
      "key": "any",
      "record": {
        "properties": {
          "costMinor": {
            "description": "Cost in the currency's minor unit (cents, pence, whole yen).",
            "minimum": 0,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "currency": {
            "description": "ISO 4217 code the cost is in.",
            "maxLength": 3,
            "minLength": 3,
            "type": "string"
          },
          "minutes": {
            "description": "Time the Work took, in whole minutes.",
            "minimum": 0,
            "type": "integer"
          },
          "notes": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "odometerMeters": {
            "description": "Odometer reading at the Work, in whole meters.",
            "minimum": 0,
            "type": "integer"
          },
          "parts": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "performedAt": {
            "description": "The calendar date of the Work, as a datetime at UTC midnight read in UTC.",
            "format": "datetime",
            "type": "string"
          },
          "serviceItem": {
            "description": "The record key of the com.pimstash.carcare.serviceItem, in this same repository, this Work was done for.",
            "format": "record-key",
            "type": "string"
          },
          "supplier": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "serviceItem",
          "performedAt",
          "odometerMeters",
          "currency",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pimstash.carcare.work",
  "lexicon": 1
}
