Comment: missing mapped type

This commit is contained in:
justcool393 2023-08-09 05:05:11 -05:00
parent 71f1174b93
commit 0bf5c566d3

View file

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