|
|
@ -32,7 +32,7 @@ class User(UserMixin, SurrogatePK, Model): |
|
|
|
username = Column(db.String(80), unique=True, nullable=False) |
|
|
|
username = Column(db.String(80), unique=True, nullable=False) |
|
|
|
email = Column(db.String(80), unique=True, nullable=False) |
|
|
|
email = Column(db.String(80), unique=True, nullable=False) |
|
|
|
#: The hashed password |
|
|
|
#: The hashed password |
|
|
|
password = Column(db.String(128), nullable=True) |
|
|
|
password = Column(db.Binary(128), nullable=True) |
|
|
|
created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow) |
|
|
|
created_at = Column(db.DateTime, nullable=False, default=dt.datetime.utcnow) |
|
|
|
first_name = Column(db.String(30), nullable=True) |
|
|
|
first_name = Column(db.String(30), nullable=True) |
|
|
|
last_name = Column(db.String(30), nullable=True) |
|
|
|
last_name = Column(db.String(30), nullable=True) |
|
|
|