{
  "lexicon": 1,
  "id": "net.bisks.elopt.optin",
  "defs": {
    "main": {
      "type": "record",
      "description": "One account's own consent to appear in elopt: to be named, put up for a battle, and ranked on the public elo board. Singleton (rkey always \"self\") — writing it opts in, deleting it opts out and immediately drops the account from the roster and every future leaderboard replay. This is the whole consent mechanism: elopt never lists or scores an account that hasn't written this record itself. Written and read by elopt (https://elopt.bisks.net).",
      "key": "any",
      "record": {
        "type": "object",
        "required": ["consent", "createdAt"],
        "properties": {
          "consent": {
            "type": "boolean",
            "const": true,
            "description": "Always true — the record's mere existence is the opt-in, this field just makes the record self-describing on its own."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this account opted in, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
