add User return schema
This commit is contained in:
@@ -16,7 +16,9 @@ class UsersORM(Base):
|
||||
String(30), nullable=False, unique=True, index=True
|
||||
)
|
||||
hashed_password: Mapped[str] = mapped_column(String(255), nullable=False)
|
||||
email: Mapped[Optional[str]] = mapped_column(String(255), unique=True, nullable=True)
|
||||
email: Mapped[Optional[str]] = mapped_column(
|
||||
String(255), unique=True, nullable=True
|
||||
)
|
||||
telegram_id: Mapped[Optional[int]] = mapped_column(BigInteger, nullable=True)
|
||||
avatar_path: Mapped[Optional[str]] = mapped_column(String(255), nullable=True)
|
||||
is_active: Mapped[bool] = mapped_column(Boolean, nullable=False, default=True)
|
||||
|
||||
Reference in New Issue
Block a user