diff --git a/backend/src/storages/mongo/users.py b/backend/src/storages/mongo/users.py index 6bd3e37..11da942 100644 --- a/backend/src/storages/mongo/users.py +++ b/backend/src/storages/mongo/users.py @@ -2,9 +2,9 @@ from enum import StrEnum +from beanie import PydanticObjectId from pymongo import IndexModel -from beanie import PydanticObjectId from src.pydantic_base import BaseSchema from src.storages.mongo.__base__ import CustomDocument @@ -17,7 +17,7 @@ class UserRole(StrEnum): class UserSchema(BaseSchema): login: str password_hash: str - favorites: list[PydanticObjectId] + favorites: list[PydanticObjectId] = [] role: UserRole = UserRole.DEFAULT