We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f27780b commit 4e08720Copy full SHA for 4e08720
1 file changed
packages/db/prisma/schema.prisma
@@ -22,7 +22,7 @@ model Book {
22
pdfUrl String
23
totalPages Int @default(0)
24
reviewedPages Int @default(0)
25
- authorId String
+ authorId String?
26
status BookStatus @default(UNPROCESSED)
27
airtableId String? @unique
28
arabicName String?
@@ -31,7 +31,7 @@ model Book {
31
splitsData Json @default("{}")
32
createdAt DateTime @default(now())
33
Group Group? @relation(fields: [assignedGroupId], references: [id])
34
- author Author @relation(fields: [authorId], references: [id], onDelete: Cascade)
+ author Author? @relation(fields: [authorId], references: [id], onDelete: Cascade)
35
Page Page[]
36
}
37
0 commit comments