How does it work?
UUID v7 stores a Unix millisecond timestamp in the leading bytes, which makes new IDs sort roughly by creation time while preserving random bits for uniqueness. It is useful for database keys, logs, events, queues, and systems where UUID v4 randomness causes poor index locality.