In the schema what's the correct way to make a "do...
# orm-help
f
In the schema what's the correct way to make a "double unique" constraint?
r
By double unique do you mean this?
Copy code
model User {
  id Int @id @default(autoincrement())
  name String
  email String

  @@unique([name, email])
}
Here the combination of
name
and
email
will be unique.
f
Yes, I meant this, thank you 🙂
💯 1