feat: persist messenger data and sessions in PostgreSQL

This commit is contained in:
Artem
2026-12-04 20:56:56 +03:00
parent 65003b6119
commit 4abfcf2cd9
25 changed files with 1632 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
export interface Key { id: string; created_at: string }
export interface CreateUser { username: string; display_name: string }
export interface User extends Key, CreateUser {}
export interface CreateChat { title: string; member_ids: string[] }
export interface Chat extends Key, CreateChat {}
export interface CreateMessage { text: string }
export interface Message extends Key, CreateMessage { chat_id: string; sender_id: string }
export interface Page<T> { items: T[]; next_cursor: string | null }