overhauled structure, leaderboardRoute.ts and userRoute.ts working

This commit is contained in:
j-weissen 2022-12-28 15:39:58 +01:00
parent c2cd74ebe2
commit fff55edf79
25 changed files with 315 additions and 212 deletions

View file

@ -4,7 +4,7 @@ CREATE TABLE "user" (
);
CREATE TABLE user_scores (
user_id INT PRIMARY KEY REFERENCES "user",
user_id INT PRIMARY KEY,
highscore INT NOT NULL DEFAULT 0,
total_score INT NOT NULL DEFAULT 0,
total_playtime TIME NOT NULL DEFAULT '00:00:00',