added base-level multi-client support to table
This commit is contained in:
parent
eb8db81789
commit
40afb93d61
BIN
database.sqlite3
BIN
database.sqlite3
Binary file not shown.
16
setup_db
16
setup_db
@ -6,19 +6,29 @@ sqlite3 database.sqlite3 "
|
|||||||
x TEXT,
|
x TEXT,
|
||||||
y TEXT,
|
y TEXT,
|
||||||
occupied_by_type TEXT,
|
occupied_by_type TEXT,
|
||||||
occupied_by_id INTEGER
|
occupied_by_id INTEGER,
|
||||||
|
game_ref INTEGER
|
||||||
);
|
);
|
||||||
CREATE TABLE IF NOT EXISTS entity_ref (
|
CREATE TABLE IF NOT EXISTS entity_ref (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
entity_id INTEGER,
|
entity_id INTEGER,
|
||||||
type TEXT,
|
type TEXT,
|
||||||
hp INTEGER,
|
hp INTEGER,
|
||||||
inventory_ref INTEGER
|
inventory_ref INTEGER,
|
||||||
|
game_ref INTEGER
|
||||||
);
|
);
|
||||||
CREATE TABLE IF NOT EXISTS player_inventory (
|
CREATE TABLE IF NOT EXISTS player_inventory (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
type TEXT,
|
type TEXT,
|
||||||
quantity INTEGER,
|
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
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user