fix import
This commit is contained in:
parent
30362efcc0
commit
5f6eb70382
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user