summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-08-30 12:29:19 -0700
committerJesse Morgan <jesse@jesterpm.net>2017-09-04 11:16:53 -0700
commite121bbebe3ccd990b66a7b04289adf481a4aa2af (patch)
tree5955357921d66db47769cba75d950cea3894dd04 /design
parent558684e32769d9dbd0d27a6feb3bbb9cf9aa22d7 (diff)
Working on the moderation schedule iterator
Diffstat (limited to 'design')
-rw-r--r--design/database.sql16
1 files changed, 16 insertions, 0 deletions
diff --git a/design/database.sql b/design/database.sql
index 2dbd90c..b908bc0 100644
--- a/design/database.sql
+++ b/design/database.sql
@@ -94,6 +94,22 @@ CREATE TABLE page (
UNIQUE KEY(url)
);
+CREATE TABLE moderator_schedule (
+ position TINYINT UNSIGNED NOT NULL,
+ user_id INTEGER UNSIGNED NOT NULL,
+
+ PRIMARY KEY(position, user_id)
+);
+
+CREATE TABLE moderator_exceptions (
+ year INTEGER UNSIGNED NOT NULL,
+ week TINYINT UNSIGNED NOT NULL,
+ user_id INTEGER UNSIGNED NOT NULL,
+
+ PRIMARY KEY(year, week)
+);
+
+
-- The following creates some sample data
INSERT INTO `category` (`shortname`, `name`, `description`, `options`)
VALUES