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:
@@ -145,10 +145,20 @@ model NotificationProvider {
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user