From 5f6eb7038210c40789d45a2ab58177b62f408482 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 29 Jul 2021 22:39:41 +0300 Subject: [PATCH] fix import --- orm/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)