UPDATE: Added recommended categories as well as streamer data

BUGFIX: Fixed wrong datatypes
This commit is contained in:
JustIceO7
2025-01-31 03:52:25 +00:00
parent 908870f751
commit 1036494b7d
4 changed files with 42 additions and 25 deletions

View File

@@ -48,12 +48,4 @@ CREATE TABLE streams
category_id NOT NULL,
FOREIGN KEY (category_id) REFERENCES categories(category_id) ON DELETE CASCADE,
FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE
);
SELECT users.user_id, title, username, num_viewers, category_name
FROM streams
JOIN users ON users.user_id = streams.user_id
JOIN categories ON streams.category_id = categories.category_id
ORDER BY num_viewers DESC
LIMIT 25;
);