Compare commits
2 Commits
f8c7d70f72
...
fc28718846
Author | SHA1 | Date |
---|---|---|
Tim Van Baak | fc28718846 | |
Tim Van Baak | 73263bed7d |
|
@ -223,6 +223,10 @@ class Membership(ModelBase):
|
||||||
# Timestamp the user joined the game
|
# Timestamp the user joined the game
|
||||||
joined = Column(DateTime, nullable=False, server_default=text('CURRENT_TIMESTAMP'))
|
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 #
|
# Player settings #
|
||||||
###################
|
###################
|
||||||
|
@ -557,7 +561,8 @@ class Post(ModelBase):
|
||||||
lexicon_id = Column(Integer, ForeignKey('lexicon.id'), nullable=False)
|
lexicon_id = Column(Integer, ForeignKey('lexicon.id'), nullable=False)
|
||||||
|
|
||||||
# The user who made the post
|
# The user who made the post
|
||||||
user_id = Column(Integer, ForeignKey('user.id'), nullable=False)
|
# This may be NULL if the post was made by Amanuensis
|
||||||
|
user_id = Column(Integer, ForeignKey('user.id'), nullable=True)
|
||||||
|
|
||||||
################
|
################
|
||||||
# Post content #
|
# Post content #
|
||||||
|
|
Loading…
Reference in New Issue