Skip to content

Commit

Permalink
Add Game table in the schema.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Rysth committed Oct 18, 2023
1 parent 6df96e2 commit 3cb4a0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@ CREATE TABLE Book (
publisher VARCHAR(255) NOT NULL,
cover_state VARCHAR(50),
FOREIGN KEY (item_id) REFERENCES Item(id)
);

CREATE TABLE Game (
item_id INT PRIMARY KEY,
multiplayer BIT NOT NULL,
last_played_at DATE NOT NULL,
FOREIGN KEY (item_id) REFERENCES Item(id)
);

0 comments on commit 3cb4a0d

Please sign in to comment.