Satont
07/12/2022, 9:51 PM[{ id: '123', name: 'first'}]
, i wan't to find channels where command with name
second
not exists, but not others channels.
model Channel {
id String @id
commands Command[]
@@map("channels")
}
model Command {
id String @id @default(dbgenerated("gen_random_uuid()"))
name String
channelId String
channel Channel @relation(fields: [channelId], references: [id])
@@map("channels_commands")
}
Nurul
07/19/2022, 2:06 PMNurul
07/20/2022, 11:36 AM