changed default for delete field in users model
This commit is contained in:
parent
66178acebe
commit
16dc839a1f
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue