{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A vote for one poll option. Created in the voting authority's repo (not the voter's), which keeps voting anonymous. subject strong-refs the chosen blog.brookie.poll.option record; counting is done via microcosm/constellation backlinks on .subject.uri.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "poll": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "poll",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "blog.brookie.poll.vote",
  "lexicon": 1
}
