Back to Simocracy

org.simocracy.notificationSeen

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

record · key literal:self

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

seenAt*

When the user last opened /notifications

datetime
createdAt*

When this record was first created

datetime
Raw lexicon JSON
{
  "lexicon": 1,
  "id": "org.simocracy.notificationSeen",
  "defs": {
    "main": {
      "type": "record",
      "description": "Singleton record per user tracking when they last viewed their notifications. Written to the user's PDS with rkey 'self'.",
      "key": "literal:self",
      "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"
          }
        }
      }
    }
  }
}
org.simocracy.notificationSeen