I have a model
model image {
id Int @id @default(autoincrement())
entityId Int
entityTypeId Int
imageUrl String
recordStatusRefId Int?
createdBy Int?
createdOn DateTime @default(now())
updatedBy Int?
updatedOn DateTime?
isDeleted Int @default(0)
}
I need a relationship for entityId to village table when entityTypeId = 1 and map entityId to property table when entityTypeId = 2
is this prossible in PRISMA ORM
I tried to define two relations but it getting error