diff --git a/models.py b/models.py index bd73c60..0e44d72 100644 --- a/models.py +++ b/models.py @@ -18,6 +18,7 @@ class Book(Base): id: Mapped[int] = mapped_column(primary_key=True, index=True) title: Mapped[str] = mapped_column(String(255), index=True) author: Mapped[str] = mapped_column(String(255)) + publisher: Mapped[str] = mapped_column(String(255), nullable-False) # Pydantic models class BookIn(BaseModel):