feat: chat — group chat creation (create-group view, backend endpoint, group room display)
This commit is contained in:
4
backend/migrations/076_chat_group_rooms.sql
Normal file
4
backend/migrations/076_chat_group_rooms.sql
Normal 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'));
|
||||
Reference in New Issue
Block a user