# app.winesky.collection

> 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.collection)
- [Documentation](https://lexicon.garden/lexicon/did:plc:kg77b5troxbtudevqnfvqba7/app.winesky.collection/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:kg77b5troxbtudevqnfvqba7/app.winesky.collection/examples)

## Definitions

### `app.winesky.collection`

**Type**: `record`

A user-owned grouping of drinks. Currently supports MAIN (drinks the user has reviewed) and FAVORITES (drinks the user has marked for later). Singleton per (DID, type) — enforced server-side at ingest, not by the lexicon.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "app.winesky.collection",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "type",
          "createdAt"
        ],
        "properties": {
          "type": {
            "enum": [
              "MAIN",
              "FAVORITES"
            ],
            "type": "string",
            "maxLength": 32
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A user-owned grouping of drinks. Currently supports MAIN (drinks the user has reviewed) and FAVORITES (drinks the user has marked for later). Singleton per (DID, type) — enforced server-side at ingest, not by the lexicon."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
