@@ -405,7 +405,6 @@ model RuntimeEnvironment {
405
405
sources TriggerSource []
406
406
eventDispatchers EventDispatcher []
407
407
ExternalAccount ExternalAccount []
408
- httpEndpointEnvironments TriggerHttpEndpointEnvironment []
409
408
concurrencyLimitGroups ConcurrencyLimitGroup []
410
409
backgroundWorkers BackgroundWorker []
411
410
backgroundWorkerTasks BackgroundWorkerTask []
@@ -532,11 +531,10 @@ model Endpoint {
532
531
beforeCompleteTaskThreshold Int @default (750 )
533
532
afterCompleteTaskThreshold Int @default (750 )
534
533
535
- jobVersions JobVersion []
536
- jobRuns JobRun []
537
- dynamictriggers DynamicTrigger []
538
- sources TriggerSource []
539
- httpEndpointEnvironments TriggerHttpEndpointEnvironment []
534
+ jobVersions JobVersion []
535
+ jobRuns JobRun []
536
+ dynamictriggers DynamicTrigger []
537
+ sources TriggerSource []
540
538
541
539
@@unique ([environmentId , slug ] )
542
540
}
@@ -754,9 +752,6 @@ model EventRecord {
754
752
httpEndpoint TriggerHttpEndpoint ? @relation (fields : [httpEndpointId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
755
753
httpEndpointId String ?
756
754
757
- httpEndpointEnvironment TriggerHttpEndpointEnvironment ? @relation (fields : [httpEndpointEnvironmentId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
758
- httpEndpointEnvironmentId String ?
759
-
760
755
deliverAt DateTime @default (now () )
761
756
deliveredAt DateTime ?
762
757
@@ -1065,43 +1060,11 @@ model TriggerHttpEndpoint {
1065
1060
createdAt DateTime @default (now () )
1066
1061
updatedAt DateTime @updatedAt
1067
1062
1068
- httpEndpointEnvironments TriggerHttpEndpointEnvironment []
1069
-
1070
1063
eventRecords EventRecord []
1071
1064
1072
1065
@@unique ([key , projectId ] )
1073
1066
}
1074
1067
1075
- model TriggerHttpEndpointEnvironment {
1076
- id String @id @default (cuid () )
1077
-
1078
- active Boolean @default (false )
1079
-
1080
- /// If this is set, requests will be tested against the filter and we'll call the user's server immediately
1081
- immediateResponseFilter Json ?
1082
-
1083
- skipTriggeringRuns Boolean @default (false )
1084
-
1085
- source String
1086
-
1087
- environment RuntimeEnvironment @relation (fields : [environmentId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1088
- environmentId String
1089
-
1090
- endpoint Endpoint @relation (fields : [endpointId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1091
- endpointId String
1092
-
1093
- httpEndpoint TriggerHttpEndpoint @relation (fields : [httpEndpointId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
1094
- httpEndpointId String
1095
-
1096
- eventRecords EventRecord []
1097
-
1098
- createdAt DateTime @default (now () )
1099
- updatedAt DateTime @updatedAt
1100
-
1101
- @@unique ([environmentId , httpEndpointId ] )
1102
- @@unique ([endpointId , httpEndpointId ] )
1103
- }
1104
-
1105
1068
model DataMigration {
1106
1069
id String @id @default (cuid () )
1107
1070
name String @unique
0 commit comments