# com.pimstash.carcare.vehicle

> 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.vehicle)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.vehicle/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.carcare.vehicle/examples)

## Definitions

### `com.pimstash.carcare.vehicle#link`

**Type**: `object`

A labelled link: a manual, a parts page, a forum thread.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `label` | `string` | No |  |
| `url` | `string` (uri) | Yes |  |

### `com.pimstash.carcare.vehicle`

**Type**: `record`

A Vehicle in Car Care: one car, truck or bike whose maintenance is tracked. Its Service Items reference it by record key.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cover` | `blob` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `engine` | `string` | No |  |
| `links` | `array` | No |  |
| `make` | `string` | No |  |
| `model` | `string` | No |  |
| `name` | `string` | Yes |  |
| `notes` | `string` | No |  |
| `odometerAt` | `string` (datetime) | No | The calendar date of the reading, as a datetime at UTC midnight read in UTC. |
| `odometerMeters` | `integer` | Yes | Latest odometer reading, in whole meters. |
| `updatedAt` | `string` (datetime) | No |  |
| `vin` | `string` | No | Vehicle identification number. The Car Care App keeps it on the device and never writes it here; a reader should expect it absent. |
| `year` | `integer` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "link": {
      "description": "A labelled link: a manual, a parts page, a forum thread.",
      "properties": {
        "label": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "maxLength": 3000,
          "type": "string"
        }
      },
      "required": [
        "url"
      ],
      "type": "object"
    },
    "main": {
      "description": "A Vehicle in Car Care: one car, truck or bike whose maintenance is tracked. Its Service Items reference it by record key.",
      "key": "any",
      "record": {
        "properties": {
          "cover": {
            "accept": [
              "image/jpeg",
              "image/webp",
              "image/avif"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "engine": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "links": {
            "items": {
              "ref": "#link",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "make": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "model": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "name": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "odometerAt": {
            "description": "The calendar date of the reading, as a datetime at UTC midnight read in UTC.",
            "format": "datetime",
            "type": "string"
          },
          "odometerMeters": {
            "description": "Latest odometer reading, in whole meters.",
            "minimum": 0,
            "type": "integer"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "vin": {
            "description": "Vehicle identification number. The Car Care App keeps it on the device and never writes it here; a reader should expect it absent.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "year": {
            "maximum": 9999,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "name",
          "odometerMeters",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pimstash.carcare.vehicle",
  "lexicon": 1
}
```
