From bade4a03b16d7c6377e2deee60b66c66dea851e2 Mon Sep 17 00:00:00 2001 From: skull132 Date: Wed, 21 Jan 2015 00:05:30 +0200 Subject: [PATCH] Aurora's SQL Schema Will be updated as more tables are incorporated. --- SQL/aurora_schema.sql | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 SQL/aurora_schema.sql diff --git a/SQL/aurora_schema.sql b/SQL/aurora_schema.sql new file mode 100644 index 00000000..a6729e81 --- /dev/null +++ b/SQL/aurora_schema.sql @@ -0,0 +1,35 @@ +-- ------------------------------ +-- Custom Items Table +-- tgstation.aurora_customitems +-- ------------------------------ +CREATE TABLE `aurora_customitems` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, + `ckey` VARCHAR(32) NOT NULL, + `character` VARCHAR(32) NOT NULL, + `item` VARCHAR(124) NOT NULL, + `job` TEXT NULL, -- Job restrictions go here. Can be left blank. Format is Job One,Job Two,Job Three Point Five + PRIMARY KEY (`id`) +) ENGINE=INNODB DEFAULT CHARSET=LATIN1; + +-- ------------------------------ +-- Blacklisted IP table +-- tgstation.aurora_ipblacklist +-- ------------------------------ +CREATE TABLE `aurora_ipblacklist` ( + `id` INT(11) NOT NULL AUTO_INCREMENT, -- Auto-incremented, had issues with a missing ID field, so here + `ip` VARCHAR(32) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=INNODB DEFAULT CHARSET=LATIN1; + +-- ------------------------------ +-- Forms table +-- tgstation.aurora_forms +-- ------------------------------ +CREATE TABLE `aurora_forms` ( + `id` VARCHAR(4) NOT NULL, + `name` VARCHAR(32) NOT NULL, -- Name for the paper + `department` VARCHAR(32) NOT NULL, -- What department, one word, usually + `data` TEXT NOT NULL, -- The contents of the paper itself, formatted in BB + `info` TEXT NULL, -- Info for further request, plain text + PRIMARY KEY(`id`) +) ENGINE=INNODB DEFAULT CHARSET=LATIN1; \ No newline at end of file