feat(search): add unified global search for users/chats/messages
Some checks failed
CI / test (push) Failing after 24s

This commit is contained in:
2026-03-08 09:41:20 +03:00
parent 76ab9c72f5
commit bc483afd78
8 changed files with 185 additions and 15 deletions

12
app/search/schemas.py Normal file
View File

@@ -0,0 +1,12 @@
from pydantic import BaseModel
from app.chats.schemas import ChatDiscoverRead
from app.messages.schemas import MessageRead
from app.users.schemas import UserSearchRead
class GlobalSearchRead(BaseModel):
users: list[UserSearchRead]
chats: list[ChatDiscoverRead]
messages: list[MessageRead]