Enhance Service Messages by Config & activeUntil #9

This commit is contained in:
nocnico
2025-07-03 19:26:17 +02:00
parent e137b0c75e
commit ffe0d45ab6
9 changed files with 159 additions and 78 deletions

View File

@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `isMainMsg` on the `Notam` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "Notam" DROP COLUMN "isMainMsg";

View File

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Notam" ADD COLUMN "disableHPG" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "wartungsmodus" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Notam" ADD COLUMN "showUntilActive" BOOLEAN NOT NULL DEFAULT false;

View File

@@ -8,12 +8,14 @@ enum GlobalColor {
}
model Notam {
id Int @id @default(autoincrement())
color GlobalColor
message String
showUntil DateTime
isMainMsg Boolean
active Boolean
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
id Int @id @default(autoincrement())
color GlobalColor
message String
showUntil DateTime
showUntilActive Boolean @default(false)
wartungsmodus Boolean @default(false)
disableHPG Boolean @default(false)
active Boolean
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}