# com.pimstash.carcare.work

> Work in Car Care: one time a Service Item was done. Its photos reference it by record key.

- Kind: record
- Record key: any
- Authority: carcare.pimstash.com
- Lexicon: 1
- Published by [lexicons.pimstash.com](https://lexicon.garden/identity/did:plc:kl7rkydjioe5qsucfce3uubx), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work/analytics)

## Record (`com.pimstash.carcare.work`)

Type: record · key any

### Properties

- `costMinor` (integer): Cost in the currency's minor unit (cents, pence, whole yen).
  - Constraints: minimum: 0
- `createdAt` (string · datetime, required)
- `currency` (string, required): ISO 4217 code the cost is in.
  - Constraints: minLength: 3, maxLength: 3
- `minutes` (integer): Time the Work took, in whole minutes.
  - Constraints: minimum: 0
- `notes` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `odometerMeters` (integer, required): Odometer reading at the Work, in whole meters.
  - Constraints: minimum: 0
- `parts` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `performedAt` (string · datetime, required): The calendar date of the Work, as a datetime at UTC midnight read in UTC.
- `serviceItem` (string · record-key, required): The record key of the com.pimstash.carcare.serviceItem, in this same repository, this Work was done for.
- `supplier` (string)
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `updatedAt` (string · datetime)

## Schema

```json
{
  "$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
}
```
