app.winesky.collectionItem
A drink in a user's Collection. References the parent Collection via at-uri and embeds the drink description.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | winesky.app |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"drink": {
"properties": {
"alcoholContent": {
"maximum": 1000,
"minimum": 0,
"type": "integer"
},
"appellation": {
"maxLength": 256,
"type": "string"
},
"category": {
"enum": [
"BEER",
"WINE",
"SPIRIT",
"CIDER",
"RTD",
"SAKE",
"OTHER"
],
"maxLength": 64,
"type": "string"
},
"country": {
"maxLength": 128,
"type": "string"
},
"drinkId": {
"maxLength": 64,
"type": "string"
},
"name": {
"maxLength": 512,
"type": "string"
},
"producer": {
"maxLength": 512,
"type": "string"
},
"region": {
"maxLength": 256,
"type": "string"
},
"varietals": {
"items": {
"maxLength": 128,
"type": "string"
},
"type": "array"
},
"vintage": {
"type": "integer"
}
},
"required": [
"category",
"country",
"producer",
"name"
],
"type": "object"
},
"main": {
"description": "A drink in a user's Collection. References the parent Collection via at-uri and embeds the drink description.",
"key": "tid",
"record": {
"properties": {
"collection": {
"format": "at-uri",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"drink": {
"ref": "#drink",
"type": "ref"
},
"imageSet": {
"ref": "#strongRef",
"type": "ref"
},
"review": {
"ref": "#strongRef",
"type": "ref"
}
},
"required": [
"collection",
"drink",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"strongRef": {
"properties": {
"atUri": {
"format": "at-uri",
"type": "string"
},
"cid": {
"format": "cid",
"type": "string"
}
},
"required": [
"cid",
"atUri"
],
"type": "object"
}
},
"id": "app.winesky.collectionItem",
"lexicon": 1
}