mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-30 13:18:58 +03:00
14 lines
523 B
SQL
14 lines
523 B
SQL
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
-- Add migration script here
|
|
CREATE TABLE IF NOT EXISTS mcaptcha_notifications (
|
|
id SERIAL PRIMARY KEY NOT NULL,
|
|
tx INTEGER NOT NULL references mcaptcha_users(ID) ON DELETE CASCADE,
|
|
rx INTEGER NOT NULL references mcaptcha_users(ID) ON DELETE CASCADE,
|
|
heading varchar(30) NOT NULL,
|
|
message varchar(250) NOT NULL,
|
|
read BOOLEAN DEFAULT NULL,
|
|
received timestamptz NOT NULL DEFAULT now()
|
|
);
|