{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A moderation decision, written into the shared moderation account's (studynext.app) own repo by the admin dashboard. Every client reads these to hide flagged users and to warn a user who has been moderated. rkey is a sanitized form of the subject DID, so re-moderating the same user overwrites the prior reason.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "reason": {
            "description": "Reason shown to the moderated user.",
            "maxLength": 2000,
            "type": "string"
          },
          "reasonType": {
            "maxLength": 100,
            "type": "string"
          },
          "subject": {
            "description": "DID of the moderated user.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "reason",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.studynext.moderation",
  "lexicon": 1
}
