# app.winesky.review

> Published by [winesky.app](https://lexicon.garden/identity/did:plc:kg77b5troxbtudevqnfvqba7)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:kg77b5troxbtudevqnfvqba7/app.winesky.review)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kg77b5troxbtudevqnfvqba7/app.winesky.review/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kg77b5troxbtudevqnfvqba7/app.winesky.review/examples)

## Definitions

### `app.winesky.review`

**Type**: `record`

A structured, machine-readable wine review record. Created when a user publishes a wine review to Bluesky.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `post` | `object` | Yes |  |
| `text` | `string` | Yes |  |
| `drink` | `object` | Yes |  |
| `rating` | `integer` | No |  |
| `imageSet` | `object` | Yes |  |
| `reviewId` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `reviewDate` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "app.winesky.review",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "text",
          "createdAt",
          "post",
          "imageSet",
          "reviewId",
          "reviewDate",
          "drink"
        ],
        "properties": {
          "post": {
            "type": "object",
            "required": [
              "cid",
              "atUri"
            ],
            "properties": {
              "cid": {
                "type": "string",
                "format": "cid",
                "required": true
              },
              "atUri": {
                "type": "string",
                "format": "at-uri",
                "required": true
              }
            }
          },
          "text": {
            "type": "string",
            "required": true,
            "maxLength": 10000,
            "maxGraphemes": 5000
          },
          "drink": {
            "type": "object",
            "required": [
              "category",
              "country",
              "producer",
              "name"
            ],
            "properties": {
              "name": {
                "type": "string",
                "required": true,
                "maxLength": 512
              },
              "region": {
                "type": "string",
                "maxLength": 256
              },
              "country": {
                "type": "string",
                "required": true,
                "maxLength": 128
              },
              "vintage": {
                "type": "integer"
              },
              "category": {
                "enum": [
                  "BEER",
                  "WINE",
                  "SPIRIT",
                  "CIDER",
                  "RTD",
                  "SAKE",
                  "OTHER"
                ],
                "type": "string",
                "required": true,
                "maxLength": 64
              },
              "producer": {
                "type": "string",
                "required": true,
                "maxLength": 512
              },
              "varietals": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128
                }
              },
              "appellation": {
                "type": "string",
                "maxLength": 256
              },
              "alcoholContent": {
                "type": "integer",
                "maximum": 1000,
                "minimum": 0
              }
            }
          },
          "rating": {
            "type": "integer",
            "maximum": 100,
            "minimum": 0
          },
          "imageSet": {
            "type": "object",
            "required": [
              "cid",
              "atUri"
            ],
            "properties": {
              "cid": {
                "type": "string",
                "format": "cid",
                "required": true
              },
              "atUri": {
                "type": "string",
                "format": "at-uri",
                "required": true
              }
            }
          },
          "reviewId": {
            "type": "string",
            "required": true,
            "maxLength": 32
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "required": true
          },
          "reviewDate": {
            "type": "string",
            "format": "datetime",
            "required": true
          }
        }
      },
      "description": "A structured, machine-readable wine review record. Created when a user publishes a wine review to Bluesky."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
