# org.simocracy.notificationSeen

> Published by [gainforest.earth](https://lexicon.garden/identity/did:plc:qoti4acfmc5wg6zzmtix6hse)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.notificationSeen)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.notificationSeen/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qoti4acfmc5wg6zzmtix6hse/org.simocracy.notificationSeen/examples)

## Definitions

### `org.simocracy.notificationSeen`

**Type**: `record`

Singleton record per user tracking when they last viewed their notifications. Written to the user's PDS with rkey 'self'.

**Key**: `literal:self`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `seenAt` | `string` (datetime) | Yes | When the user last opened /notifications |
| `createdAt` | `string` (datetime) | Yes | When this record was first created |

## Raw Schema

```json
{
  "id": "org.simocracy.notificationSeen",
  "defs": {
    "main": {
      "key": "literal:self",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "seenAt",
          "createdAt"
        ],
        "properties": {
          "seenAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the user last opened /notifications"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this record was first created"
          }
        }
      },
      "description": "Singleton record per user tracking when they last viewed their notifications. Written to the user's PDS with rkey 'self'."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
