35769-vm/db/migrations/003_create_conversation_participants_table.sql
Flatlogic Bot 2516f4214e 3
2025-11-17 01:22:13 +00:00

7 lines
267 B
SQL

CREATE TABLE IF NOT EXISTS conversation_participants (
id INT AUTO_INCREMENT PRIMARY KEY,
conversation_id INT NOT NULL,
user_id INT NOT NULL,
FOREIGN KEY (conversation_id) REFERENCES conversations(id),
FOREIGN KEY (user_id) REFERENCES users(id)
);