23 lines
932 B
SQL
23 lines
932 B
SQL
INSERT INTO users (userId,displayName,isFollower,isSubscriber) VALUES
|
|
(001,'user',false,false),
|
|
(002,'follower',true,false),
|
|
(003,'subscriber',true,true),
|
|
(004,'subnonfollower',false,true);
|
|
|
|
/* INSERT INTO requests (url,requester,state) VALUES
|
|
('https://www.youtube.com/watch?v=dQw4w9WgXcQ',001,'Rejected'),
|
|
('https://www.youtube.com/watch?v=C5oeWHngDS4',002,'Requested'),
|
|
('https://www.youtube.com/watch?v=vXaJGBLRA_o',003,'Requested'); */
|
|
|
|
CALL add_request('https://www.youtube.com/watch?v=dQw4w9WgXcQ',001);
|
|
CALL add_request('https://www.youtube.com/watch?v=C5oeWHngDS4',002);
|
|
CALL add_request('https://www.youtube.com/watch?v=vXaJGBLRA_o',003);
|
|
|
|
UPDATE requests SET state = 'Rejected' WHERE url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
|
|
|
|
INSERT INTO votes (requestUrl,userid) VALUES
|
|
('https://www.youtube.com/watch?v=C5oeWHngDS4',001),
|
|
('https://www.youtube.com/watch?v=C5oeWHngDS4',003);
|
|
|
|
CALL update_scores();
|