Feralheart
07/15/2021, 11:12 AMRyan
07/15/2021, 11:18 AMmodel User {
id Int @id @default(autoincrement())
name String
email String
@@unique([name, email])
}
Here the combination of name
and email
will be unique.Feralheart
07/15/2021, 12:00 PM