When creating a composite key in DynamoDB with a hash and range/sort key, it seems really useful to store creative string values in the sort key (e.g. “Details-123456-foo”, where each segment in that value can be something meaningful for that record). The docs seem to navigate you in that direction as well when designing the schema.
That said, does it make sense to name the sort key something generic, like “sortKey” or “rangeKey” instead of something specific (e.g. “createTimestamp”) to give you the flexibility of storing all sorts of data for the same hash key, thus maintaining fast data access when using the “query” API with the hash/sort keys?