From ffa472d81caecae933000d58033de7b0a99cdb5a Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 14 Mar 2017 19:49:38 +0100 Subject: * model for user registration confirmation process --- app/backend/rcal/model.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/backend/rcal') diff --git a/app/backend/rcal/model.py b/app/backend/rcal/model.py index 61f0047..c795262 100644 --- a/app/backend/rcal/model.py +++ b/app/backend/rcal/model.py @@ -145,11 +145,15 @@ class User(BASE): id = Column(Integer, primary_key=True) login = Column(String(255), unique=True, index=True) password = Column(String(255)) + e_mail = Column(String(255)) + activation_hash = Column(String(32), index=True) + is_active = Column(Boolean, index=True) + activation_date = Column(UTCDateTime) + last_login = Column(UTCDateTime) is_admin = Column(Boolean) timezone = Column(String(255)) language = Column(String(8)) grouped_view = Column(Boolean) - last_login = Column(UTCDateTime) auth_keys = relationship( 'UserAuthKey', @@ -197,5 +201,6 @@ class MailQueue(BASE): default=0, server_default='0', index=True) create_time = Column(UTCDateTime, index=True) last_attempt_time = Column(UTCDateTime, index=True) + last_error_info = Column(Text) __all__ = ('Calendar', 'Entry', 'Category', 'User', 'UserAuthKey', 'MailQueue') -- cgit v1.2.3