However the id in the table doesn't have a default value of
uuid()
, am I missing something here?
n
Nino Vrijman
10/28/2020, 8:59 AM
I believe the UUID / CUIDs are generated on runtime by Prisma Client (or Prisma’s engine) meaning the column in the table will not actually have a default value.
autoincrement IDs should be taken care of automatically by your database.
👍 1
d
DuckyDev
10/28/2020, 9:07 AM
I will try to finish the API to confirm this 😉 But I think you are right.
I just don't understand what the reason behind this is since there is a uuid module for postgres