Should I choose UUID v4 or v7?
Choose v4 when you just need a random identifier. Choose v7 when you want identifiers to roughly follow the order they were created. Neither produces consecutive numbers like 1, 2, 3.
UUID Generator
UUID v4 is a 128-bit universally unique identifier that is generated using random numbers. Because of its large length, the collisions for UUID v4 can normally be ignored.

A UUID identifies a record or object. Version 4 mainly uses random data and suits identifiers that do not need to follow creation time.
Choose v4 when you just need a random identifier. Choose v7 when you want identifiers to roughly follow the order they were created. Neither produces consecutive numbers like 1, 2, 3.