iamclaytonray
01/31/2021, 2:16 PMidiamclaytonray
01/31/2021, 2:24 PMnikolasburk
@default(uuid())I think this is a design flaw of Prisma. IMO, Prisma should take advantaged of Postgres’s native ability to generate UUIDs.I think we actually agree with you here and want to fix this. Do you mind creating a GitHub issue so this can be tracked properly? 🙂
nikolasburk
Alberto Perdomo
nativeTypesdbgenerated(String)model User {
  id   String  @id @db.Uuid @default(dbgenerated("gen_random_uuid()"))
  name String?
}iamclaytonray
02/03/2021, 4:46 PM