@@ -142,7 +142,6 @@ model Organization {
142
142
hasRequestedV3 Boolean @default (false )
143
143
144
144
environments RuntimeEnvironment []
145
- connections IntegrationConnection []
146
145
endpoints Endpoint []
147
146
jobs Job []
148
147
jobVersions JobVersion []
@@ -177,7 +176,6 @@ model ExternalAccount {
177
176
createdAt DateTime @default (now () )
178
177
updatedAt DateTime @updatedAt
179
178
180
- connections IntegrationConnection []
181
179
events EventRecord []
182
180
runs JobRun []
183
181
EventDispatcher EventDispatcher []
@@ -253,8 +251,6 @@ model Integration {
253
251
organization Organization @relation (fields : [organizationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
254
252
organizationId String
255
253
256
- connections IntegrationConnection []
257
-
258
254
@@unique ([organizationId , slug ] )
259
255
}
260
256
@@ -269,34 +265,6 @@ enum IntegrationSetupStatus {
269
265
COMPLETE
270
266
}
271
267
272
- model IntegrationConnection {
273
- id String @id @default (cuid () )
274
-
275
- connectionType ConnectionType @default (DEVELOPER )
276
-
277
- expiresAt DateTime ?
278
- metadata Json
279
- scopes String []
280
-
281
- dataReference SecretReference @relation (fields : [dataReferenceId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
282
- dataReferenceId String
283
-
284
- integration Integration @relation (fields : [integrationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
285
- integrationId String
286
-
287
- organization Organization @relation (fields : [organizationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
288
- organizationId String
289
-
290
- externalAccount ExternalAccount ? @relation (fields : [externalAccountId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
291
- externalAccountId String ?
292
-
293
- createdAt DateTime @default (now () )
294
- updatedAt DateTime @updatedAt
295
-
296
- /// If enabled is false, OAuth refreshing will not be attempted
297
- enabled Boolean @default (true )
298
- }
299
-
300
268
enum ConnectionType {
301
269
EXTERNAL
302
270
DEVELOPER
@@ -847,7 +815,6 @@ model SecretReference {
847
815
key String @unique
848
816
provider SecretStoreProvider @default (DATABASE )
849
817
850
- connections IntegrationConnection []
851
818
integrations Integration []
852
819
httpEndpoints TriggerHttpEndpoint []
853
820
environmentVariableValues EnvironmentVariableValue []
0 commit comments