@@ -257,7 +257,6 @@ model Integration {
257
257
258
258
connections IntegrationConnection []
259
259
sources TriggerSource []
260
- webhooks Webhook []
261
260
RunConnection RunConnection []
262
261
263
262
@@unique ([organizationId , slug ] )
@@ -476,7 +475,6 @@ model Project {
476
475
runs JobRun []
477
476
sources TriggerSource []
478
477
httpEndpoints TriggerHttpEndpoint []
479
- webhooks Webhook []
480
478
backgroundWorkers BackgroundWorker []
481
479
backgroundWorkerTasks BackgroundWorkerTask []
482
480
taskRuns TaskRun []
@@ -668,8 +666,6 @@ model RunConnection {
668
666
createdAt DateTime @default (now () )
669
667
updatedAt DateTime @updatedAt
670
668
671
- tasks Task []
672
-
673
669
@@unique ([runId , key ] )
674
670
}
675
671
@@ -828,7 +824,6 @@ model JobRun {
828
824
829
825
forceYieldImmediately Boolean @default (false )
830
826
831
- tasks Task []
832
827
runConnections RunConnection []
833
828
834
829
@@index ([jobId , createdAt (sort : Desc ) ] , map : " idx_jobrun_jobId_createdAt " )
@@ -867,52 +862,6 @@ enum JobRunExecutionStatus {
867
862
FAILURE
868
863
}
869
864
870
- model Task {
871
- id String @id
872
- idempotencyKey String
873
- displayKey String ?
874
- name String
875
- icon String ?
876
-
877
- status TaskStatus @default (PENDING )
878
- delayUntil DateTime ?
879
- noop Boolean @default (false )
880
-
881
- description String ?
882
- properties Json ?
883
- outputProperties Json ?
884
- params Json ?
885
- output Json ?
886
- outputIsUndefined Boolean @default (false )
887
- context Json ?
888
- error String ?
889
- redact Json ?
890
- style Json ?
891
- operation String ?
892
- callbackUrl String ?
893
-
894
- startedAt DateTime ?
895
- completedAt DateTime ?
896
-
897
- createdAt DateTime @default (now () )
898
- updatedAt DateTime @updatedAt
899
-
900
- run JobRun @relation (fields : [runId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
901
- runId String
902
-
903
- parent Task ? @relation (" TaskParent " , fields : [parentId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
904
- parentId String ?
905
-
906
- runConnection RunConnection ? @relation (fields : [runConnectionId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
907
- runConnectionId String ?
908
-
909
- children Task [] @relation (" TaskParent " )
910
- childExecutionMode TaskChildExecutionMode @default (SEQUENTIAL )
911
-
912
- @@unique ([runId , idempotencyKey ] )
913
- @@index ([parentId ] , map : " idx_task_parentId " )
914
- }
915
-
916
865
enum TaskStatus {
917
866
PENDING
918
867
WAITING
@@ -1017,29 +966,6 @@ enum TriggerChannel {
1017
966
SMTP
1018
967
}
1019
968
1020
- model Webhook {
1021
- id String @id @default (cuid () )
1022
-
1023
- active Boolean @default (false )
1024
-
1025
- key String
1026
- params Json ?
1027
-
1028
- httpEndpoint TriggerHttpEndpoint @relation (fields : [httpEndpointId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1029
- httpEndpointId String @unique
1030
-
1031
- project Project @relation (fields : [projectId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1032
- projectId String
1033
-
1034
- integration Integration @relation (fields : [integrationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1035
- integrationId String
1036
-
1037
- createdAt DateTime @default (now () )
1038
- updatedAt DateTime @updatedAt
1039
-
1040
- @@unique ([key , projectId ] )
1041
- }
1042
-
1043
969
model TriggerHttpEndpoint {
1044
970
id String @id @default (cuid () )
1045
971
@@ -1049,8 +975,6 @@ model TriggerHttpEndpoint {
1049
975
icon String ?
1050
976
properties Json ?
1051
977
1052
- webhook Webhook ?
1053
-
1054
978
secretReference SecretReference @relation (fields : [secretReferenceId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1055
979
secretReferenceId String
1056
980
0 commit comments