Add notification settings
This commit is contained in:
@@ -34,6 +34,11 @@ class User(Base):
|
||||
banned_by_id: Mapped[int | None] = mapped_column(Integer, ForeignKey("users.id"), nullable=True)
|
||||
ban_reason: Mapped[str | None] = mapped_column(String(500), nullable=True)
|
||||
|
||||
# Notification settings (all enabled by default)
|
||||
notify_events: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
notify_disputes: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
notify_moderation: Mapped[bool] = mapped_column(Boolean, default=True)
|
||||
|
||||
# Relationships
|
||||
created_marathons: Mapped[list["Marathon"]] = relationship(
|
||||
"Marathon",
|
||||
|
||||
Reference in New Issue
Block a user