Notification Test model and migrations

This commit is contained in:
headlesdev
2025-05-24 13:07:18 +02:00
parent 16bba5e817
commit f80ea35213
9 changed files with 1646 additions and 15 deletions

View File

@@ -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
}