Open ReptoxX opened 8 months ago
The problem is i use @@id([id])
to define the id of the table.
Example
model User {
id String @default(cuid())
mail String @unique
@@id([id])
@@map("users")
}
When using
model User {
id String @default(cuid()) @id
mail String @unique
@@map("users")
}
the error does not occur.
I think it's a bug with having only one value within the array of @@id()
. It is possible that unique constraint with only one value, e.g. @@unique([mail])
, behaves similar. I need to check it.
On every connect DTO is an typescript error, that the field is defined twice with different types.
Parameters used: