Add game_ownership (schema v10) and tools/check_ownership.py, compare the local library with GetOwnedGames, expose owned/shared counts and filters, and show a shared-game badge on cards.
This commit is contained in:
1 parent
528fcb7474
commit
2ed00b7912
18 files changed
+255
-10
No files matched your search
@@ -25,6 +25,13 @@ CREATE TABLE IF NOT EXISTS games (
|
||||
updated_at TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS game_ownership (
|
||||
appid INTEGER PRIMARY KEY REFERENCES games(appid) ON DELETE CASCADE,
|
||||
owned INTEGER NOT NULL,
|
||||
checked_at TEXT NOT NULL
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_game_ownership_owned ON game_ownership(owned);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS game_genres (
|
||||
appid INTEGER NOT NULL REFERENCES games(appid) ON DELETE CASCADE,
|
||||
genre TEXT NOT NULL,
|
||||
|
||||
Reference in new issue
Block a user