The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
feat: Add OAuth apps created by users in their workspace
Kiran Kc7edad31b884
diff --git a/apps/web/prisma/schema.prisma b/apps/web/prisma/schema.prismaindex f8b6145148..2b53e8fa82 100644--- a/apps/web/prisma/schema.prisma+++ b/apps/web/prisma/schema.prisma@@ -32,6 +32,7 @@ model User {defaultWorkspace String?oAuthCodes OAuthCode[]oAuthAuthorizedApps OAuthAuthorizedApp[] // OAuth apps user authorized for their workspace+ oAuthApps OAuthApp[] // OAuth apps user created in their workspace@@index(source)@@index(defaultWorkspace)@@ -377,8 +378,10 @@ model OAuthApp {logo String?createdAt DateTime @default(now())updatedAt DateTime @updatedAt+ createdBy String?projectId String+ user User? @relation(fields: [createdBy], references: [id], onDelete: SetNull)project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)oAuthCodes OAuthCode[]accessTokens RestrictedToken[]