Initial skellies for the user stuff
This commit is contained in:
@@ -32,11 +32,21 @@ CREATE TABLE IF NOT EXISTS "game_keys" (
|
||||
);
|
||||
"""
|
||||
|
||||
_user_table_create = """
|
||||
CREATE TABLE IF NOT EXISTS "" (
|
||||
"id": INTEGER NOT NULL,
|
||||
"username": TEXT NOT NULL,
|
||||
"hash": TEXT NOT NULL,
|
||||
PRIMARY KEY ("ID)
|
||||
);
|
||||
"""
|
||||
|
||||
|
||||
def init_db(connection):
|
||||
with SmartCursor(connection=connection) as smart_cursor:
|
||||
smart_cursor.execute(_game_table_create)
|
||||
smart_cursor.execute(_key_table_create)
|
||||
smart_cursor.execute(_user_table_create)
|
||||
connection.commit()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user