# net.atpix.gallery.albumItem

> Published by [lexicon.atpix.net](https://lexicon.garden/identity/did:plc:x4crpdfko2d7xrcd5eovpwex)

✓ This is the authoritative definition for this NSID.

## Description

Ordered membership linking an album to a photo. ATPix-native junction record.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.albumItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.albumItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:x4crpdfko2d7xrcd5eovpwex/net.atpix.gallery.albumItem/examples)

## Definitions

### `net.atpix.gallery.albumItem`

**Type**: `record`

Junction record for ordered album membership (schema:isPartOf materialized).

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `addedBy` | `string` (did) | No | dc:contributor — DID that added this membership. |
| `albumUri` | `string` (at-uri) | Yes | ATPix — parent net.atpix.gallery.album AT URI. |
| `photoUri` | `string` | Yes | ATPix — child net.atpix.gallery.photo record URI. Public/unlisted: at://{did}/{collection}/{rkey}. Permissioned: at://{spaceDid}/space/{type}/{skey}/{authorDid}/{collection}/{rkey}. |
| `position` | `integer` | No | ATPix — sort order within album (0 = first). |
| `createdAt` | `string` (datetime) | Yes | dc:date — RFC 3339 UTC. |

## Raw Schema

```json
{
  "id": "net.atpix.gallery.albumItem",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "albumUri",
          "photoUri",
          "createdAt"
        ],
        "properties": {
          "addedBy": {
            "type": "string",
            "format": "did",
            "description": "dc:contributor — DID that added this membership."
          },
          "albumUri": {
            "type": "string",
            "format": "at-uri",
            "description": "ATPix — parent net.atpix.gallery.album AT URI."
          },
          "photoUri": {
            "type": "string",
            "maxLength": 512,
            "description": "ATPix — child net.atpix.gallery.photo record URI. Public/unlisted: at://{did}/{collection}/{rkey}. Permissioned: at://{spaceDid}/space/{type}/{skey}/{authorDid}/{collection}/{rkey}."
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "description": "ATPix — sort order within album (0 = first)."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "dc:date — RFC 3339 UTC."
          }
        }
      },
      "description": "Junction record for ordered album membership (schema:isPartOf materialized)."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Ordered membership linking an album to a photo. ATPix-native junction record."
}
```
