MediaRecord fields
Key fields stored in KV under media:<id>:
status:DRAFTorPUBLISHEDobject_key:originals/<id>.<ext>thumb_object_key:thumbs/<id>.webpwhen generatedpublic_url,thumb_url: computed for UIcreated_at,published_at,taken_dateevent_date,caption,tagsmime_type,size_bytes,width,heightexif_json(best-effort)sha256
KV indexes
all:indexandpublished:index(arrays of ids, capped at 5000)- Tag indexes:
tag:all:<tag>,tag:published:<tag> - Sorted indexes:
published:sort:taken_date,published:sort:uploaded,published:sort:added,published:sort:size - Sorted entries are
score<TAB>idfor deterministic ordering
R2 objects
- Originals:
originals/<id>.<ext> - Thumbs:
thumbs/<id>.webp(optional)