Hi is there a way to get the Prisma model name by ...
# prisma-client
y
Hi is there a way to get the Prisma model name by passing a table name?
Copy code
model UserCategory {
  id Int @id @default(autoincrement())

  @@map("user_categories")
}

// Returns UserCategory
prisma.findModelByTableName('user_categories')