Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
chore: add favorites to ViewUser
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Nov 24, 2024
1 parent 7b05ba2 commit 928c51d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/modules/users/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ class CreateUser(BaseSchema):
login: str
password: str


class UpdateFavoriteReq(BaseSchema):
favorite_ids: list[PydanticObjectId]


class ViewUser(BaseSchema):
id: PydanticObjectId
login: str
favorites: list[PydanticObjectId]


class UserAuthData(BaseSchema):
Expand Down

0 comments on commit 928c51d

Please sign in to comment.