Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add back userId index

Steven Teyc888b5af3bf2
diff --git a/packages/prisma/schema/link.prisma b/packages/prisma/schema/link.prisma
index 8f6cf2f032..da888833e3 100644
--- a/packages/prisma/schema/link.prisma
+++ b/packages/prisma/schema/link.prisma
@@ -83,5 +83,6 @@ model Link {
@@index([programId, partnerId])
@@unique([domain, key])
@@unique([projectId, externalId])
- @@index(folderId)
+ @@index(folderId) // used in /api/folders
+ @@index(userId) // used in /api/admin/links
}