{
  "id": "ctzn.network/follow",
  "title": "Follow",
  "description": "A social subscription",
  "type": "json-table",
  "keyTemplate": [{"type": "json-pointer", "value": "/subject/userId"}],
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": ["subject", "createdAt"],
    "properties": {
      "subject": {
        "type": "object",
        "required": ["dbUrl", "userId"],
        "properties": {
          "dbUrl": {
            "type": "string",
            "format": "uri"
          },
          "userId": {
            "type": "string",
            "pattern": ".+@.+"
          }
        }
      },
      "createdAt": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}