App-Erinnerungen per Web-Push (VAPID) ergaenzen

This commit is contained in:
torsten 2026-11-04 11:19:59 +01:00
parent af9bb67331
commit 6e30fea4e6
12 changed files with 1160 additions and 19 deletions

View file

@ -187,3 +187,18 @@ CREATE TABLE `password_resets` (
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `push_subscriptions`;
CREATE TABLE `push_subscriptions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`endpoint` varchar(1000) NOT NULL,
`endpoint_hash` char(64) NOT NULL,
`p256dh` varchar(120) NOT NULL,
`auth` varchar(40) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `push_subscriptions_endpoint_hash_unique` (`endpoint_hash`),
KEY `push_subscriptions_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;