@@ -405,7 +405,6 @@ model RuntimeEnvironment {
405405 sources TriggerSource []
406406 eventDispatchers EventDispatcher []
407407 ExternalAccount ExternalAccount []
408- httpEndpointEnvironments TriggerHttpEndpointEnvironment []
409408 concurrencyLimitGroups ConcurrencyLimitGroup []
410409 backgroundWorkers BackgroundWorker []
411410 backgroundWorkerTasks BackgroundWorkerTask []
@@ -532,11 +531,10 @@ model Endpoint {
532531 beforeCompleteTaskThreshold Int @default (750 )
533532 afterCompleteTaskThreshold Int @default (750 )
534533
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 []
540538
541539 @@unique ([environmentId , slug ] )
542540}
@@ -754,9 +752,6 @@ model EventRecord {
754752 httpEndpoint TriggerHttpEndpoint ? @relation (fields : [httpEndpointId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
755753 httpEndpointId String ?
756754
757- httpEndpointEnvironment TriggerHttpEndpointEnvironment ? @relation (fields : [httpEndpointEnvironmentId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
758- httpEndpointEnvironmentId String ?
759-
760755 deliverAt DateTime @default (now () )
761756 deliveredAt DateTime ?
762757
@@ -1065,43 +1060,11 @@ model TriggerHttpEndpoint {
10651060 createdAt DateTime @default (now () )
10661061 updatedAt DateTime @updatedAt
10671062
1068- httpEndpointEnvironments TriggerHttpEndpointEnvironment []
1069-
10701063 eventRecords EventRecord []
10711064
10721065 @@unique ([key , projectId ] )
10731066}
10741067
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-
11051068model DataMigration {
11061069 id String @id @default (cuid () )
11071070 name String @unique
0 commit comments