1
0
Fork 0
mirror of https://github.com/mCaptcha/mCaptcha.git synced 2025-05-03 05:32:49 +03:00

feat: store pow performance statistics against statistics

This commit is contained in:
Aravinth Manivannan 2023-06-27 19:47:04 +05:30
parent 2a1bda653d
commit 5ae3b1f26e
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
8 changed files with 293 additions and 0 deletions
db/db-sqlx-postgres/migrations

View file

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS mcaptcha_pow_analytics (
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
time INTEGER NOT NULL,
difficulty_factor INTEGER NOT NULL,
worker_type VARCHAR(100) NOT NULL UNIQUE,
ID SERIAL PRIMARY KEY NOT NULL
);