soundfx-bot/migrations/20230816145151_favorite_sounds.sql

7 lines
234 B
MySQL
Raw Normal View History

2023-08-16 15:47:33 +00:00
CREATE TABLE favorite_sounds (
user_id BIGINT UNSIGNED NOT NULL,
sound_id INT UNSIGNED NOT NULL,
FOREIGN KEY (sound_id) REFERENCES `sounds`(`id`) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (user_id, sound_id)
);