From 3fed1603030655be2d202b9fdd37f8393df277ef Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sat, 28 Dec 2024 03:56:38 -0500 Subject: [PATCH] add user_pauses table to db --- nomen/db.py | 7 +++++++ 1 file changed, 7 insertions(+) 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); """