mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-30 15:08:29 +00:00
24 lines
631 B
SQL
24 lines
631 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 INT auto_increment,
|
|
PRIMARY KEY(id),
|
|
|
|
tx INT NOT NULL,
|
|
rx INT NOT NULL,
|
|
heading varchar(30) NOT NULL,
|
|
message varchar(250) NOT NULL,
|
|
-- todo: mv read -> read_notification
|
|
read_notification BOOLEAN DEFAULT null,
|
|
received timestamp NOT NULL DEFAULT now(),
|
|
|
|
CONSTRAINT `fk_mcaptcha_mcaptcha_user_notifications_tx`
|
|
FOREIGN KEY (tx)
|
|
REFERENCES mcaptcha_users (ID)
|
|
ON DELETE CASCADE
|
|
ON UPDATE CASCADE
|
|
);
|