Add annotation_exists field to Book and Author

This commit is contained in:
2021-12-05 19:14:05 +03:00
parent aacdf51f17
commit 5fbe26c0f2
7 changed files with 23 additions and 12 deletions

View File

@@ -12,6 +12,8 @@ class Author(BaseModel):
last_name: str
middle_name: Optional[str]
annotation_exists: bool
class Config(ORJSONConfig):
pass

View File

@@ -19,6 +19,7 @@ class Book(BaseModel):
available_types: list[str]
uploaded: date
authors: list[Author]
annotation_exists: bool
class Config(ORJSONConfig):
pass