Skip to content

Commit

Permalink
insert schema for authors and games
Browse files Browse the repository at this point in the history
  • Loading branch information
DevKaranJ committed Dec 21, 2023
1 parent 0734a4c commit 179aefb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-- Authors Table
CREATE TABLE authors (
id INTEGER PRIMARY KEY AUTOINCREMENT,
first_name TEXT,
last_name TEXT
);

-- Games Table
CREATE TABLE games (
id INTEGER PRIMARY KEY AUTOINCREMENT,
genre TEXT,
source TEXT,
label TEXT,
publish_date DATE,
multiplayer BOOLEAN,
last_played_at DATE,
author_id INTEGER,
FOREIGN KEY (author_id) REFERENCES authors(id)
);

0 comments on commit 179aefb

Please sign in to comment.