What is the best way to use UUID v7 in postgres with Prisma?
Also is there a way to add PL/pgSql using Prisma schema?
4 Replies
You chose to debug with a human. They'll tinker with your query soon. If you get curious meanwhile, hop into
#ask-ai
for a quick spin!You can use UUID v7 like this:
Prisma Schema API | Prisma Documentation
API reference documentation for the Prisma Schema Language (PSL).
Why not just use the
cuid()
function to provide collision resistant UUIDs?
Just a thought...