# com.barryfrost.checkin

> Published by [barryfrost.com](https://lexicon.garden/identity/did:plc:j5ksi3y4tdtbp7vpsxsfyask)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:j5ksi3y4tdtbp7vpsxsfyask/com.barryfrost.checkin)
- [Documentation](https://lexicon.garden/lexicon/did:plc:j5ksi3y4tdtbp7vpsxsfyask/com.barryfrost.checkin/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:j5ksi3y4tdtbp7vpsxsfyask/com.barryfrost.checkin/examples)

## Definitions

### `com.barryfrost.checkin`

**Type**: `record`

A physical location checkin on Foursquare/Swarm

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `photos` | `array` | No | Photos taken at the checkin, uploaded as PDS blobs |
| `address` | `string` | No | Formatted venue address, e.g. "123 High Street, London, UK" |
| `category` | `string` | No | Primary Foursquare venue category, e.g. "Coffee Shop" |
| `location` | `ref` → `community.lexicon.location.fsq` | Yes | The Foursquare place where the checkin occurred |
| `createdAt` | `string` (datetime) | Yes | ISO 8601 timestamp of the checkin |

### `com.barryfrost.checkin#photo`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `image` | `blob` | Yes |  |

## Raw Schema

```json
{
  "id": "com.barryfrost.checkin",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt",
          "location"
        ],
        "properties": {
          "photos": {
            "type": "array",
            "items": {
              "ref": "#photo",
              "type": "ref"
            },
            "maxLength": 8,
            "description": "Photos taken at the checkin, uploaded as PDS blobs"
          },
          "address": {
            "type": "string",
            "maxLength": 500,
            "description": "Formatted venue address, e.g. \"123 High Street, London, UK\""
          },
          "category": {
            "type": "string",
            "maxLength": 100,
            "description": "Primary Foursquare venue category, e.g. \"Coffee Shop\""
          },
          "location": {
            "ref": "community.lexicon.location.fsq",
            "type": "ref",
            "description": "The Foursquare place where the checkin occurred"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "ISO 8601 timestamp of the checkin"
          }
        }
      },
      "description": "A physical location checkin on Foursquare/Swarm"
    },
    "photo": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 1000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/jpeg",
            "image/png",
            "image/webp"
          ],
          "maxSize": 1000000
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
