anyone with the same issue?
# orm-help
g
anyone with the same issue?
👀 1
n
Hey 👋 Welcome to our Slack community! 🙌 Could you please share your schema file and the function in which you are invoking the update query?
g
Hello nurul
Copy code
model Alert {
  id            String         @id @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
  title         String
  isActive      Boolean        @default(false)
  description   String
  houseSensorId String         @db.Uuid
  houseSensor   HouseSensor    @relation(fields: [houseSensorId], references: [id])
  notifications Notification[]
  userId        String         @db.Uuid
  user          User           @relation(fields: [userId], references: [id])
  createdAt     DateTime       @default(now()) @db.Timestamptz(3)
  updatedAt     DateTime       @updatedAt @db.Timestamptz(3)
  AlertAction   AlertAction[]

  @@map("alert")
}

model AlertAction {
  id            String          @id @unique @default(dbgenerated("gen_random_uuid()")) @db.Uuid
  description   String?
  action        AlertActionType
  startDateTime DateTime?
  endDateTime   DateTime?
  alert         Alert?          @relation(fields: [alertId], references: [id], onDelete: Cascade)
  alertId       String?         @db.Uuid
  createdAt     DateTime        @default(now()) @map("created_at") @db.Timestamptz(3)
  updatedAt     DateTime        @updatedAt @map("updated_at") @db.Timestamptz(3)

  @@map("alert_action")
}
its this same issue this guys is having
the create many works just fine, the problem its with the update
also here is a example
@Nurul
n
Hey 👋 Apologies I missed this message, thank you for commenting on the GitHub Issue, I see me colleague has triaged this issue, so our client team should be able to debug and fix this error.