FEAT: Added feature to return streamers data given their username
This commit is contained in:
Binary file not shown.
@@ -49,7 +49,7 @@ CREATE TABLE streams
|
||||
(
|
||||
user_id INTEGER NOT NULL PRIMARY KEY,
|
||||
title TEXT NOT NULL,
|
||||
datetime DATETIME NOT NULL,
|
||||
start_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
num_viewers INTEGER NOT NULL DEFAULT 0,
|
||||
category_id INTEGER NOT NULL,
|
||||
FOREIGN KEY (category_id) REFERENCES categories(category_id),
|
||||
|
||||
@@ -53,7 +53,7 @@ INSERT INTO categories (category_name) VALUES
|
||||
('Sports');
|
||||
|
||||
-- Sample Data for streams
|
||||
INSERT INTO streams (user_id, title, datetime, num_viewers, category_id) VALUES
|
||||
INSERT INTO streams (user_id, title, start_time, num_viewers, category_id) VALUES
|
||||
(1, 'Epic Gaming Session', '2025-01-25 18:00:00', 150, 1),
|
||||
(2, 'Live Music Jam', '2025-01-25 20:00:00', 350, 2),
|
||||
(3, 'Sketching Live', '2025-01-24 15:00:00', 80, 3),
|
||||
|
||||
Reference in New Issue
Block a user