@@ -142,7 +142,6 @@ model Organization {
142142 hasRequestedV3 Boolean @default (false )
143143
144144 environments RuntimeEnvironment []
145- connections IntegrationConnection []
146145 endpoints Endpoint []
147146 jobs Job []
148147 jobVersions JobVersion []
@@ -177,7 +176,6 @@ model ExternalAccount {
177176 createdAt DateTime @default (now () )
178177 updatedAt DateTime @updatedAt
179178
180- connections IntegrationConnection []
181179 events EventRecord []
182180 runs JobRun []
183181 EventDispatcher EventDispatcher []
@@ -253,8 +251,6 @@ model Integration {
253251 organization Organization @relation (fields : [organizationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
254252 organizationId String
255253
256- connections IntegrationConnection []
257-
258254 @@unique ([organizationId , slug ] )
259255}
260256
@@ -269,34 +265,6 @@ enum IntegrationSetupStatus {
269265 COMPLETE
270266}
271267
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-
300268enum ConnectionType {
301269 EXTERNAL
302270 DEVELOPER
@@ -829,7 +797,6 @@ model SecretReference {
829797 key String @unique
830798 provider SecretStoreProvider @default (DATABASE )
831799
832- connections IntegrationConnection []
833800 integrations Integration []
834801 httpEndpoints TriggerHttpEndpoint []
835802 environmentVariableValues EnvironmentVariableValue []
0 commit comments