From 93bffa29cc7bcab6efe2b2c9c68c5159d78324a6 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Sat, 19 Apr 2025 13:07:09 +0200 Subject: [PATCH] Add new fields for Gotify and ntfy integration in notification model --- package-lock.json | 15 +++++++++++++++ .../migration.sql | 5 +++++ prisma/schema.prisma | 4 ++++ 3 files changed, 24 insertions(+) create mode 100644 prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql diff --git a/package-lock.json b/package-lock.json index 06fb48d..16d96ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4657,6 +4657,21 @@ "optional": true } } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.3.0.tgz", + "integrity": "sha512-vHUQS4YVGJPmpjn7r5lEZuMhK5UQBNBRSB+iGDvJjaNk649pTIcRluDWNb9siunyLLiu/LDPHfvxBtNamyuLTw==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } } } } diff --git a/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql b/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql new file mode 100644 index 0000000..0fa4612 --- /dev/null +++ b/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "notification" ADD COLUMN "gotifyToken" TEXT, +ADD COLUMN "gotifyUrl" TEXT, +ADD COLUMN "ntfyToken" TEXT, +ADD COLUMN "ntfyUrl" TEXT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 3760f31..6dc7836 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -72,4 +72,8 @@ model notification { telegramChatId String? telegramToken String? discordWebhook String? + gotifyUrl String? + gotifyToken String? + ntfyUrl String? + ntfyToken String? } \ No newline at end of file