add user_pauses table to db
This commit is contained in:
parent
a184ba5239
commit
3fed160303
1 changed files with 7 additions and 0 deletions
|
@ -52,9 +52,16 @@ CREATE TABLE user_blocks (
|
||||||
PRIMARY KEY (user_id, target)
|
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 keywords_index ON keywords(user_id);
|
||||||
CREATE INDEX user_ignores_index ON user_ignores(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_blocks_index ON user_blocks(user_id);
|
||||||
|
CREATE INDEX user_pauses_index ON user_pauses(user_id);
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue