adds history table

This commit is contained in:
2019-10-27 15:52:46 +01:00
parent 559ce804a7
commit 40e39d5a65
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1 @@
DROP TABLE history;

View File

@@ -0,0 +1,8 @@
CREATE TABLE history (
id INTEGER PRIMARY KEY NOT NULL,
player_id INTEGER NOT NULL,
event_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
text VARCHAR NOT NULL,
updates VARCHAR,
FOREIGN KEY (player_id) REFERENCES players(id)
);