diff options
author | Lilian Teronen <lteronen@local> | 2023-11-27 01:37:03 +0200 |
---|---|---|
committer | Lilian Teronen <lteronen@local> | 2023-11-27 01:37:03 +0200 |
commit | 03b031ea793e91ce2f87cf28c73cefc8ce69a7b5 (patch) | |
tree | 882919559651e1b18904404ccc7c5106d167f1fd /SCHEMA.sql | |
parent | d2de3ae10b6f5314bd4b8243218212d2004f35b0 (diff) |
More rework on routes. Best and worst matches. More visuals.
Diffstat (limited to 'SCHEMA.sql')
-rw-r--r-- | SCHEMA.sql | 50 |
1 files changed, 18 insertions, 32 deletions
@@ -34,38 +34,24 @@ INSERT INTO users (nick, created) VALUES ('Raili Niemi', 57 ); INSERT INTO users (nick, created) VALUES ('Tea Jalava', 36 ); INSERT INTO users (nick, created) VALUES ('Eero Metsäranta', 47 ); INSERT INTO questions (question, neg_answer, pos_answer, created) - VALUES ('Mikä ikä?', '0', '100', 99 ); -INSERT INTO questions (question, neg_answer, pos_answer, created) - VALUES ('Mikä vointi?', 'huono', 'hyvä', 99 ); -INSERT INTO questions (question, neg_answer, pos_answer, created) - VALUES ('Ulkoiletko?', 'viime vuonna', 'joka päivä', 99 ); -INSERT INTO questions (question, neg_answer, pos_answer, created) - VALUES ('kys?', 'ei vielä', 'ei koskaan', 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (1, 1, 570, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (1, 2, 670, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (1, 3, 888, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (1, 4, 999, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (2, 1, 360, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (2, 2, 230, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (2, 3, 120, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (2, 4, 123, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (3, 1, 470, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (3, 2, 570, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (3, 3, 321, 99 ); -INSERT INTO answers (user_id, question_id, answer, created) - VALUES (3, 4, 785, 99 ); + VALUES ('Mikä ikä?', '0', '100', 99 ), + ('Mikä vointi?', 'huono', 'hyvä', 99 ), + ('Ulkoiletko?', 'viime vuonna', 'joka päivä', 99 ), + ('kys?', 'ei vielä', 'ei koskaan', 99 ); +INSERT INTO answers (user_id, question_id, answer, created) + VALUES (1, 1, 570, 99 ), + (1, 2, 670, 99 ), + (1, 3, 888, 99 ), + (1, 4, 999, 99 ), + (2, 1, 360, 99 ), + (2, 2, 230, 99 ), + (2, 3, 120, 99 ), + (2, 4, 123, 99 ), + (3, 1, 470, 99 ), + (3, 2, 570, 99 ), + (3, 3, 321, 99 ), + (3, 4, 785, 99 ); INSERT INTO questionaires (questionset, creator_id, created) VALUES ('{1,2,3,4}', 1, 666); INSERT INTO quiz_links (quiz_id, link, created) - VALUES (1, 'kyselama', 666); + VALUES (1, 'kysdemo', 666); |