add user_pauses table to db

This commit is contained in:
Infinidoge 2024-12-28 03:56:38 -05:00
parent a184ba5239
commit 3fed160303
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -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);
"""