learn-request-queue/db/testdata.sql

18 lines
694 B
MySQL
Raw Normal View History

2020-09-11 05:42:37 +00:00
INSERT INTO users (userid,displayName,isFollower,isSubscriber) VALUES
2020-08-12 19:39:31 +00:00
(001,'TestUser',false,false),
(002,'TestFollower',true,false),
(003,'TestSubscriber',true,true),
2020-11-08 18:51:44 +00:00
(004,'TestSubNonFollower',false,true);
2020-08-08 04:32:06 +00:00
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();