{ "lexicon": 1, "id": "club.hause.podcast.subscription", "defs": { "main": { "type": "record", "description": "A user's subscription to a podcast show. One record per show; clients SHOULD enforce uniqueness on (repo, showRef.guid) at write time and on read by deduping records that share a guid (keeping the earliest createdAt).", "key": "tid", "record": { "type": "object", "required": ["showRef", "createdAt"], "properties": { "showRef": { "type": "ref", "ref": "club.hause.podcast.defs#showRef" }, "createdAt": { "type": "string", "format": "datetime", "description": "When the user subscribed. Used for ordering the subscription list." } } } } } }