Feat: enable alerts card on dashboard

This commit is contained in:
Cesar 2021-01-06 12:53:47 +00:00 committed by Josh Harvey
parent c7a01f840f
commit 3eac055294
8 changed files with 72 additions and 31 deletions

View file

@ -23,8 +23,7 @@ exports.up = function (next) {
"message" TEXT NOT NULL,
"created" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
"read" BOOLEAN NOT NULL DEFAULT 'false',
"valid" BOOLEAN NOT NULL DEFAULT 'true',
"modified" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
"valid" BOOLEAN NOT NULL DEFAULT 'true'
);
CREATE INDEX ON notifications (valid);
CREATE INDEX ON notifications (read);`