stats endpoint

This commit is contained in:
realaravinth
2021-07-25 21:15:59 +05:30
parent 0a8d36dc9f
commit 8830961e04
9 changed files with 239 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS mcaptcha_pow_fetched_stats (
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
fetched_at timestamptz NOT NULL DEFAULT now()
time timestamptz NOT NULL DEFAULT now()
);

View File

@@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS mcaptcha_pow_solved_stats (
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
solved_at timestamptz NOT NULL DEFAULT now()
time timestamptz NOT NULL DEFAULT now()
);

View File

@@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS mcaptcha_pow_confirmed_stats (
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
confirmed_at timestamptz NOT NULL DEFAULT now()
time timestamptz NOT NULL DEFAULT now()
);