added base-level multi-client support to table

This commit is contained in:
Jonathan 2024-03-20 15:29:41 -05:00
parent eb8db81789
commit 40afb93d61
2 changed files with 13 additions and 3 deletions

Binary file not shown.

View File

@ -6,19 +6,29 @@ sqlite3 database.sqlite3 "
x TEXT,
y TEXT,
occupied_by_type TEXT,
occupied_by_id INTEGER
occupied_by_id INTEGER,
game_ref INTEGER
);
CREATE TABLE IF NOT EXISTS entity_ref (
id INTEGER PRIMARY KEY AUTOINCREMENT,
entity_id INTEGER,
type TEXT,
hp INTEGER,
inventory_ref INTEGER
inventory_ref INTEGER,
game_ref INTEGER
);
CREATE TABLE IF NOT EXISTS player_inventory (
id INTEGER PRIMARY KEY AUTOINCREMENT,
type TEXT,
quantity INTEGER,
func_ref TEXT
game_ref INTEGER
);
CREATE TABLE IF NOT EXISTS games (
id INTEGER PRIMARY KEY AUTOINCREMENT,
player_id INTEGER
);
CREATE TABLE IF NOT EXISTS players (
id INTEGER PRIMARY KEY AUTOINCREMENT,
player_name TEXT
)
"