# com.pimstash.carcare.work

> Published by [lexicons.pimstash.com](https://lexicon.garden/identity/did:plc:kl7rkydjioe5qsucfce3uubx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.work/examples)

## Definitions

### `com.pimstash.carcare.work`

**Type**: `record`

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

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `costMinor` | `integer` | No | Cost in the currency's minor unit (cents, pence, whole yen). |
| `createdAt` | `string` (datetime) | Yes |  |
| `currency` | `string` | Yes | ISO 4217 code the cost is in. |
| `minutes` | `integer` | No | Time the Work took, in whole minutes. |
| `notes` | `string` | No |  |
| `odometerMeters` | `integer` | Yes | Odometer reading at the Work, in whole meters. |
| `parts` | `string` | No |  |
| `performedAt` | `string` (datetime) | Yes | The calendar date of the Work, as a datetime at UTC midnight read in UTC. |
| `serviceItem` | `string` (record-key) | Yes | The record key of the com.pimstash.carcare.serviceItem, in this same repository, this Work was done for. |
| `supplier` | `string` | No |  |
| `updatedAt` | `string` (datetime) | No |  |

## Raw 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
}
```
