ente/server/migrations/17_add_notification_history_table.up.sql
2024-03-01 13:37:01 +05:30

11 lines
265 B
SQL

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
);