Add year to book model

This commit is contained in:
2023-10-26 13:03:30 +02:00
parent 8fe744920f
commit 5d8da5f29a
6 changed files with 830 additions and 796 deletions

View File

@@ -98,6 +98,7 @@ model Book {
uploaded DateTime @db.Date
is_deleted Boolean @default(false)
pages Int?
year Int @db.SmallInt @default(0)
source Source @relation(fields: [source_id], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_books_sources_id_source")
book_annotation BookAnnotation?
book_authors BookAuthor[]