1
0
Fork 0
mirror of https://github.com/mCaptcha/mCaptcha.git synced 2025-03-30 13:18:58 +03:00
mCaptcha/db/db-sqlx-postgres/migrations/20210310122902_mcaptcha_levels.sql

10 lines
367 B
SQL

-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
CREATE TABLE IF NOT EXISTS mcaptcha_levels (
config_id INTEGER references mcaptcha_config(config_id) ON DELETE CASCADE,
difficulty_factor INTEGER NOT NULL,
visitor_threshold INTEGER NOT NULL,
level_id SERIAL PRIMARY KEY NOT NULL
);