create-chaaskit 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -252,6 +252,7 @@ model Team {
|
|
|
252
252
|
invites TeamInvite[]
|
|
253
253
|
apiKeys ApiKey[]
|
|
254
254
|
documents Document[]
|
|
255
|
+
mcpCredentials MCPCredential[]
|
|
255
256
|
slackIntegration SlackIntegration?
|
|
256
257
|
scheduledPrompts ScheduledPrompt[]
|
|
257
258
|
usageMeters UsageMeter[]
|
|
@@ -297,6 +298,8 @@ model MCPCredential {
|
|
|
297
298
|
id String @id @default(cuid())
|
|
298
299
|
userId String
|
|
299
300
|
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
|
301
|
+
teamId String?
|
|
302
|
+
team Team? @relation(fields: [teamId], references: [id], onDelete: Cascade)
|
|
300
303
|
serverId String
|
|
301
304
|
credentialType String // 'api_key' | 'oauth'
|
|
302
305
|
encryptedData String // Encrypted JSON: {apiKey} or {accessToken, refreshToken, expiresAt}
|
|
@@ -306,7 +309,9 @@ model MCPCredential {
|
|
|
306
309
|
updatedAt DateTime @updatedAt
|
|
307
310
|
|
|
308
311
|
@@unique([userId, serverId])
|
|
312
|
+
@@unique([teamId, serverId])
|
|
309
313
|
@@index([userId])
|
|
314
|
+
@@index([teamId])
|
|
310
315
|
}
|
|
311
316
|
|
|
312
317
|
// API Keys for programmatic access
|