diff --git a/orm/user.py b/orm/user.py index 98822eef..0268c5e5 100644 --- a/orm/user.py +++ b/orm/user.py @@ -1,6 +1,6 @@ from typing import List -from sqlalchemy import Column, Integer, String, relationship +from sqlalchemy import Column, Integer, String #, relationship from orm import Permission from orm.base import Base @@ -13,7 +13,7 @@ class User(Base): username: str = Column(String, nullable=False, comment="Name") password: str = Column(String, nullable=True, comment="Password") - # role_id: list = Column(ForeignKey("role.id"), nullable=True, comment="Roles") + role_id: list = Column(ForeignKey("role.id"), nullable=True, comment="Role") # roles = relationship("Role") TODO: one to many, see schema.graphql oauth_id: str = Column(String, nullable=True)