# social.passports.fiftyStates.visit

> Published by [passports.social](https://lexicon.garden/identity/did:plc:ssdgllkzfwekkpmu7expw6cv)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.fiftyStates.visit)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.fiftyStates.visit/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ssdgllkzfwekkpmu7expw6cv/social.passports.fiftyStates.visit/examples)

## Definitions

### `social.passports.fiftyStates.visit`

**Type**: `record`

A visit to a US state or territory. Records the subdivision visited and optionally the city and date.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `city` | `string` | Yes | City visited within the subdivision. |
| `note` | `string` | No | Free-text notes about this visit. |
| `createdAt` | `string` (datetime) | Yes |  |
| `visitedAt` | `string` | No | Date of visit in YYYY-MM-DD format. Nullable — user may not know the exact date. |
| `subdivision` | `string` | Yes | ISO 3166-2 subdivision code, e.g. 'US-CA', 'US-NY', 'US-HI'. |

## Raw Schema

```json
{
  "id": "social.passports.fiftyStates.visit",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subdivision",
          "city",
          "createdAt"
        ],
        "properties": {
          "city": {
            "type": "string",
            "maxLength": 100,
            "description": "City visited within the subdivision."
          },
          "note": {
            "type": "string",
            "maxLength": 3000,
            "description": "Free-text notes about this visit."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "visitedAt": {
            "type": "string",
            "maxLength": 10,
            "description": "Date of visit in YYYY-MM-DD format. Nullable — user may not know the exact date."
          },
          "subdivision": {
            "type": "string",
            "maxLength": 6,
            "description": "ISO 3166-2 subdivision code, e.g. 'US-CA', 'US-NY', 'US-HI'."
          }
        }
      },
      "description": "A visit to a US state or territory. Records the subdivision visited and optionally the city and date."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
