updated the schema for stats and run s

This commit is contained in:
2024-11-13 22:22:25 -05:00
parent 8942d53b13
commit 0a0236b273

View File

@@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS mp_character_instance (
character_guid INT UNSIGNED NOT NULL DEFAULT '0',
current_difficulty TINYINT UNSIGNED NOT NULL DEFAULT '1',
deaths INT UNSIGNED DEFAULT '0',
PRIMARY KEY (guid)
);
CREATE TABLE IF NOT EXISTS mp_character_dungeon_stats (
character_guid INT UNSIGNED NOT NULL DEFAULT '0',
dungeon_id INT UNSIGNED NOT NULL DEFAULT '0',
difficulty TINYINT UNSIGNED NOT NULL DEFAULT '0',
deaths INT UNSIGNED DEFAULT '0',
runs INT UNSIGNED DEFAULT '0',
completions INT UNSIGNED DEFAULT '0',
failures INT UNSIGNED DEFAULT '0',
total_time INT UNSIGNED DEFAULT '0',
best_time INT UNSIGNED DEFAULT '0',
PRIMARY KEY (guid, dungeon_id, difficulty)
);