mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-06 07:01:37 +01:00
feat: add user settings db
This commit is contained in:
13
server.py
13
server.py
@@ -77,6 +77,19 @@ class Map(db.Model):
|
|||||||
delta = datetime.datetime.now() - parsed
|
delta = datetime.datetime.now() - parsed
|
||||||
return delta.days
|
return delta.days
|
||||||
|
|
||||||
|
class UserSettings(db.Model):
|
||||||
|
|
||||||
|
__tablename__ = "user_settings"
|
||||||
|
|
||||||
|
user = Column(String, primary_key=True)
|
||||||
|
|
||||||
|
show_tm_2020 = Column(Boolean)
|
||||||
|
show_tmnf = Column(Boolean)
|
||||||
|
show_tm_2020_current = Column(Boolean)
|
||||||
|
|
||||||
|
notifcations_all = Column(Boolean)
|
||||||
|
notifcations_self = Column(Boolean)
|
||||||
|
|
||||||
class ParsedReplay(db.Model):
|
class ParsedReplay(db.Model):
|
||||||
|
|
||||||
__tablename__ = "replays"
|
__tablename__ = "replays"
|
||||||
|
|||||||
Reference in New Issue
Block a user