mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Notification Test model and migrations
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -219,6 +219,12 @@ exports.Prisma.NotificationProviderScalarFieldEnum = {
|
||||
config: 'config'
|
||||
};
|
||||
|
||||
exports.Prisma.NotificationTestScalarFieldEnum = {
|
||||
id: 'id',
|
||||
notificationProviderId: 'notificationProviderId',
|
||||
success: 'success'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -257,7 +263,8 @@ exports.Prisma.ModelName = {
|
||||
ApplicationMonitoring: 'ApplicationMonitoring',
|
||||
ServerMonitoringNotification: 'ServerMonitoringNotification',
|
||||
ApplicationMonitoringNotification: 'ApplicationMonitoringNotification',
|
||||
NotificationProvider: 'NotificationProvider'
|
||||
NotificationProvider: 'NotificationProvider',
|
||||
NotificationTest: 'NotificationTest'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
1578
prisma/generated/prisma/index.d.ts
vendored
1578
prisma/generated/prisma/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "prisma-client-19bcb3aaef20e52de0ea97ea43c6350ef348393f05284ca1b48815e9775e6aa7",
|
||||
"name": "prisma-client-2fec847da0083065385189c4f35689219e1cfa753e77e6bee4a71c77e07624c0",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"browser": "index-browser.js",
|
||||
|
||||
@@ -139,14 +139,24 @@ model ApplicationMonitoringNotification {
|
||||
}
|
||||
|
||||
model NotificationProvider {
|
||||
id Int @id @default(autoincrement())
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
type NotificationType
|
||||
config Json
|
||||
tests NotificationTest[]
|
||||
|
||||
@@map("notification_providers")
|
||||
}
|
||||
|
||||
model NotificationTest {
|
||||
id Int @id @default(autoincrement())
|
||||
notificationProvider NotificationProvider @relation(fields: [notificationProviderId], references: [id], onDelete: Cascade)
|
||||
notificationProviderId Int
|
||||
success Boolean
|
||||
|
||||
@@map("notification_tests")
|
||||
}
|
||||
|
||||
enum NotificationType {
|
||||
TELEGRAM
|
||||
}
|
||||
|
||||
@@ -219,6 +219,12 @@ exports.Prisma.NotificationProviderScalarFieldEnum = {
|
||||
config: 'config'
|
||||
};
|
||||
|
||||
exports.Prisma.NotificationTestScalarFieldEnum = {
|
||||
id: 'id',
|
||||
notificationProviderId: 'notificationProviderId',
|
||||
success: 'success'
|
||||
};
|
||||
|
||||
exports.Prisma.SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -257,7 +263,8 @@ exports.Prisma.ModelName = {
|
||||
ApplicationMonitoring: 'ApplicationMonitoring',
|
||||
ServerMonitoringNotification: 'ServerMonitoringNotification',
|
||||
ApplicationMonitoringNotification: 'ApplicationMonitoringNotification',
|
||||
NotificationProvider: 'NotificationProvider'
|
||||
NotificationProvider: 'NotificationProvider',
|
||||
NotificationTest: 'NotificationTest'
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user