# to.atpota.garden.patch

> A garden on atpota.to: a grid of plots anyone can plant a flower in. atpota.to's community patches live in its own repo, one per season; anyone can keep their own garden in theirs, by convention at record key "self". Flowers point at it with a strong ref. It is open from opensAt (or createdAt, without one) until closesAt, if it has one.

- Kind: record
- Record key: any
- Authority: garden.atpota.to
- Lexicon: 1
- Published by [atpota.to](https://lexicon.garden/identity/did:plc:qntsxa2i4sb24noi45fx4np2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qntsxa2i4sb24noi45fx4np2/to.atpota.garden.patch)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qntsxa2i4sb24noi45fx4np2/to.atpota.garden.patch/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qntsxa2i4sb24noi45fx4np2/to.atpota.garden.patch/analytics)

## Record (`to.atpota.garden.patch`)

Type: record · key any

### Properties

- `closesAt` (string · datetime): Planting ends at this time; the flowers stay, pressed, in full bloom. Without it, the garden stays open.
- `cols` (integer, required): Plots across.
  - Constraints: minimum: 4, maximum: 24
- `createdAt` (string · datetime, required)
- `name` (string, required): What the garden is called, like "autumn 2026" or "dame's garden".
  - Constraints: maxLength: 400, maxGraphemes: 40
- `note` (string): A few words for visitors.
  - Constraints: maxLength: 1400, maxGraphemes: 140
- `opensAt` (string · datetime): Flowers can be planted from this time; without it, from createdAt.
- `planting` (string): How many flowers each account grows in the garden's open patches. "one": one each, staying in the plot it was planted in; planting again does nothing until it's dug up, and only an account's first flower shows. "move": one each, and planting again moves it (its newest flower shows). "many": as many as there are free plots. Without it, "one".
  - Constraints: knownValues: one | move | many
- `rows` (integer, required): Plots down.
  - Constraints: minimum: 2, maximum: 40
- `season` (string): For a seasonal patch.
  - Constraints: knownValues: spring | summer | autumn | winter

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "closesAt": {
            "description": "Planting ends at this time; the flowers stay, pressed, in full bloom. Without it, the garden stays open.",
            "format": "datetime",
            "type": "string"
          },
          "cols": {
            "description": "Plots across.",
            "maximum": 24,
            "minimum": 4,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "What the garden is called, like \"autumn 2026\" or \"dame's garden\".",
            "maxGraphemes": 40,
            "maxLength": 400,
            "type": "string"
          },
          "note": {
            "description": "A few words for visitors.",
            "maxGraphemes": 140,
            "maxLength": 1400,
            "type": "string"
          },
          "opensAt": {
            "description": "Flowers can be planted from this time; without it, from createdAt.",
            "format": "datetime",
            "type": "string"
          },
          "planting": {
            "description": "How many flowers each account grows in the garden's open patches. \"one\": one each, staying in the plot it was planted in; planting again does nothing until it's dug up, and only an account's first flower shows. \"move\": one each, and planting again moves it (its newest flower shows). \"many\": as many as there are free plots. Without it, \"one\".",
            "knownValues": [
              "one",
              "move",
              "many"
            ],
            "type": "string"
          },
          "rows": {
            "description": "Plots down.",
            "maximum": 40,
            "minimum": 2,
            "type": "integer"
          },
          "season": {
            "description": "For a seasonal patch.",
            "knownValues": [
              "spring",
              "summer",
              "autumn",
              "winter"
            ],
            "type": "string"
          }
        },
        "required": [
          "name",
          "cols",
          "rows",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A garden on atpota.to: a grid of plots anyone can plant a flower in. atpota.to's community patches live in its own repo, one per season; anyone can keep their own garden in theirs, by convention at record key \"self\". Flowers point at it with a strong ref. It is open from opensAt (or createdAt, without one) until closesAt, if it has one.",
  "id": "to.atpota.garden.patch",
  "lexicon": 1
}
```
