Added badge selection
This commit is contained in:
@@ -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
|
||||
);
|
||||
Reference in New Issue
Block a user