diff --git a/app/models/user.py b/app/models/user.py index 6184564..96ebdec 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -1,4 +1,4 @@ -from sqlalchemy import Integer, null +from sqlalchemy import Integer, false, null from sqlalchemy.schema import ( Column, ForeignKey, @@ -16,7 +16,7 @@ class User(db.Model): username: Mapped[str] = mapped_column(nullable=True) description: Mapped[str] = mapped_column(nullable=True) - delete: Mapped[bool] = mapped_column(default="false") + delete: Mapped[bool] = mapped_column(default=false) collection_id = Column(Integer, ForeignKey("collection.id")) collection: Mapped["Collection"] = relationship("Collection", back_populates="users")