Daniel Olavio Ferreira
06/09/2021, 6:05 AMuuid() function inside of the @default() . Maybe that can be causing prisma to regenerate something or to reload data in some way. Because its trying to create new uuidsJesús Quirós
06/10/2021, 3:32 AMmodel Test2 {
id String @id @default(uuid()) @db.Uuid
name String
}
This is what Prisma generated:
CREATE TABLE "Test2" (
"id" UUID NOT NULL,
"name" TEXT NOT NULL,
PRIMARY KEY ("id")
);
So no default value when including the uuid() function.Daniel Olavio Ferreira
06/10/2021, 6:47 AM