Generic Schema
PK SK Type Data
------ ------ ---- ----
USER#alice PROFILE User { name, email, joined_at }
USER#alice POST#2026-01-15 Post { title, body, tags }
USER#alice POST#2026-01-20 Post { title, body, tags }
USER#alice FOLLOWER#bob Follow { followed_at }
POST#p-123 COMMENT#c-1 Comment { text, by, at }
POST#p-123 COMMENT#c-2 Comment { text, by, at }
PK = entity identifier, SK = entity type + identifier.
Query PK = USER#alice AND begins_with(SK, 'POST') → all of Alice's posts.