# ch.indiemusi.alpha.release

> Published by [indiemusi.ch](https://lexicon.garden/identity/did:plc:lcmrbur2pydmpelfcs7fjbdx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.release)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.release/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.release/examples)

## Definitions

### `ch.indiemusi.alpha.release`

**Type**: `record`

A release (album, EP, single) containing recordings of songs or musical works

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `gtin` | `string` | No | GTIN (Global Trade Item Number) with which the release is registered, e.g. EAN or UPC |
| `title` | `string` | Yes |  |
| `artists` | `array` | Yes |  |
| `recordings` | `array` | Yes | List of recordings (ch.indiemusi.alpha.recording) included in this release |
| `releaseDate` | `string` (datetime) | No |  |
| `artworkImage` | `blob` | No |  |

### `ch.indiemusi.alpha.release#artist`

**Type**: `object`

Information about an artist contributing to the release

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No |  |
| `name` | `string` | Yes |  |
| `artist` | `ref` → `ch.indiemusi.alpha.actor.artist` | No |  |

## Raw Schema

```json
{
  "id": "ch.indiemusi.alpha.release",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "artists",
          "recordings"
        ],
        "properties": {
          "gtin": {
            "type": "string",
            "maxLength": 14,
            "description": "GTIN (Global Trade Item Number) with which the release is registered, e.g. EAN or UPC"
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "artists": {
            "type": "array",
            "items": {
              "ref": "#artist",
              "type": "ref"
            },
            "minLength": 1
          },
          "recordings": {
            "type": "array",
            "items": {
              "ref": "ch.indiemusi.alpha.recording",
              "type": "ref"
            },
            "minLength": 1,
            "description": "List of recordings (ch.indiemusi.alpha.recording) included in this release"
          },
          "releaseDate": {
            "type": "string",
            "format": "datetime"
          },
          "artworkImage": {
            "type": "blob"
          }
        }
      },
      "description": "A release (album, EP, single) containing recordings of songs or musical works"
    },
    "artist": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "name": {
          "type": "string",
          "maxLength": 255
        },
        "artist": {
          "ref": "ch.indiemusi.alpha.actor.artist",
          "type": "ref"
        }
      },
      "description": "Information about an artist contributing to the release"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
