app.winesky.collectionItem

A drink in a user's Collection. References the parent Collection via at-uri and embeds the drink description.

Repository @winesky.app did:plc:kg77b5troxbtudevqnfvqba7 namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritywinesky.app
Indexed

Showing version bafyreig2alim5p2qhhvx2hc56xwcdokdmcyifxdgtel72v6b7tpvzszy6e. Show the latest

cid bafyreig2alim5p2qhhvx2hc56xwcdokdmcyifxdgtel72v6b7tpvzszy6e

Checks

Valid Lint pass
JSONDownload
{
  "$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"
          },
          "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
}