INSERT INTO users(created_at, name, password) VALUES ('NOW', 'demo','$2a$10$7mfCBxBwIzXDU6r9az26o.zPX/r6IlNZVfU9zxSoLVtc0kRPimzba');
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'O dingos, o chateaux!','Jean-Patrick Manchette');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'O dingos, o chateaux!') ,7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Le petit bleu de la côte Ouest','Jean-Patrick Manchette');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Le petit bleu de la côte Ouest') ,7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'D''un château l''autre','Louis-Ferdinand Céline');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'D''un château l''autre') ,10);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Les dieux ont soif','Anatole France');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Les dieux ont soif') ,7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Rigodon','Louis-Ferdinand Céline');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Rigodon') ,10);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Un barrage contre le Pacifique','Marguerite Duras');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Un barrage contre le Pacifique') ,7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Salammbô','Flaubert Gustave');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Salammbô') ,8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Langage Machine','Romain Lucazeau');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Langage Machine') ,5);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'La Ville et les chiens','Mario Vargas Llosa');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'La Ville et les chiens'),6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'La Fille Du Capitaine','A. Pouchkine');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'La Fille Du Capitaine'),8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Aurélien','Louis Aragon');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Aurélien') ,8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Duo','Colette');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Duo'),9);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Gargantua','François Rabelais');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Gargantua'),7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'The Life of Jesus','Ernest Renan');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'The Life of Jesus'), NULL);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'L''Homme sans qualités, tome 1','Robert Musil');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'L''Homme sans qualités, tome 1') ,7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'The Green House','Mario Vargas Llosa');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'The Green House') ,6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Le coup de pistolet','Alexandre Pouchkine');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Le coup de pistolet'),8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'De sang-froid','Truman Capote');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'De sang-froid'),6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'La position du tireur couché','Jean-Patrick Manchette');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'La position du tireur couché'),6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Vers le Phare','Virginia Woolf');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Vers le Phare'),6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'L''insoutenable légèreté de l''être', 'Milan Kundera');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'L''insoutenable légèreté de l''être') ,8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Le complot contre l''Amérique','Philip Roth');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Le complot contre l''Amérique'),6);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Nord','Louis-Ferdinand Céline');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Nord'),10);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Sa majesté des mouches','William Golding');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Sa majesté des mouches'),5);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Le Pavillon d''or','Yukio Mishima');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Le Pavillon d''or'),8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Le meurtre d''O-tsuya','Junichiro Tanizaki');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Le meurtre d''O-tsuya'),7);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Dojoji et autres nouvelles','Yukio Mishima');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Dojoji et autres nouvelles'),8);
INSERT INTO books(created_at, title, author) VALUES ('NOW', 'Noisy outlaws, unfriendly blobs, and some other things that aren''t as scary, maybe, depending on how you feel about lost lands, stray cellphones, creatures from the sky, parents who disappear in Peru, a man named Lars Farf, and one other story we couldn''t quite finish, so maybe you could help us out','Wolfeschlegelsteinhausenbergerdorffwelchevoralternwarengewissenhaftschaferswessenschafewarenwohlgepf');
INSERT INTO user_books(created_at, user_id, book_id, rating) VALUES ('NOW',(SELECT id FROM users WHERE name = 'demo'),(SELECT id FROM books WHERE title = 'Noisy outlaws, unfriendly blobs, and some other things that aren''t as scary, maybe, depending on how you feel about lost lands, stray cellphones, creatures from the sky, parents who disappear in Peru, a man named Lars Farf, and one other story we couldn''t quite finish, so maybe you could help us out'),2);
