add async with all functions

This commit is contained in:
2026-10-23 00:20:58 +03:00
parent a85702a30e
commit 7b7ca1b888
42 changed files with 901 additions and 763 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class Chat(Base):
* title: str(100), NOT NULL
* created_at: datetime(timezone), NOT NULL, server_default=now()
* relationship members -> ChatMember (cascade="all, delete-orphan"),
lazy="selectin": чтобы получать member_ids без N+1 запросов
lazy="selectin": ОБЯЗАТЕЛЬНО в async (ленивой загрузки нет -> MissingGreenlet)
* индекс для GET /chats: см. storage.chats.list_chats_for_user
(подумайте, по каким колонкам идёт сортировка и фильтр по участнику)
"""