Add column to track which posts have been seen

This commit is contained in:
Tim Van Baak 2021-05-01 13:08:02 -07:00
parent f8c7d70f72
commit 73263bed7d
1 changed files with 4 additions and 0 deletions

View File

@ -223,6 +223,10 @@ class Membership(ModelBase):
# Timestamp the user joined the game
joined = Column(DateTime, nullable=False, server_default=text('CURRENT_TIMESTAMP'))
# Timestamp of the last time the user viewed the post feed
# This is NULL if the player has never viewed posts
last_post_seen = Column(DateTime, nullable=True)
###################
# Player settings #
###################