Initial skellies for the user stuff

This commit is contained in:
iamBadgers
2026-04-22 19:18:31 -07:00
parent 422ba48ce8
commit a0bc0f0feb
5 changed files with 105 additions and 10 deletions

View File

@@ -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()