Abuse-monitor: Support tracking stats (#8575)

This commit is contained in:
Mia
2021-12-23 17:56:25 -06:00
committed by GitHub
parent 62045438ba
commit cee8f5a12c
2 changed files with 99 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
-- Creates stats tables for the Perspective moderation tool.
BEGIN TRANSACTION;
CREATE TABLE perspective_stats (
staff TEXT NOT NULL,
roomid TEXT NOT NULL PRIMARY KEY,
result TINYINT(1) NOT NULL,
timestamp INTEGER NOT NULL
);
CREATE INDEX date_idx ON perspective_stats(date);
-- update database version
UPDATE db_info SET value = '5' WHERE key = 'version';
COMMIT;