feat(notifications): add account-scoped inbox and persistent preferences
CI / check (push) Failing after 1m18s
CI / deploy (push) Skipped
CI / publish-container (push) Skipped

This commit is contained in:
Simo committed 2026-09-13 17:59:22 +02:00
1 parent 8f55ff2d17
commit 1eee6661f9
39 files changed
+1559 -3

No files matched your search

@@ -0,0 +1,13 @@
CREATE TABLE IF NOT EXISTS `website_notification_reads` (
`user_id` int NOT NULL,
`event_key` varchar(128) NOT NULL,
`read_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`user_id`, `event_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `website_notification_preferences` (
`user_id` int NOT NULL,
`support` boolean NOT NULL DEFAULT true,
`friends` boolean NOT NULL DEFAULT true,
`events` boolean NOT NULL DEFAULT true,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;