{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A private-ish bookmark marking a space the author has visited, written to the author's own repo. The record key matches the visited space's record key, so re-visiting overwrites the same record (one per space). Used to populate the author's 'boards you've visited' list quickly, ordered by lastVisited.",
      "key": "any",
      "record": {
        "properties": {
          "firstVisited": {
            "description": "When the author first visited this space. Preserved across re-visits.",
            "format": "datetime",
            "type": "string"
          },
          "lastVisited": {
            "description": "When the author most recently visited this space. Bumped on every recorded visit; the 'boards you've visited' list sorts by this.",
            "format": "datetime",
            "type": "string"
          },
          "space": {
            "description": "The visited space. Carries the full identity (owner DID + rkey + cid); the record key alone is only a dedup key.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "space",
          "firstVisited",
          "lastVisited"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.userinput.visited",
  "lexicon": 1
}
