{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A visit to a US state or DC. Records the subdivision visited, the city and the place, and optionally the date.",
      "key": "tid",
      "record": {
        "properties": {
          "city": {
            "description": "City visited within the subdivision.",
            "maxLength": 100,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "note": {
            "description": "The user's note about this visit.",
            "maxLength": 3000,
            "type": "string"
          },
          "place": {
            "description": "The place visited, when known. Inline place object — no external fetch required.",
            "ref": "social.passports.place",
            "type": "ref"
          },
          "subdivision": {
            "description": "ISO 3166-2 subdivision code, e.g. 'US-CA', 'US-NY', 'US-HI'.",
            "maxLength": 6,
            "type": "string"
          },
          "visitDate": {
            "description": "Date of visit in YYYY-MM-DD format. Nullable — user may not know the exact date.",
            "maxLength": 10,
            "type": "string"
          }
        },
        "required": [
          "subdivision",
          "city",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "social.passports.unitedStates.visit",
  "lexicon": 1
}
