aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/models.py')
-rw-r--r--pyaggr3g470r/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py
index 491e1369..da9c2e25 100644
--- a/pyaggr3g470r/models.py
+++ b/pyaggr3g470r/models.py
@@ -39,7 +39,7 @@ class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key = True)
firstname = db.Column(db.String())
lastname = db.Column(db.String())
- email = db.Column(db.String(), index = True, unique = True)
+ email = db.Column(db.String(254), index = True, unique = True)
pwdhash = db.Column(db.String())
roles = db.relationship('Role', backref = 'user', lazy = 'dynamic')
date_created = db.Column(db.DateTime(), default=datetime.now)
bgstack15