adds server to serve the static files, fixes db tables

This commit is contained in:
2019-06-18 15:44:49 +02:00
parent ef9124cc74
commit 9b3df58a08
9 changed files with 44 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
CREATE TABLE looted (
id INTEGER PRIMARY KEY,
id INTEGER PRIMARY KEY NOT NULL,
player_id INTEGER NOT NULL,
item_id INTEGER NOT NULL,
acquired_date DATE DEFAULT NOW,
acquired_date DATE NOT NULL,
FOREIGN KEY (player_id) REFERENCES players(id),
FOREIGN KEY (item_id) REFERENCES items(id)
);