mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-23 10:26:42 +00:00
Prisma notification model
This commit is contained in:
parent
7e82b42b29
commit
4b29f7cbed
@ -0,0 +1,18 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "notification" (
|
||||
"id" SERIAL NOT NULL,
|
||||
"enabled" BOOLEAN NOT NULL DEFAULT true,
|
||||
"type" TEXT NOT NULL,
|
||||
"smtpHost" TEXT,
|
||||
"smtpPort" INTEGER,
|
||||
"smtpFrom" TEXT,
|
||||
"smtpUser" TEXT,
|
||||
"smtpPass" TEXT,
|
||||
"smtpSecure" BOOLEAN,
|
||||
"smtpTo" TEXT,
|
||||
"telegramChatId" TEXT,
|
||||
"telegramToken" TEXT,
|
||||
"discordWebhook" TEXT,
|
||||
|
||||
CONSTRAINT "notification_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
@ -53,4 +53,20 @@ model user {
|
||||
id String @id @default(uuid())
|
||||
email String @unique
|
||||
password String
|
||||
}
|
||||
|
||||
model notification {
|
||||
id Int @id @default(autoincrement())
|
||||
enabled Boolean @default(true)
|
||||
type String
|
||||
smtpHost String?
|
||||
smtpPort Int?
|
||||
smtpFrom String?
|
||||
smtpUser String?
|
||||
smtpPass String?
|
||||
smtpSecure Boolean?
|
||||
smtpTo String?
|
||||
telegramChatId String?
|
||||
telegramToken String?
|
||||
discordWebhook String?
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user