diff --git a/schemas/book.py b/schemas/book.py index 3234dd4..4e6d3cd 100644 --- a/schemas/book.py +++ b/schemas/book.py @@ -2,7 +2,6 @@ from pydantic import BaseModel, Field from typing import Optional from uuid import UUID - class BookBase(BaseModel): title: str = Field(..., min_length=1, max_length=200, description="Book title") description: Optional[str] = Field(None, description="Book description") @@ -10,7 +9,6 @@ class BookBase(BaseModel): publication_year: int = Field(..., ge=1000, le=9999, description="Year of publication") author_id: str = Field(..., description="ID of the book's author") - class BookCreate(BookBase): class Config: schema_extra = { @@ -23,7 +21,6 @@ class BookCreate(BookBase): } } - class Book(BookBase): id: UUID