# social.respawn.game

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

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.game)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.game/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hiabolqnnpdnrb5grmdaaepg/social.respawn.game/examples)

## Definitions

### `social.respawn.game`

**Type**: `record`

A game in the actor's collection, keyed by its IGDB id. Stores the current rating, like/play state, and the cover image. Logs are separate social.respawn.feed.log records; creating a log updates this record's current state.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `game` | `ref` → `social.respawn.defs#gameRef` | No |  |
| `cover` | `ref` → `social.respawn.defs#cover` | No |  |
| `liked` | `boolean` | No |  |
| `played` | `ref` → `social.respawn.defs#playState` | No |  |
| `rating` | `integer` | No | Actor's rating, 1-10. |
| `playing` | `boolean` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "social.respawn.game",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "createdAt"
        ],
        "properties": {
          "game": {
            "ref": "social.respawn.defs#gameRef",
            "type": "ref"
          },
          "cover": {
            "ref": "social.respawn.defs#cover",
            "type": "ref"
          },
          "liked": {
            "type": "boolean"
          },
          "played": {
            "ref": "social.respawn.defs#playState",
            "type": "ref"
          },
          "rating": {
            "type": "integer",
            "maximum": 10,
            "minimum": 1,
            "description": "Actor's rating, 1-10."
          },
          "playing": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A game in the actor's collection, keyed by its IGDB id. Stores the current rating, like/play state, and the cover image. Logs are separate social.respawn.feed.log records; creating a log updates this record's current state."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
