{
"id": "beauty.cybernetic.trustcow.review",
"defs": {
"main": {
"type": "record",
"record": {
"type": "object",
"required": [
"transaction",
"rating",
"createdAt"
],
"properties": {
"title": {
"type": "string",
"maxLength": 100,
"description": "The title of the review"
},
"rating": {
"type": "integer",
"maximum": 5,
"minimum": 1,
"description": "Rating score from 1 to 5"
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "When the review was created"
},
"description": {
"type": "string",
"maxLength": 1000,
"description": "The detailed review text"
},
"transaction": {
"type": "string",
"description": "AT URI reference to the transaction record (at://did/beauty.cybernetic.trustcow.transaction/rkey)"
},
"reviewerRole": {
"type": "string",
"description": "Whether this review is from the service provider or consumer",
"knownValues": [
"serviceProvider",
"serviceConsumer"
]
}
}
},
"description": "A review connected to a verified transaction, can only be created by one of the transaction parties"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}