@@ -149,102 +149,12 @@ model Organization {
149
149
projects Project []
150
150
members OrgMember []
151
151
invites OrgMemberInvite []
152
- externalAccounts ExternalAccount []
153
- integrations Integration []
154
152
organizationIntegrations OrganizationIntegration []
155
153
workerGroups WorkerInstanceGroup []
156
154
workerInstances WorkerInstance []
157
155
executionSnapshots TaskRunExecutionSnapshot []
158
156
}
159
157
160
- model ExternalAccount {
161
- id String @id @default (cuid () )
162
- identifier String
163
- metadata Json ?
164
-
165
- organization Organization @relation (fields : [organizationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
166
- organizationId String
167
-
168
- environment RuntimeEnvironment @relation (fields : [environmentId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
169
- environmentId String
170
-
171
- createdAt DateTime @default (now () )
172
- updatedAt DateTime @updatedAt
173
-
174
- @@unique ([environmentId , identifier ] )
175
- }
176
-
177
- // This is a "global" table that store all the integration methods for all the integrations across all orgs
178
- model IntegrationAuthMethod {
179
- id String @id @default (cuid () )
180
- key String
181
-
182
- name String
183
- description String
184
- type String
185
-
186
- client Json ?
187
- config Json ?
188
- scopes Json ?
189
-
190
- createdAt DateTime @default (now () )
191
- updatedAt DateTime @updatedAt
192
-
193
- integrations Integration []
194
-
195
- definition IntegrationDefinition @relation (fields : [definitionId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
196
- definitionId String
197
-
198
- help Json ?
199
-
200
- @@unique ([definitionId , key ] )
201
- }
202
-
203
- model IntegrationDefinition {
204
- id String @id
205
- name String
206
- instructions String ?
207
- description String ?
208
- icon String ?
209
- packageName String @default (" " )
210
-
211
- authMethods IntegrationAuthMethod []
212
- Integration Integration []
213
- }
214
-
215
- model Integration {
216
- id String @id @default (cuid () )
217
-
218
- slug String
219
-
220
- title String ?
221
- description String ?
222
-
223
- setupStatus IntegrationSetupStatus @default (COMPLETE )
224
- authSource IntegrationAuthSource @default (HOSTED )
225
-
226
- definition IntegrationDefinition @relation (fields : [definitionId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
227
- definitionId String
228
-
229
- authMethod IntegrationAuthMethod ? @relation (fields : [authMethodId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
230
- authMethodId String ?
231
-
232
- connectionType ConnectionType @default (DEVELOPER )
233
-
234
- scopes String []
235
-
236
- customClientReference SecretReference ? @relation (fields : [customClientReferenceId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
237
- customClientReferenceId String ?
238
-
239
- createdAt DateTime @default (now () )
240
- updatedAt DateTime @updatedAt
241
-
242
- organization Organization @relation (fields : [organizationId ] , references : [id ] , onDelete : Cascade , onUpdate : Cascade )
243
- organizationId String
244
-
245
- @@unique ([organizationId , slug ] )
246
- }
247
-
248
158
enum IntegrationAuthSource {
249
159
HOSTED
250
160
LOCAL
@@ -349,7 +259,6 @@ model RuntimeEnvironment {
349
259
350
260
tunnelId String ?
351
261
352
- ExternalAccount ExternalAccount []
353
262
backgroundWorkers BackgroundWorker []
354
263
backgroundWorkerTasks BackgroundWorkerTask []
355
264
taskRuns TaskRun []
@@ -509,7 +418,6 @@ model SecretReference {
509
418
key String @unique
510
419
provider SecretStoreProvider @default (DATABASE )
511
420
512
- integrations Integration []
513
421
environmentVariableValues EnvironmentVariableValue []
514
422
515
423
createdAt DateTime @default (now () )
0 commit comments