From 42251bf0dfa2e948441c5256f531d222651dc6f3 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 5 May 2021 23:51:20 -0700 Subject: [PATCH] Add email column to user table --- amanuensis/db/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amanuensis/db/models.py b/amanuensis/db/models.py index d31f1b9..0fb21d6 100644 --- a/amanuensis/db/models.py +++ b/amanuensis/db/models.py @@ -64,6 +64,9 @@ class User(ModelBase): # Human-readable username as shown to other users display_name = Column(String, nullable=False) + # The user's email address + email = Column(String, nullable=False) + # Whether the user can access site admin functions is_site_admin = Column(Boolean, nullable=False, server_default=text('FALSE'))