Add email column to user table

This commit is contained in:
Tim Van Baak 2021-05-05 23:51:20 -07:00
parent 3ba138c81c
commit 42251bf0df
1 changed files with 3 additions and 0 deletions

View File

@ -64,6 +64,9 @@ class User(ModelBase):
# Human-readable username as shown to other users # Human-readable username as shown to other users
display_name = Column(String, nullable=False) display_name = Column(String, nullable=False)
# The user's email address
email = Column(String, nullable=False)
# Whether the user can access site admin functions # Whether the user can access site admin functions
is_site_admin = Column(Boolean, nullable=False, server_default=text('FALSE')) is_site_admin = Column(Boolean, nullable=False, server_default=text('FALSE'))