When to use this
Use v7 for primary keys and any ID that will be indexed or sorted: rows insert in timestamp order, so B-tree pages stay hot and ORDER BY id approximates creation order. Avoid it where the creation time must stay private (password-reset tokens, public share links) and use v4 there.
This page is a focused view of theUUID Generator (v4 & v7): GUID Generator, which has the full set of options.
