2025-04-11 16:51:50 +02:00
|
|
|
// This is your Prisma schema file,
|
|
|
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
|
|
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
|
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
|
|
|
|
|
|
generator client {
|
|
|
|
|
provider = "prisma-client-js"
|
2025-04-30 19:32:35 +02:00
|
|
|
binaryTargets = ["native", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
|
2025-04-11 16:51:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
|
provider = "postgresql"
|
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model application {
|
|
|
|
|
id Int @id @default(autoincrement())
|
2025-04-12 13:19:52 +02:00
|
|
|
serverId Int @default(1)
|
2025-04-11 16:51:50 +02:00
|
|
|
name String
|
|
|
|
|
description String?
|
|
|
|
|
icon String
|
|
|
|
|
publicURL String
|
|
|
|
|
localURL String?
|
2025-04-27 14:45:09 +02:00
|
|
|
uptimecheckUrl String?
|
2025-04-11 22:55:17 +02:00
|
|
|
createdAt DateTime @default(now())
|
2025-04-12 16:19:35 +02:00
|
|
|
online Boolean @default(true)
|
2025-04-12 12:33:37 +02:00
|
|
|
}
|
|
|
|
|
|
2025-04-14 22:16:22 +02:00
|
|
|
model uptime_history {
|
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
|
applicationId Int @default(1)
|
|
|
|
|
online Boolean @default(true)
|
|
|
|
|
createdAt DateTime @default(now())
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-21 13:25:55 +02:00
|
|
|
model server_history {
|
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
|
serverId Int @default(1)
|
|
|
|
|
online Boolean @default(true)
|
|
|
|
|
cpuUsage String?
|
|
|
|
|
ramUsage String?
|
|
|
|
|
diskUsage String?
|
2025-04-28 19:48:30 +02:00
|
|
|
gpuUsage String?
|
|
|
|
|
temp String?
|
2025-04-21 13:25:55 +02:00
|
|
|
createdAt DateTime @default(now())
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-12 12:33:37 +02:00
|
|
|
model server {
|
|
|
|
|
id Int @id @default(autoincrement())
|
2025-04-18 11:33:20 +02:00
|
|
|
host Boolean @default(false)
|
2025-04-18 12:11:12 +02:00
|
|
|
hostServer Int?
|
2025-04-12 12:33:37 +02:00
|
|
|
name String
|
2025-04-19 15:17:20 +02:00
|
|
|
icon String?
|
2025-04-12 12:33:37 +02:00
|
|
|
os String?
|
|
|
|
|
ip String?
|
|
|
|
|
url String?
|
2025-04-12 21:00:18 +02:00
|
|
|
cpu String?
|
|
|
|
|
gpu String?
|
|
|
|
|
ram String?
|
|
|
|
|
disk String?
|
2025-04-19 21:47:00 +02:00
|
|
|
monitoring Boolean @default(false)
|
|
|
|
|
monitoringURL String?
|
|
|
|
|
cpuUsage String?
|
|
|
|
|
ramUsage String?
|
|
|
|
|
diskUsage String?
|
|
|
|
|
online Boolean @default(true)
|
2025-04-26 15:13:00 +02:00
|
|
|
uptime String?
|
2025-04-28 19:48:30 +02:00
|
|
|
gpuUsage String?
|
|
|
|
|
temp String?
|
2025-04-12 15:58:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model settings {
|
2025-04-14 19:44:16 +02:00
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
|
uptime_checks Boolean @default(true)
|
2025-04-21 13:15:30 +02:00
|
|
|
notification_text_application String?
|
|
|
|
|
notification_text_server String?
|
2025-04-14 19:44:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model user {
|
|
|
|
|
id String @id @default(uuid())
|
|
|
|
|
email String @unique
|
|
|
|
|
password String
|
2025-04-17 13:07:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model notification {
|
|
|
|
|
id Int @id @default(autoincrement())
|
2025-04-27 14:45:09 +02:00
|
|
|
name String
|
2025-04-17 13:07:19 +02:00
|
|
|
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?
|
2025-04-19 13:07:09 +02:00
|
|
|
gotifyUrl String?
|
|
|
|
|
gotifyToken String?
|
|
|
|
|
ntfyUrl String?
|
|
|
|
|
ntfyToken String?
|
2025-04-21 15:27:40 +02:00
|
|
|
pushoverUrl String?
|
|
|
|
|
pushoverToken String?
|
|
|
|
|
pushoverUser String?
|
2025-04-29 22:20:18 +02:00
|
|
|
echobellURL String?
|
2025-04-23 21:04:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model test_notification {
|
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
|
notificationId Int
|
|
|
|
|
}
|