diff --git a/nomen/db.py b/nomen/db.py index 68ef619..b9f69f3 100644 --- a/nomen/db.py +++ b/nomen/db.py @@ -52,9 +52,16 @@ CREATE TABLE user_blocks ( PRIMARY KEY (user_id, target) ); +CREATE TABLE user_pauses ( + user_id INTEGER NOT NULL REFERENCES users ON DELETE CASCADE, + guild_id INTEGER NOT NULL, + PRIMARY KEY (user_id, guild_id) +); + CREATE INDEX keywords_index ON keywords(user_id); CREATE INDEX user_ignores_index ON user_ignores(user_id); CREATE INDEX user_blocks_index ON user_blocks(user_id); +CREATE INDEX user_pauses_index ON user_pauses(user_id); """