Skip to content

Commit 4e08720

Browse files
committed
Update schema.prisma
1 parent f27780b commit 4e08720

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/db/prisma/schema.prisma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ model Book {
2222
pdfUrl String
2323
totalPages Int @default(0)
2424
reviewedPages Int @default(0)
25-
authorId String
25+
authorId String?
2626
status BookStatus @default(UNPROCESSED)
2727
airtableId String? @unique
2828
arabicName String?
@@ -31,7 +31,7 @@ model Book {
3131
splitsData Json @default("{}")
3232
createdAt DateTime @default(now())
3333
Group Group? @relation(fields: [assignedGroupId], references: [id])
34-
author Author @relation(fields: [authorId], references: [id], onDelete: Cascade)
34+
author Author? @relation(fields: [authorId], references: [id], onDelete: Cascade)
3535
Page Page[]
3636
}
3737

0 commit comments

Comments
 (0)