Skip to content

Commit

Permalink
Add read value to DBNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 20, 2023
1 parent 9cdbc6f commit 744917b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ class DBGroup(Base):
short_name = Column('short_name', String)
description = Column('description', String, nullable=True)
color = Column('color', String)
bancho_permissions = Column('bancho_permissions', SmallInteger, nullable=True)
bancho_permissions = Column('bancho_permissions', SmallInteger, nullable=True, default=0)
hidden = Column(Boolean, default=False)

entries = relationship('DBGroupEntry', back_populates='group')
Expand All @@ -804,6 +804,7 @@ class DBNotification(Base):
header = Column('header', String)
content = Column('content', String)
link = Column('link', String)
read = Column('read', Boolean, default=False)

user = relationship('DBUser', back_populates='notifications')

Expand Down

0 comments on commit 744917b

Please sign in to comment.