com.pimstash.carcare.serviceItem

A Service Item in Car Care: one maintenance task on a Vehicle, either scheduled by distance and/or months or done once. Its Work references it by record key.

Details · record, key any
Kindrecord
Record keyany
Authoritycarcare.pimstash.com
Indexed
cid bafyreifbpmkoif4lr3xuqvfmryknvghgi5ae4lzb4odmdttr5abmgcms7a

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Service Item in Car Care: one maintenance task on a Vehicle, either scheduled by distance and/or months or done once. Its Work references it by record key.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "estimateMinutes": {
            "description": "Estimated time to do the work, in whole minutes.",
            "minimum": 0,
            "type": "integer"
          },
          "intervalMeters": {
            "description": "Repeat distance, in whole meters.",
            "minimum": 1,
            "type": "integer"
          },
          "intervalMonths": {
            "minimum": 1,
            "type": "integer"
          },
          "kind": {
            "description": "scheduled repeats by intervalMeters and/or intervalMonths; oneoff has neither interval.",
            "knownValues": [
              "scheduled",
              "oneoff"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "links": {
            "items": {
              "ref": "com.pimstash.carcare.vehicle#link",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "name": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "partsNeeded": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "spec": {
            "description": "Specifications: fluid grades, capacities, torque values.",
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "toolsNeeded": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "vehicle": {
            "description": "The record key of the com.pimstash.carcare.vehicle, in this same repository, this item belongs to.",
            "format": "record-key",
            "type": "string"
          }
        },
        "required": [
          "vehicle",
          "name",
          "kind",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pimstash.carcare.serviceItem",
  "lexicon": 1
}