fix import

This commit is contained in:
Untone 2021-07-29 22:39:41 +03:00
parent 30362efcc0
commit 5f6eb70382

View File

@ -1,6 +1,6 @@
from typing import List from typing import List
from sqlalchemy import Column, Integer, String, relationship from sqlalchemy import Column, Integer, String #, relationship
from orm import Permission from orm import Permission
from orm.base import Base from orm.base import Base
@ -13,7 +13,7 @@ class User(Base):
username: str = Column(String, nullable=False, comment="Name") username: str = Column(String, nullable=False, comment="Name")
password: str = Column(String, nullable=True, comment="Password") 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 # roles = relationship("Role") TODO: one to many, see schema.graphql
oauth_id: str = Column(String, nullable=True) oauth_id: str = Column(String, nullable=True)