Achievements are now recorded in more detail such that they can be retrieved *as they were* at the time of earning

This commit is contained in:
Bryan Ashby 2019-01-20 21:58:00 -07:00
parent 18a7a79f14
commit 16e903d4c6
2 changed files with 96 additions and 27 deletions

View file

@ -195,6 +195,9 @@ const DB_INIT_TABLE = {
achievement_tag VARCHAR NOT NULL,
timestamp DATETIME NOT NULL,
match VARCHAR NOT NULL,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
points INTEGER NOT NULL,
UNIQUE(user_id, achievement_tag, match),
FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE
);`