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.

Merge branch 'main' into rewards

Steven Tey93ef8ef9ec23
diff --cc packages/prisma/schema/program.prisma
index aa71e445df,982ba8e742..a5731b23bb
--- a/packages/prisma/schema/program.prisma
+++ b/packages/prisma/schema/program.prisma
@@@ -44,9 -43,8 +44,10 @@@ model Program
commissionType CommissionType @default(percentage)
commissionDuration Int?
commissionInterval CommissionInterval?
+ holdingPeriodDays Int @default(0) // number of days to wait before earnings are added to a payout
+ defaultRewardId String? // default reward for the program
+
// Discounts (for dual-sided incentives)
discounts Discount[]