Fix up some model typing

This commit is contained in:
justcool393 2023-08-09 04:42:11 -05:00
parent 7051beefca
commit 2e80d54ca1
6 changed files with 22 additions and 16 deletions

View file

@ -29,7 +29,7 @@ class Comment(CreatedBase):
parent_submission = mapped_column(Integer, ForeignKey("submissions.id"))
edited_utc: Mapped[int] = mapped_column(Integer, default=0, nullable=False)
ghost: Mapped[bool] = mapped_column(Boolean, default=False, nullable=False)
bannedfor = mapped_column(Boolean)
bannedfor: Mapped[bool | None] = mapped_column(Boolean)
distinguish_level = mapped_column(Integer, default=0, nullable=False)
level = mapped_column(Integer, default=1, nullable=False)
parent_comment_id = mapped_column(Integer, ForeignKey("comments.id"))