mCaptcha/db/db-sqlx-maria/migrations/20210509135118_mcaptcha_pow_solved_stats.sql
2022-07-23 11:59:42 +05:30

10 lines
287 B
SQL

CREATE TABLE IF NOT EXISTS mcaptcha_pow_solved_stats (
config_id INTEGER NOT NULL,
time timestamp NOT NULL DEFAULT now(),
CONSTRAINT `fk_mcaptcha_config_id_pow_solved_stats`
FOREIGN KEY (config_id)
REFERENCES mcaptcha_config (config_id)
ON DELETE CASCADE
ON UPDATE CASCADE
);