# fm.freemix.collection.crate

> Published by [lex-publisher.freemix.fm](https://lexicon.garden/identity/did:plc:bt7c6cqevgefnvej5cmgke4g)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:bt7c6cqevgefnvej5cmgke4g/fm.freemix.collection.crate)
- [Documentation](https://lexicon.garden/lexicon/did:plc:bt7c6cqevgefnvej5cmgke4g/fm.freemix.collection.crate/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:bt7c6cqevgefnvej5cmgke4g/fm.freemix.collection.crate/examples)

## Definitions

### `fm.freemix.collection.crate`

**Type**: `record`

A crate (playlist/collection) of tracks

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes | Crate name |
| `tracks` | `array` | No | Ordered list of track AT URIs |
| `isPublic` | `boolean` | No | Whether the crate is publicly visible |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `description` | `string` | No | Crate description |
| `coverImageUrl` | `string` (uri) | No | URL to crate cover image |

## Raw Schema

```json
{
  "id": "fm.freemix.collection.crate",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "name",
          "createdAt"
        ],
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "description": "Crate name"
          },
          "tracks": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "at-uri",
              "maxLength": 3000
            },
            "maxLength": 500,
            "description": "Ordered list of track AT URIs"
          },
          "isPublic": {
            "type": "boolean",
            "default": true,
            "description": "Whether the crate is publicly visible"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "maxLength": 100,
            "description": "Record creation timestamp"
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "description": "Crate description"
          },
          "coverImageUrl": {
            "type": "string",
            "format": "uri",
            "maxLength": 3000,
            "description": "URL to crate cover image"
          }
        }
      },
      "description": "A crate (playlist/collection) of tracks"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
