Is it to okay to store schema id's as Int in Prisma #4634
Answered
by
hussamkhatib
hussamkhatib
asked this question in
Help
-
the docs have mentioned the usage of id in all the models as String using cuid() id String @id @default(cuid()) ref : https://next-auth.js.org/adapters/prisma id Int @id @default(autoincrement()) I want to use the second option,but thinking if might be less secure |
Beta Was this translation helpful? Give feedback.
Answered by
hussamkhatib
May 30, 2022
Replies: 1 comment
-
Just got to know it's compulsory to use String. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hussamkhatib
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just got to know it's compulsory to use String.