(Reminders): Created reminders module and system.

This commit is contained in:
2021-09-15 19:58:32 +03:00
parent bac72194a3
commit 2acef999c5
7 changed files with 452 additions and 0 deletions

View File

@@ -107,6 +107,19 @@ CREATE TABLE tasklist_reward_history(
CREATE INDEX tasklist_reward_history_members ON tasklist_reward_history (guildid, userid, reward_time);
-- }}}
-- Reminder data {{{
CREATE TABLE reminders(
reminderid SERIAL PRIMARY KEY,
userid BIGINT NOT NULL,
remind_at TIMESTAMP NOT NULL,
content TEXT NOT NULL,
message_link TEXT,
interval INTEGER,
created_at TIMESTAMP DEFAULT (now() at time zone 'utc')
);
CREATE INDEX reminder_users ON reminders (userid);
-- }}}
-- Study tracking data {{{
CREATE TABLE untracked_channels(
guildid BIGINT NOT NULL,