{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One vote per member per subject: the rkey is derived from the subject URI, so a changed vote is a putRecord and an unvote a deleteRecord.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "direction": {
            "knownValues": [
              "up",
              "down"
            ],
            "type": "string"
          },
          "subject": {
            "description": "A post or comment URI.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "direction",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "dev.jazco.boards.vote",
  "lexicon": 1
}
