Added badge selection

This commit is contained in:
2019-06-08 10:20:10 +10:00
parent d8a7dd4933
commit 2a27572562
21 changed files with 396 additions and 15 deletions
+13 -1
View File
@@ -173,7 +173,7 @@ CREATE TABLE IF NOT EXISTS equipmentStolen (
pastSpyingId INTEGER UNSIGNED,
name VARCHAR(50),
name VARCHAR(50), #TODO: make this NOT NULL
quantity INTEGER,
type VARCHAR(50),
@@ -181,3 +181,15 @@ CREATE TABLE IF NOT EXISTS equipmentStolen (
CONSTRAINT FOREIGN KEY fk_pastSpyingId(pastSpyingId) REFERENCES pastSpying(id) ON UPDATE CASCADE ON DELETE CASCADE
);
#badge system
CREATE TABLE IF NOT EXISTS badges (
id INTEGER UNSIGNED AUTO_INCREMENT PRIMARY KEY UNIQUE,
td TIMESTAMP DEFAULT CURRENT_TIMESTAMP(),
accountId INTEGER UNSIGNED,
name VARCHAR(50) NOT NULL,
active BOOLEAN NOT NULL DEFAULT FALSE,
CONSTRAINT FOREIGN KEY fk_accountId(accountId) REFERENCES accounts(id) ON UPDATE CASCADE ON DELETE CASCADE
);