feat: chat — group chat creation (create-group view, backend endpoint, group room display)

This commit is contained in:
2026-04-14 17:36:04 +03:00
parent b91a75c89f
commit 8353eb7c7f
4 changed files with 176 additions and 11 deletions

View File

@@ -0,0 +1,4 @@
-- Allow 'group' room type (drop old check constraint, add new one)
ALTER TABLE chat_rooms DROP CONSTRAINT IF EXISTS chat_rooms_type_check;
ALTER TABLE chat_rooms ADD CONSTRAINT chat_rooms_type_check
CHECK (type IN ('general', 'direct', 'notifications', 'group'));