ente/server/migrations/17_add_notification_history_table.up.sql

11 lines
265 B
MySQL
Raw Normal View History

2024-03-01 08:07:01 +00:00
CREATE TABLE IF NOT EXISTS notification_history (
user_id INTEGER NOT NULL,
template_id TEXT NOT NULL,
sent_time BIGINT NOT NULL,
CONSTRAINT fk_notification_history_user_id
FOREIGN KEY(user_id)
REFERENCES users(user_id)
ON DELETE CASCADE
);