Hey, for the below model, how to select bin_to_uui...
# orm-help
v
Hey, for the below model, how to select bin_to_uuid(id)
Copy code
model User {
 
  id      Bytes    @id @db.Binary(16) @default(dbgenerated("(uuid_to_bin(uuid()))"))
  email   String   @unique @db.VarChar(320)
  name    String?
  contact String   @db.VarChar(15)
}
👀 1
n
Hey Vijay 👋 Do you mean you want to replace the
uuid_to_bin
function with
bin_to_uuid
?
v
Hey Nurul, I need to select the generated binary id column, by applying bin_to_uuid on id