|
|
@ -54,9 +54,9 @@ class User(Base): |
|
|
|
id = Column(Integer, primary_key=True) |
|
|
|
id = Column(Integer, primary_key=True) |
|
|
|
#: unique user name |
|
|
|
#: unique user name |
|
|
|
username = Column(Text, nullable=False, unique=True) |
|
|
|
username = Column(Text, nullable=False, unique=True) |
|
|
|
#: hashed password, see ``ordr2.security`` |
|
|
|
#: hashed password, see :mod:`ordr2.security` |
|
|
|
password_hash = Column(Text, nullable=False) |
|
|
|
password_hash = Column(Text, nullable=False) |
|
|
|
#: role of the user, see ``ordr2.models.users.Role`` |
|
|
|
#: role of the user, see :class:`ordr2.models.users.Role` |
|
|
|
role = Column(Enum(Role), nullable=False) |
|
|
|
role = Column(Enum(Role), nullable=False) |
|
|
|
|
|
|
|
|
|
|
|
first_name = Column(Text, nullable=False) |
|
|
|
first_name = Column(Text, nullable=False) |
|
|
|