fix import
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user