diff --git a/database.sqlite3 b/database.sqlite3 index 625e132..2096b11 100644 Binary files a/database.sqlite3 and b/database.sqlite3 differ diff --git a/setup_db b/setup_db index 3e91186..0bc4302 100755 --- a/setup_db +++ b/setup_db @@ -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 ) "