summaryrefslogtreecommitdiff
path: root/app/backend/rcal
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-03-14 19:49:38 +0100
committeremkael <emkael@tlen.pl>2017-03-14 19:49:38 +0100
commitffa472d81caecae933000d58033de7b0a99cdb5a (patch)
tree357bf20c50961e3f42817603d52d28144d297d39 /app/backend/rcal
parent90e9bb090d8d4cc9099a15b925ccd2f19b5d31c8 (diff)
* model for user registration confirmation process
Diffstat (limited to 'app/backend/rcal')
-rw-r--r--app/backend/rcal/model.py7
1 files changed, 6 insertions, 1 deletions
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')