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

Kiran Kb23e0ac66efe
diff --git a/packages/prisma/schema/bounty.prisma b/packages/prisma/schema/bounty.prisma
index fb0e0e5508..76de8db010 100644
--- a/packages/prisma/schema/bounty.prisma
+++ b/packages/prisma/schema/bounty.prisma
@@ -38,8 +38,9 @@ model Bounty {
model BountySubmission {
id String @id @default(cuid())
- bountyId String
+ programId String
partnerId String
+ bountyId String
commissionId String @unique
evidenceUrl String
description String? @db.Text
@@ -51,8 +52,10 @@ model BountySubmission {
bounty Bounty @relation(fields: [bountyId], references: [id], onDelete: Cascade)
partner Partner @relation(fields: [partnerId], references: [id], onDelete: Cascade)
commission Commission @relation(fields: [commissionId], references: [id], onDelete: Cascade)
+ program Program @relation(fields: [programId], references: [id], onDelete: Cascade)
@@unique([bountyId, partnerId])
+ @@index(programId)
@@index(partnerId)
@@index(status)
}