Добавление количества страниц книгам

This commit is contained in:
2026-01-23 01:31:50 +03:00
parent 1e0c3478a1
commit 7c3074e8fe
15 changed files with 152 additions and 21 deletions
+3
View File
@@ -37,6 +37,7 @@ class BookWithAuthors(SQLModel):
id: int
title: str
description: str
page_count: int
authors: List[AuthorRead] = Field(default_factory=list)
@@ -46,6 +47,7 @@ class BookWithGenres(SQLModel):
id: int
title: str
description: str
page_count: int
status: BookStatus | None = None
genres: List[GenreRead] = Field(default_factory=list)
@@ -56,6 +58,7 @@ class BookWithAuthorsAndGenres(SQLModel):
id: int
title: str
description: str
page_count: int
status: BookStatus | None = None
authors: List[AuthorRead] = Field(default_factory=list)
genres: List[GenreRead] = Field(default_factory=list)