mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add sequences to books by author and translator
This commit is contained in:
@@ -3,6 +3,8 @@ from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.serializers.sequence import Sequence
|
||||
|
||||
|
||||
class Author(BaseModel):
|
||||
id: int
|
||||
@@ -22,6 +24,7 @@ class AuthorBook(BaseModel):
|
||||
available_types: list[str]
|
||||
uploaded: date
|
||||
translators: list[Author]
|
||||
sequences: list[Sequence]
|
||||
annotation_exists: bool
|
||||
|
||||
|
||||
@@ -32,4 +35,5 @@ class TranslatedBook(BaseModel):
|
||||
file_type: str
|
||||
available_types: list[str]
|
||||
authors: list[Author]
|
||||
sequences: list[Sequence]
|
||||
annotation_exists: bool
|
||||
|
||||
Reference in New Issue
Block a user