Перенести чаты и сообщения в PostgreSQL

This commit is contained in:
2026-10-06 14:57:44 +03:00
parent 618d3919d1
commit 0b2db7eb2d
9 changed files with 559 additions and 499 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ import (
// ChatRepository stores chats and their membership. Membership is answered
// by queries; the projection with members is assembled by the store in one
// query, never by loading a member list into the entity.
// query, never by loading a member list into the entity. Members are always
// returned ordered by id.
type ChatRepository interface {
// Create stores the chat row and its members atomically.
Create(ctx context.Context, chat Chat, memberIDs []uuid.UUID) error