From 73263bed7d0b3556a0d0b73d70b583720e31cb59 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 1 May 2021 13:08:02 -0700 Subject: [PATCH] Add column to track which posts have been seen --- amanuensis/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/amanuensis/models.py b/amanuensis/models.py index f2d22f7..5d57ac9 100644 --- a/amanuensis/models.py +++ b/amanuensis/models.py @@ -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 # ###################