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.

Update link.prisma

Kiran K96d5de6b21f4
diff --git a/packages/prisma/schema/link.prisma b/packages/prisma/schema/link.prisma
index eb87eb749a..4bceea869f 100644
--- a/packages/prisma/schema/link.prisma
+++ b/packages/prisma/schema/link.prisma
@@ -90,6 +90,7 @@ model Link {
@@unique([domain, key]) // for getting a link by domain and key
@@unique([projectId, externalId]) // for getting a link by externalId
+ @@unique([projectId, couponCode])
@@index([projectId, tenantId]) // for filtering by tenantId
@@index([projectId, url(length: 500)]) // for upserting a link by URL
@@index([projectId, folderId, archived, createdAt(sort: Desc)]) // most getLinksForWorkspace queries