{
  "lexicon": 1,
  "id": "app.sidetrail.walk",
  "defs": {
    "main": {
      "type": "record",
      "description": "a user's current walk state for a trail",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["trail", "visitedStops", "createdAt"],
        "properties": {
          "trail": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "the trail being walked"
          },
          "visitedStops": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "tid"
            },
            "description": "array of stop TIDs visited so far",
            "maxLength": 12
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "when the walk started"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime",
            "description": "when the walk was last updated"
          }
        }
      }
    }
  }
}
