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.
Record Key
any
Any valid record key
Properties
View raw schema
{
"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"
}