NestJS - Database with Prisma
Identify the error in this Prisma schema for a one-to-many relation between
Author and Book models:model Author {
id Int @id @default(autoincrement())
name String
books Book
}
model Book {
id Int @id @default(autoincrement())
title String
authorId Int
author Author @relation(fields: [authorId], references: [id])
}