# com.pimstash.stuff.location

> A Location in a Stuff Trove: a place Things are kept, in a tree of Locations, or the inside of a container Thing.

- Kind: record
- Record key: any
- Authority: stuff.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.stuff.location)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.stuff.location/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:kl7rkydjioe5qsucfce3uubx/com.pimstash.stuff.location/analytics)

## Record (`com.pimstash.stuff.location`)

Type: record · key any

### Properties

- `containerThing` (string · record-key): The record key of the com.pimstash.stuff.thing, in this same Space, this Location is the inside of ("Holds Things"); the Location then sits wherever that Thing is.
- `createdAt` (string · datetime, required)
- `geo` (ref)
  - Reference: `community.lexicon.location.geo`
- `name` (string, required)
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100
- `notes` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `parent` (string · record-key): The record key of the com.pimstash.stuff.location, in this same Space, this Location sits in. Ignored when containerThing is set.
- `photo` (blob)
  - Constraints: maxSize: 1000000, accept: image/jpeg, image/webp, image/avif
- `updatedAt` (string · datetime)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Location in a Stuff Trove: a place Things are kept, in a tree of Locations, or the inside of a container Thing.",
      "key": "any",
      "record": {
        "properties": {
          "containerThing": {
            "description": "The record key of the com.pimstash.stuff.thing, in this same Space, this Location is the inside of (\"Holds Things\"); the Location then sits wherever that Thing is.",
            "format": "record-key",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "geo": {
            "ref": "community.lexicon.location.geo",
            "type": "ref"
          },
          "name": {
            "maxGraphemes": 100,
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "notes": {
            "maxGraphemes": 1000,
            "maxLength": 10000,
            "type": "string"
          },
          "parent": {
            "description": "The record key of the com.pimstash.stuff.location, in this same Space, this Location sits in. Ignored when containerThing is set.",
            "format": "record-key",
            "type": "string"
          },
          "photo": {
            "accept": [
              "image/jpeg",
              "image/webp",
              "image/avif"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.pimstash.stuff.location",
  "lexicon": 1
}
```
