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