Add uptimecheckUrl to application model and name to notification model

This commit is contained in:
headlessdev 2025-04-27 14:45:09 +02:00
parent cba70d5aef
commit 70e28cb1c7
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
/*
Warnings:
- Added the required column `name` to the `notification` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "application" ADD COLUMN "uptimecheckUrl" TEXT;
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "name" TEXT NOT NULL;

View File

@ -21,6 +21,7 @@ model application {
icon String
publicURL String
localURL String?
uptimecheckUrl String?
createdAt DateTime @default(now())
online Boolean @default(true)
}
@ -79,6 +80,7 @@ model user {
model notification {
id Int @id @default(autoincrement())
name String
enabled Boolean @default(true)
type String
smtpHost String?