Hello everyone, hope you're doing well. I was wond...
# orm-help
m
Hello everyone, hope you're doing well. I was wondering if there's the possibility to do something like this in Prisma... This is the
schema.prisma
that I want to achieve
Copy code
const uuid = require("uuid");

model User {
  id      Int      @default(autoincrement()) @id
  email   String   @unique
  name    String?
  posts   Post[]
  profile Profile?
}
βœ”οΈ 1
s
this link shows passing
uuid()
to
default()
πŸ’― 1
m
Thank you!
πŸ™Œ 1
s
hope it works for you!
m
Yeah I hope too! Let me try it
Hi again! Just a quick update to let you know that it works, thanks!
πŸ‘ 2
s
great!
☺️ 1