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 commission.prisma

Kiran K1839b993ac6d
diff --git a/packages/prisma/schema/commission.prisma b/packages/prisma/schema/commission.prisma
index d9ffe28d5c..bd031368ee 100644
--- a/packages/prisma/schema/commission.prisma
+++ b/packages/prisma/schema/commission.prisma
@@ -41,7 +41,7 @@ model Commission {
customer Customer? @relation(fields: [customerId], references: [id])
@@unique([programId, invoiceId])
- @@index([earnings, programId, partnerId, status])
+ @@index([earnings, programId, partnerId, status, type])
@@index([partnerId, customerId])
@@index(payoutId)
@@index(customerId)