Created diagnostic tools

This commit is contained in:
2019-06-04 04:00:36 +10:00
parent 8a6fdbd1c7
commit d1c32e7259
5 changed files with 67 additions and 0 deletions
+20
View File
@@ -1,3 +1,23 @@
#diagnostic system
CREATE TABLE IF NOT EXISTS diagnostics (
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY UNIQUE,
td TIMESTAMP DEFAULT CURRENT_TIMESTAMP(),
playerCount INTEGER NOT NULL DEFAULT 0,
totalGold INTEGER NOT NULL DEFAULT 0,
totalRecruitments INTEGER NOT NULL DEFAULT 0,
totalDeaths INTEGER NOT NULL DEFAULT 0,
totalCombats INTEGER NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS diagnosticsEvents (
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY UNIQUE,
td TIMESTAMP DEFAULT CURRENT_TIMESTAMP(),
eventName VARCHAR(50),
quantity INTEGER NOT NULL DEFAULT 1
);
# account system
CREATE TABLE IF NOT EXISTS signups (
email VARCHAR(320) UNIQUE,