Skip to content

Commit

Permalink
fix(setup): fix db.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Aug 11, 2024
1 parent 0d28751 commit 0aa4848
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ CREATE TABLE users (
last_login_at timestamptz NOT NULL DEFAULT NOW()
);

CREATE INDEX IDX_users_email ON users (email);

CREATE TABLE scores (
id BIGSERIAL PRIMARY KEY,
datetime timestamptz NOT NULL,
Expand All @@ -53,7 +51,7 @@ CREATE TABLE scores (
CONSTRAINT fk_player
FOREIGN KEY(player_id)
REFERENCES users(id)
ON DELETE CASCADE ON UPDATE CASCADE;
ON DELETE CASCADE ON UPDATE CASCADE
);

CREATE UNIQUE INDEX IDX_scores_manual_scores on scores (player_id, start_level, competition) where manual;
Expand Down

0 comments on commit 0aa4848

Please sign in to comment.