adds history table

This commit is contained in:
artus committed 2019-10-27 15:52:46 +01:00
1 parent 559ce804a7
commit 40e39d5a65
3 files changed
+51

No files matched your search

@@ -0,0 +1 @@
DROP TABLE history;
@@ -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)
);