overhauled structure, leaderboardRoute.ts and userRoute.ts working
This commit is contained in:
parent
c2cd74ebe2
commit
fff55edf79
25 changed files with 315 additions and 212 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue