mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
chore: add webhook-call model
This commit is contained in:
@ -115,6 +115,25 @@ model Webhook {
|
||||
updatedAt DateTime @default(now()) @updatedAt
|
||||
userId Int
|
||||
User User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
WebhookCall WebhookCall[]
|
||||
}
|
||||
|
||||
enum WebhookCallStatus {
|
||||
SUCCESS
|
||||
FAILED
|
||||
}
|
||||
|
||||
model WebhookCall {
|
||||
id String @id @default(cuid())
|
||||
status WebhookCallStatus
|
||||
url String
|
||||
requestBody Json
|
||||
responseCode Int
|
||||
responseHeaders Json?
|
||||
responseBody Json?
|
||||
createdAt DateTime @default(now())
|
||||
webhookId String
|
||||
webhook Webhook @relation(fields: [webhookId], references: [id], onDelete: Cascade)
|
||||
}
|
||||
|
||||
enum ApiTokenAlgorithm {
|
||||
|
||||
Reference in New Issue
Block a user